Merge pull request #636 from g-oikonomou/fix-random-init-lockup
Fix CC2538 random_init lockup
This commit is contained in:
commit
b0f1199202
|
@ -92,6 +92,9 @@ random_init(unsigned short seed)
|
|||
/* Enable clock for the RF Core */
|
||||
REG(SYS_CTRL_RCGCRFC) = 1;
|
||||
|
||||
/* Wait for the clock ungating to take effect */
|
||||
while(REG(SYS_CTRL_RCGCRFC) != 1);
|
||||
|
||||
/* Infinite RX - FRMCTRL0[3:2] = 10
|
||||
* This will mess with radio operation - see note above */
|
||||
REG(RFCORE_XREG_FRMCTRL0) = 0x00000008;
|
||||
|
|
Loading…
Reference in a new issue