summaryrefslogtreecommitdiff
path: root/stm32cubemx/Inc/main.h
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 /stm32cubemx/Inc/main.h
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 'stm32cubemx/Inc/main.h')
-rw-r--r--stm32cubemx/Inc/main.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/stm32cubemx/Inc/main.h b/stm32cubemx/Inc/main.h
index 6b905ce..6e20349 100644
--- a/stm32cubemx/Inc/main.h
+++ b/stm32cubemx/Inc/main.h
@@ -40,9 +40,20 @@
/* USER CODE END Includes */
/* Private define ------------------------------------------------------------*/
+#define RX_TIMER_PRESCALER 72000000 / 2000
/* USER CODE BEGIN Private defines */
+#ifdef __cplusplus
+extern "C" {
+#endif
+void main_pre_init();
+void main_post_init();
+void main_loop();
+
+#ifdef __cplusplus
+}
+#endif
/* USER CODE END Private defines */
/**