summaryrefslogtreecommitdiffstats
path: root/app/project.h
blob: 87363f963be02ec7b9999bda135b8d5fbc6d66a8 (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
34
35
36
37
38
#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/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/cm3/scb.h>
#include <libopencm3/cm3/dwt.h>
#include <libopencm3/usb/dfu.h>

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

#include "ring.h"
#include "pins.h"

#include "at_scancodes.h"
#include "usb_scancodes.h"


#include "id.h"

#define KEYBOARD_EP 0x81
#define KEYBOARD_EP_TXN_SIZE 0x9

#define CONSUMER_EP 0x82
#define CONSUMER_EP_TXN_SIZE 0x2

#define AT_KBD_INIT_TIME	200



#include "prototypes.h"