Use hwrand for the sdk uses of rand, in particular with the NMI.
The fiq NMI calls rand() from lmac:lmac.a:sdk_lmacTxFrame and the NMI must not touch the newlib reent structure or enter critical regions etc, so just use the simple and safe hwrand implementation as a substitute.
This commit is contained in:
parent
e17b1a5db6
commit
6a0da03809
2 changed files with 8 additions and 2 deletions
|
@ -419,6 +419,7 @@ ram_set_txbb_atten sdk_ram_set_txbb_atten
|
|||
ram_start_noisefloor sdk_ram_start_noisefloor
|
||||
ram_tx_mac_disable sdk_ram_tx_mac_disable
|
||||
ram_tx_mac_enable sdk_ram_tx_mac_enable
|
||||
rand hwrand
|
||||
rc4_skip sdk_rc4_skip
|
||||
rcAttach sdk_rcAttach
|
||||
rc_cal sdk_rc_cal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue