summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index d6d9b9ed7e..afef84e290 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -22,6 +22,7 @@
#include "readline.h"
#include "pyexec.h"
#include "usart.h"
+#include "timer.h"
#include "led.h"
#include "exti.h"
#include "usrsw.h"
@@ -38,7 +39,6 @@
#include "dac.h"
#include "pin.h"
#if 0
-#include "timer.h"
#include "pybwlan.h"
#endif
@@ -177,6 +177,7 @@ int main(void) {
// basic sub-system init
pendsv_init();
+ timer_tim3_init();
led_init();
switch_init0();
@@ -409,6 +410,11 @@ soft_reset:
rng_init();
#endif
+#if MICROPY_HW_ENABLE_TIMER
+ // timer
+ //timer_init();
+#endif
+
// I2C
i2c_init();
@@ -422,13 +428,6 @@ soft_reset:
servo_init();
#endif
-#if 0
-#if MICROPY_HW_ENABLE_TIMER
- // timer
- timer_init();
-#endif
-#endif
-
#if MICROPY_HW_ENABLE_DAC
// DAC
dac_init();