From eabbd037f5f605a9ecf06185cd62594eb4564bce Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Mon, 1 May 2017 09:25:30 +0200
Subject: o Adding USB CDC code/support.

---
 src/radio-controller.cpp | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

(limited to 'src')

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) {
+    ;
 }
-- 
cgit v1.2.3