Merge pull request #636 from g-oikonomou/fix-random-init-lockup

Fix CC2538 random_init lockup
This commit is contained in:
George Oikonomou 2014-04-18 13:28:40 +01:00
commit b0f1199202

View file

@ -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;