summaryrefslogtreecommitdiffstats
path: root/boiler-monster/stm32/app/project.h
blob: d1bfa52fe4733b333f9f27b36ad474367fd7b928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"