summaryrefslogtreecommitdiffstats
path: root/stm32/app/project.h
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2020-05-26 14:33:34 +0100
committerfishsoupisgood <github@madingley.org>2020-05-26 14:33:34 +0100
commitf0d941bef6a9b6e3af78cfc68e1f82d6b47ccb2f (patch)
tree22a88d00cb28e075b5397ff5db586d548023f2f2 /stm32/app/project.h
downloadheating-f0d941bef6a9b6e3af78cfc68e1f82d6b47ccb2f.tar.gz
heating-f0d941bef6a9b6e3af78cfc68e1f82d6b47ccb2f.tar.bz2
heating-f0d941bef6a9b6e3af78cfc68e1f82d6b47ccb2f.zip
happy
Diffstat (limited to 'stm32/app/project.h')
-rw-r--r--stm32/app/project.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/stm32/app/project.h b/stm32/app/project.h
new file mode 100644
index 0000000..d1bfa52
--- /dev/null
+++ b/stm32/app/project.h
@@ -0,0 +1,30 @@
+#include <stdlib.h>
+#include <libopencm3/stm32/rcc.h>
+#include <libopencm3/stm32/gpio.h>
+#include <libopencm3/stm32/usart.h>
+#include <libopencm3/stm32/usb.h>
+#include <libopencm3/stm32/exti.h>
+#include <libopencm3/stm32/adc.h>
+#include <libopencm3/cm3/systick.h>
+#include <libopencm3/cm3/nvic.h>
+#include <libopencm3/cm3/cortex.h>
+#include <libopencm3/cm3/scb.h>
+#include <libopencm3/cm3/dwt.h>
+
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+
+#include "ring.h"
+#include "pins.h"
+#include "1wire.h"
+
+
+#define US (72)
+#define MS (US * 1000)
+#define HZ (MS * 1000)
+
+#define MS_TO_TICKS(a) ((a) *2)
+
+
+#include "prototypes.h"