summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index b3e40edf7a..2fd5bf7360 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -28,6 +28,7 @@
#include "exti.h"
#include "usrsw.h"
#include "usb.h"
+#include "rng.h"
#include "rtc.h"
#include "storage.h"
#include "sdcard.h"
@@ -247,6 +248,11 @@ soft_reset:
lcd_init();
#endif
+#if MICROPY_HW_ENABLE_RNG
+ // RNG
+ rng_init();
+#endif
+
#if 0
#if MICROPY_HW_ENABLE_SERVO
// servo
@@ -257,13 +263,9 @@ soft_reset:
// timer
timer_init();
#endif
-
-#if MICROPY_HW_ENABLE_RNG
- // RNG
- RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_RNG, ENABLE);
- RNG_Cmd(ENABLE);
#endif
+#if 0
pin_map_init();
#endif