From e41764fceeabb1cdb6a7a299e00f2166a6f6ac32 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Thu, 18 Jun 2020 13:26:56 +0100 Subject: moved stm32 into directory added noddy pcb --- stm32/app/project.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 stm32/app/project.h (limited to 'stm32/app/project.h') diff --git a/stm32/app/project.h b/stm32/app/project.h new file mode 100644 index 0000000..8c729d8 --- /dev/null +++ b/stm32/app/project.h @@ -0,0 +1,42 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#define TICK_BASE 9000 +#define TICK_DIV 12000 +#define TICKS_TO_US(a) (((a)*TICK_DIV*1000)/TICK_BASE) +#define MS_TO_TICKS(a) (((a)*1000)/TICKS_TO_US(1)) + +#include "pins.h" + +#include "i2c.h" + +#include "oled.h" + +#include "ring.h" +#include "tacho.h" + + +#define US(a) (72*(a)) +#define MS(a) (US(a) * 1000 ) +#define HZ(a) (MS(a) * 1000) + + +#define T do { printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__); } while (0) + +#include "prototypes.h" -- cgit v1.2.3