/
variant_generic.cpp
68 lines (65 loc) · 1.51 KB
/
variant_generic.cpp
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
/*
*******************************************************************************
* Copyright (c) 2020, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
*******************************************************************************
*/
#if defined(ARDUINO_GENERIC_G030F6PX)
#include "pins_arduino.h"
// Digital PinName array
const PinName digitalPin[] = {
PA_0, // D0/A0
PA_1, // D1/A1
PA_2, // D2/A2
PA_3, // D3/A3
PA_4, // D4/A4
PA_5, // D5/A5
PA_6, // D6/A6
PA_7, // D7/A7
PA_8, // D8
PA_11, // D9/A8
PA_12, // D10/A9
PA_13, // D11/A10
PA_14, // D12/A11
PA_15, // D13
PB_0, // D14/A12
PB_1, // D15/A13
PB_2, // D16/A14
PB_3, // D17
PB_4, // D18
PB_5, // D19
PB_6, // D20
PB_7, // D21/A15
PB_8, // D22
PB_9, // D23
PC_14, // D24
PC_15, // D25
PA_9_R, // D26
PA_10_R // D27
};
// Analog (Ax) pin number array
const uint32_t analogInputPin[] = {
0, // A0, PA0
1, // A1, PA1
2, // A2, PA2
3, // A3, PA3
4, // A4, PA4
5, // A5, PA5
6, // A6, PA6
7, // A7, PA7
9, // A8, PA11
10, // A9, PA12
11, // A10, PA13
12, // A11, PA14
14, // A12, PB0
15, // A13, PB1
16, // A14, PB2
21 // A15, PB7
};
#endif /* ARDUINO_GENERIC_* */