-
Notifications
You must be signed in to change notification settings - Fork 88
/
variant.h
72 lines (65 loc) · 1.26 KB
/
variant.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef VARIANT_H
#define VARIANT_H
#define LED_BUILTIN PA5
#define MOSI PA7
#define MISO PA6
#define SCK PA5
#define SS PA4
#define SDA PB9
#define SCL PB8
#define A0 PA0
#define A1 PA1
#define A2 PA4
#define A3 PB0
#define A4 PC1
#define A5 PC0
#define VARIANT_PIN_LIST \
PIN(A,3 ), /* D0 */ \
PIN(A,2 ), /* D1 */ \
PIN(A,10), /* D2 */ \
PIN(B,3 ), /* D3 */ \
PIN(B,5 ), /* D4 */ \
PIN(B,4 ), /* D5 */ \
PIN(B,10), /* D6 */ \
PIN(A,8 ), /* D7 */ \
PIN(A,9 ), /* D8 */ \
PIN(C,7 ), /* D9 */ \
PIN(B,6 ), /* D10 */ \
PIN(A,7 ), /* D11 */ \
PIN(A,6 ), /* D12 */ \
PIN(A,5 ), /* D13 */ \
PIN(B,9 ), /* D14 */ \
PIN(B,8 ), /* D15 */ \
PIN(A,0 ), /* D16 / A0 */ \
PIN(A,1 ), /* D17 / A1 */ \
PIN(A,4 ), /* D18 / A2 */ \
PIN(B,0 ), /* D19 / A3 */ \
PIN(C,1 ), /* D20 / A4 */ \
PIN(C,0 ), /* D21 / A5 */ \
PIN(A,11), \
PIN(A,12), \
PIN(A,13), \
PIN(A,14), \
PIN(A,15), \
PIN(B,1 ), \
PIN(B,2 ), \
PIN(B,7 ), \
PIN(B,12), \
PIN(B,13), \
PIN(B,14), \
PIN(B,15), \
PIN(C,2 ), \
PIN(C,3 ), \
PIN(C,4 ), \
PIN(C,5 ), \
PIN(C,6 ), \
PIN(C,8 ), \
PIN(C,9 ), \
PIN(C,10), \
PIN(C,11), \
PIN(C,12), \
PIN(C,13), \
PIN(C,14), \
PIN(C,15), \
PIN(D,2 ),
#endif