File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed
variants/STM32F1xx/F103C8T_F103CB(T-U) Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ *******************************************************************************
3+ * Copyright (c) 2020, STMicroelectronics
4+ * All rights reserved.
5+ *
6+ * This software component is licensed by ST under BSD 3-Clause license,
7+ * the "License"; You may not use this file except in compliance with the
8+ * License. You may obtain a copy of the License at:
9+ * opensource.org/licenses/BSD-3-Clause
10+ *
11+ *******************************************************************************
12+ */
13+ #if defined(ARDUINO_GENERIC_F103C8TX) || defined(ARDUINO_GENERIC_F103CBTX) ||\
14+ defined (ARDUINO_GENERIC_F103CBUX)
15+ #include " pins_arduino.h"
16+
17+ // Digital PinName array
18+ const PinName digitalPin[] = {
19+ PA_0, // D0/A0
20+ PA_1, // D1/A1
21+ PA_2, // D2/A2
22+ PA_3, // D3/A3
23+ PA_4, // D4/A4
24+ PA_5, // D5/A5
25+ PA_6, // D6/A6
26+ PA_7, // D7/A7
27+ PA_8, // D8
28+ PA_9, // D9
29+ PA_10, // D10
30+ PA_11, // D11
31+ PA_12, // D12
32+ PA_13, // D13
33+ PA_14, // D14
34+ PA_15, // D15
35+ PB_0, // D16/A8
36+ PB_1, // D17/A9
37+ PB_2, // D18
38+ PB_3, // D19
39+ PB_4, // D20
40+ PB_5, // D21
41+ PB_6, // D22
42+ PB_7, // D23
43+ PB_8, // D24
44+ PB_9, // D25
45+ PB_10, // D26
46+ PB_11, // D27
47+ PB_12, // D28
48+ PB_13, // D29
49+ PB_14, // D30
50+ PB_15, // D31
51+ PC_13, // D32
52+ PC_14, // D33
53+ PC_15, // D34
54+ PD_0, // D35
55+ PD_1 // D36
56+ };
57+
58+ // Analog (Ax) pin number array
59+ const uint32_t analogInputPin[] = {
60+ 0 , // A0, PA0
61+ 1 , // A1, PA1
62+ 2 , // A2, PA2
63+ 3 , // A3, PA3
64+ 4 , // A4, PA4
65+ 5 , // A5, PA5
66+ 6 , // A6, PA6
67+ 7 , // A7, PA7
68+ 16 , // A8, PB0
69+ 17 // A9, PB1
70+ };
71+
72+ #endif /* ARDUINO_GENERIC_* */
You can’t perform that action at this time.
0 commit comments