Skip to content

Commit

Permalink
Merge pull request #9318 from caixue1102/mbed-os-rda
Browse files Browse the repository at this point in the history
fix bug for RDA UNO_91H:calling us ticker functions without init.
  • Loading branch information
Cruz Monrreal committed Jan 24, 2019
2 parents 2941c8d + 9e3ba59 commit 899ea59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions targets/TARGET_RDA/TARGET_UNO_91H/trng_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ void trng_init(trng_t *obj)
regval = rTRNG_CTRL | ((0x01UL << 4) | (0xFFUL << 16));
rTRNG_CTRL = regval & ~((0x01UL << 1) | (0x01UL << 2) | (0x01UL << 3));

us_ticker_init();

/*Entropy data was mixed by TRNG seed and noise, so we add one 32us delay to
ensure all 32 bits of seed is entropy when init and
another delay to update noise data when get data.
Expand Down

0 comments on commit 899ea59

Please sign in to comment.