Skip to content

Commit 899ea59

Browse files
author
Cruz Monrreal
authored
Merge pull request #9318 from caixue1102/mbed-os-rda
fix bug for RDA UNO_91H:calling us ticker functions without init.
2 parents 2941c8d + 9e3ba59 commit 899ea59

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)