diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-05-01 09:25:30 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-05-01 09:25:30 +0200 |
commit | eabbd037f5f605a9ecf06185cd62594eb4564bce (patch) | |
tree | 329f5825bbe2c31e7f501c1eed51c7ef15847776 /src | |
parent | 89d464c7f38b902e332f082f99df075dee080978 (diff) | |
download | radio-controller-eabbd037f5f605a9ecf06185cd62594eb4564bce.tar.gz radio-controller-eabbd037f5f605a9ecf06185cd62594eb4564bce.tar.bz2 radio-controller-eabbd037f5f605a9ecf06185cd62594eb4564bce.tar.xz radio-controller-eabbd037f5f605a9ecf06185cd62594eb4564bce.zip |
o Adding USB CDC code/support.
Diffstat (limited to 'src')
-rw-r--r-- | src/radio-controller.cpp | 18 |
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) { + ; } |