summaryrefslogtreecommitdiffstats
path: root/app/project.h
blob: 3baf0b2bc53dd086bad6046c1882a226368217c9 (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
31
32
33
#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/i2c.h>
#include <libopencm3/cm3/systick.h>
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/hid.h>
#include <libopencm3/cm3/cortex.h>
#include <libopencm3/usb/cdc.h>
#include <id.h>

#define INCLUDE_DFU_INTERFACE

#ifdef INCLUDE_DFU_INTERFACE
#include <libopencm3/cm3/scb.h>
#include <libopencm3/usb/dfu.h>
#endif

#include <stdio.h>
#include <errno.h>

#define LED1_GPIO GPIO13
#define LED1_BANK GPIOC

#define LED2_GPIO GPIO12
#define LED2_BANK GPIOB

#include "ring.h"

#include "prototypes.h"