summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-04-29 23:10:32 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-04-29 23:10:32 +0200
commit89d464c7f38b902e332f082f99df075dee080978 (patch)
tree603750026d3fa12b2db7fa19abb8cdc079c5d3be /src
parent4c159924abc0ad027166fe8853d062ed0a46481e (diff)
downloadradio-controller-89d464c7f38b902e332f082f99df075dee080978.tar.gz
radio-controller-89d464c7f38b902e332f082f99df075dee080978.tar.bz2
radio-controller-89d464c7f38b902e332f082f99df075dee080978.tar.xz
radio-controller-89d464c7f38b902e332f082f99df075dee080978.zip
o Setting up for TIM1/Channel 1 as input capture. Enabling IWDG.
Diffstat (limited to 'src')
-rw-r--r--src/radio-controller.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/radio-controller.cpp b/src/radio-controller.cpp
index e69de29..53f6ef0 100644
--- a/src/radio-controller.cpp
+++ b/src/radio-controller.cpp
@@ -0,0 +1,16 @@
+#include "main.h"
+#include "stm32f1xx_hal.h"
+#include <cstdio>
+#include "mcu/arm/semihosting.h"
+
+void main_pre_init() {
+ SystemInit();
+}
+
+void main_post_init() {
+ semihosting::enable();
+}
+
+void main_loop() {
+ printf("hello world!");
+}