diff options
author | fishsoupisgood <github@madingley.org> | 2020-09-09 11:53:37 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2020-09-09 11:53:37 +0100 |
commit | 9d87c925a9eaa4fc256be3173c14a20d1469472d (patch) | |
tree | 50d63f87a47a0eac3f5b8058850184bcd4e6ee95 /boiler-monster/stm32/app/project.h | |
parent | dafd8cf2fdcdd637cc06f760d318cf8391b1a294 (diff) | |
download | heating-9d87c925a9eaa4fc256be3173c14a20d1469472d.tar.gz heating-9d87c925a9eaa4fc256be3173c14a20d1469472d.tar.bz2 heating-9d87c925a9eaa4fc256be3173c14a20d1469472d.zip |
everything, mostly, working
Diffstat (limited to 'boiler-monster/stm32/app/project.h')
-rw-r--r-- | boiler-monster/stm32/app/project.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/boiler-monster/stm32/app/project.h b/boiler-monster/stm32/app/project.h new file mode 100644 index 0000000..d1bfa52 --- /dev/null +++ b/boiler-monster/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" |