diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-22 13:41:02 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-22 13:41:02 +0000 |
commit | 684164a8cf8c2b989049d964ca7fc0419ada31ab (patch) | |
tree | 9322421223707316c600e5652a8c78312ea10342 /stmhal/main.c | |
parent | 2fb37847a712127543c879cd4c925ac4ee3c8554 (diff) | |
download | micropython-684164a8cf8c2b989049d964ca7fc0419ada31ab.tar.gz micropython-684164a8cf8c2b989049d964ca7fc0419ada31ab.zip |
stmhal: Add PYBv10 config; add RNG support.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r-- | stmhal/main.c | 12 |
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 |