/* Configures the transceiver. 
This function is called to configure the transceiver after reset.  */
static void trx_config(void)
/* Configures the transceiver. 
This function is called to configure the transceiver after reset.  */
static void trx_config(void)
{
	uint16_t rand_value;
	pal_trx_reg_write(RG_TRX_CTRL_0,
			((CLKM_2mA << 6) | (CLKM_2mA << 4) | CLKM_1MHz));
	pal_trx_bit_write(SR_AACK_SET_PD, PD_ACK_BIT_SET_ENABLE);
	pal_trx_bit_write(SR_TX_AUTO_CRC_ON, TX_AUTO_CRC_ENABLE);
	pal_trx_reg_write(RG_IRQ_MASK, TRX_IRQ_DEFAULT);
	rand_value = (uint16_t) rand();
	pal_trx_reg_write(RG_CSMA_SEED_0, (uint8_t) rand_value);
	pal_trx_bit_write(SR_CSMA_SEED_1, (uint8_t) (rand_value >> 8));
}