-
Notifications
You must be signed in to change notification settings - Fork 963
/
variant_generic.cpp
55 lines (52 loc) · 1.33 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
/*
*******************************************************************************
* Copyright (c) 2020-2021, 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_G031J4MX) || defined(ARDUINO_GENERIC_G031J6MX) ||\
defined(ARDUINO_GENERIC_G041J6MX)
#include "pins_arduino.h"
// Digital PinName array
const PinName digitalPin[] = {
PA_0, // D0/A0
PA_1, // D1/A1
PA_2, // D2/A2
PA_8, // D3
PA_11, // D4/A3
PA_12, // D5/A4
PA_13, // D6/A5
PA_14, // D7/A6
PA_15, // D8
PB_0, // D9/A7
PB_1, // D10/A8
PB_5, // D11
PB_6, // D12
PB_7, // D13/A9
PB_8, // D14
PB_9, // D15
PC_14, // D16
PF_2, // D17
PA_9_R, // D18
PA_10_R // D19
};
// Analog (Ax) pin number array
const uint32_t analogInputPin[] = {
0, // A0, PA0
1, // A1, PA1
2, // A2, PA2
4, // A3, PA11
5, // A4, PA12
6, // A5, PA13
7, // A6, PA14
9, // A7, PB0
10, // A8, PB1
13 // A9, PB7
};
#endif /* ARDUINO_GENERIC_* */