aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/rng.h
diff options
context:
space:
mode:
authorDamien George2018-02-02 18:22:57 +1100
committerDamien George2018-02-02 18:22:57 +1100
commit57d2ac130016cf8500423171cb630ec5b2f09b3a (patch)
treecee724808e1cc21ff073b9a88693aff0bb5c3f65 /ports/stm32/rng.h
parent762db9ad2f44dc87220b0ae1009251615d8e2e18 (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.h3
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);