diff options
| author | Damien George | 2018-02-02 18:22:57 +1100 |
|---|---|---|
| committer | Damien George | 2018-02-02 18:22:57 +1100 |
| commit | 57d2ac130016cf8500423171cb630ec5b2f09b3a (patch) | |
| tree | cee724808e1cc21ff073b9a88693aff0bb5c3f65 /ports/stm32/rng.h | |
| parent | 762db9ad2f44dc87220b0ae1009251615d8e2e18 (diff) | |
stm32/rng: Simplify RNG implementation by accessing raw peripheral regs.
It saves code size and RAM, and is more efficient to execute.
Diffstat (limited to 'ports/stm32/rng.h')
| -rw-r--r-- | ports/stm32/rng.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/stm32/rng.h b/ports/stm32/rng.h index 43e49fe72..1478b7d3f 100644 --- a/ports/stm32/rng.h +++ b/ports/stm32/rng.h @@ -26,7 +26,8 @@ #ifndef MICROPY_INCLUDED_STMHAL_RNG_H #define MICROPY_INCLUDED_STMHAL_RNG_H -void rng_init0(void); +#include "py/obj.h" + uint32_t rng_get(void); MP_DECLARE_CONST_FUN_OBJ_0(pyb_rng_get_obj); |
