Skip to content

Commit 9e3ba59

Browse files
caixue1102Cruz Monrreal II
authored andcommitted
fix bug for RDA UNO_91H:calling us ticker functions without init.
solution: init us ticker when init TRNG.
1 parent 1a8844e commit 9e3ba59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_RDA/TARGET_UNO_91H/trng_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ void trng_init(trng_t *obj)
7070
regval = rTRNG_CTRL | ((0x01UL << 4) | (0xFFUL << 16));
7171
rTRNG_CTRL = regval & ~((0x01UL << 1) | (0x01UL << 2) | (0x01UL << 3));
7272

73+
us_ticker_init();
74+
7375
/*Entropy data was mixed by TRNG seed and noise, so we add one 32us delay to
7476
ensure all 32 bits of seed is entropy when init and
7577
another delay to update noise data when get data.

0 commit comments

Comments
 (0)