summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/radio-controller.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/radio-controller.cpp b/src/radio-controller.cpp
index 53f6ef0..132f581 100644
--- a/src/radio-controller.cpp
+++ b/src/radio-controller.cpp
@@ -3,14 +3,26 @@
#include <cstdio>
#include "mcu/arm/semihosting.h"
+#ifdef HAL_IWDG_MODULE_ENABLED
+extern IWDG_HandleTypeDef hiwdg;
+#endif
+
void main_pre_init() {
- SystemInit();
+// SystemInit();
}
void main_post_init() {
- semihosting::enable();
+ semihosting::enable();
}
void main_loop() {
- printf("hello world!");
+// printf("hello world!");
+
+#ifdef HAL_IWDG_MODULE_ENABLED
+ HAL_IWDG_Refresh(&hiwdg);
+#endif
+}
+
+void it_tim1(TIM_HandleTypeDef *htim1) {
+ ;
}