54 ADCCON1 |= ADCCON1_RCTRL0;
56 return (RNDL | (RNDH << 8));
75 ADCCON1 &= ~(ADCCON1_RCTRL1 | ADCCON1_RCTRL0);
78 FRMCTRL0 = FRMCTRL0_RX_MODE1;
86 while(!(RSSISTAT & RSSISTAT_RSSI_VALID));
99 while(i < 16 || (seed == 0x0000 || seed == 0x8003)) {
100 seed = (seed << 1) | (RFRND & RFRND_IRND);
110 CC2530_CSP_ISRFOFF();
Implementation of the cc2530 RF driver
void random_init(unsigned short seed)
Seed the cc2538 random number generator.
unsigned short random_rand(void)
Generates a new random number using the cc2538 RNG.
Definitions for TI/Chipcon cc2530, cc2531 and cc2533 SFR registers.
Header file with definitions of bit masks for some cc2530 SFRs