Skip to content

Commit b17f230

Browse files
committed
variants(wb0): add all generated STM32WB0x generic variant files
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 9c4c951 commit b17f230

24 files changed

+2092
-0
lines changed
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
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+
/*
14+
* Automatically generated from STM32WB05KZVx.xml, STM32WB05TZFx.xml
15+
* STM32WB09KEVx.xml, STM32WB09TEFx.xml
16+
* CubeMX DB release 6.0.140
17+
*/
18+
#if !defined(CUSTOM_PERIPHERAL_PINS)
19+
#include "Arduino.h"
20+
#include "PeripheralPins.h"
21+
22+
/* =====
23+
* Notes:
24+
* - The pins mentioned Px_y_ALTz are alternative possibilities which use other
25+
* HW peripheral instances. You can use them the same way as any other "normal"
26+
* pin (i.e. analogWrite(PA7_ALT1, 128);).
27+
*
28+
* - Commented lines are alternative possibilities which are not used per default.
29+
* If you change them, you will have to know what you do
30+
* =====
31+
*/
32+
33+
//*** ADC ***
34+
35+
#ifdef HAL_ADC_MODULE_ENABLED
36+
WEAK const PinMap PinMap_ADC[] = {
37+
{PA_3, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC1_VINP2
38+
{PB_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC1_VINP1
39+
{PB_3, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC1_VINP0
40+
{PB_5, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC1_VINP3
41+
{NC, NP, 0}
42+
};
43+
#endif
44+
45+
//*** No DAC ***
46+
47+
//*** I2C ***
48+
49+
#ifdef HAL_I2C_MODULE_ENABLED
50+
WEAK const PinMap PinMap_I2C_SDA[] = {
51+
{PA_1, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF0_I2C1)},
52+
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF0_I2C1)},
53+
{PB_14, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF0_I2C1)},
54+
{NC, NP, 0}
55+
};
56+
#endif
57+
58+
#ifdef HAL_I2C_MODULE_ENABLED
59+
WEAK const PinMap PinMap_I2C_SCL[] = {
60+
{PA_0, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF0_I2C1)},
61+
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF0_I2C1)},
62+
{NC, NP, 0}
63+
};
64+
#endif
65+
66+
//*** No I3C ***
67+
68+
//*** TIM ***
69+
70+
#ifdef HAL_TIM_MODULE_ENABLED
71+
WEAK const PinMap PinMap_TIM[] = {
72+
{PA_0, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 3, 0)}, // TIM2_CH3
73+
{PA_1, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 4, 0)}, // TIM2_CH4
74+
{PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 1, 0)}, // TIM2_CH1
75+
{PA_2_ALT1, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM16, 1, 0)}, // TIM16_CH1
76+
{PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 2, 0)}, // TIM2_CH2
77+
{PA_3_ALT1, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM16, 1, 1)}, // TIM16_CH1N
78+
{PA_8, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 3, 0)}, // TIM2_CH3
79+
{PA_9, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 4, 0)}, // TIM2_CH4
80+
{PA_9_ALT1, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM17, 1, 0)}, // TIM17_CH1
81+
{PA_10, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM17, 1, 1)}, // TIM17_CH1N
82+
{PB_0, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM16, 1, 0)}, // TIM16_CH1
83+
{PB_1, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM16, 1, 1)}, // TIM16_CH1N
84+
{PB_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM2, 3, 0)}, // TIM2_CH3
85+
{PB_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM2, 4, 0)}, // TIM2_CH4
86+
{PB_3_ALT1, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM17, 1, 0)}, // TIM17_CH1
87+
{PB_4, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 1, 0)}, // TIM2_CH1
88+
{PB_4_ALT1, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM17, 1, 1)}, // TIM17_CH1N
89+
{PB_5, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 2, 0)}, // TIM2_CH2
90+
{PB_6, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 1, 0)}, // TIM2_CH1
91+
{PB_6_ALT1, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM17, 1, 0)}, // TIM17_CH1
92+
{PB_7, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 2, 0)}, // TIM2_CH2
93+
{PB_12, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 3, 0)}, // TIM2_CH3
94+
{PB_13, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM2, 4, 0)}, // TIM2_CH4
95+
{NC, NP, 0}
96+
};
97+
#endif
98+
99+
//*** UART ***
100+
101+
#ifdef HAL_UART_MODULE_ENABLED
102+
WEAK const PinMap PinMap_UART_TX[] = {
103+
{PA_1, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_USART1)},
104+
{PA_9, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
105+
{PB_3, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_LPUART1)},
106+
{PB_4, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_LPUART1)},
107+
{PB_6, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_LPUART1)},
108+
{PB_15, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_USART1)},
109+
{NC, NP, 0}
110+
};
111+
#endif
112+
113+
#ifdef HAL_UART_MODULE_ENABLED
114+
WEAK const PinMap PinMap_UART_RX[] = {
115+
{PA_8, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
116+
{PB_0, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
117+
{PB_5, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_LPUART1)},
118+
{PB_7, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_LPUART1)},
119+
{PB_14, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_USART1)},
120+
{NC, NP, 0}
121+
};
122+
#endif
123+
124+
#ifdef HAL_UART_MODULE_ENABLED
125+
WEAK const PinMap PinMap_UART_RTS[] = {
126+
{PA_3, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
127+
{PB_0, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_LPUART1)},
128+
{PB_2, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
129+
{NC, NP, 0}
130+
};
131+
#endif
132+
133+
#ifdef HAL_UART_MODULE_ENABLED
134+
WEAK const PinMap PinMap_UART_CTS[] = {
135+
{PA_0, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
136+
{PA_10, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_LPUART1)},
137+
{PB_3, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
138+
{PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_USART1)},
139+
{PB_12, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_LPUART1)},
140+
{NC, NP, 0}
141+
};
142+
#endif
143+
144+
//*** SPI ***
145+
146+
#ifdef HAL_SPI_MODULE_ENABLED
147+
WEAK const PinMap PinMap_SPI_MOSI[] = {
148+
{PA_11, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_SPI3)},
149+
{NC, NP, 0}
150+
};
151+
#endif
152+
153+
#ifdef HAL_SPI_MODULE_ENABLED
154+
WEAK const PinMap PinMap_SPI_MISO[] = {
155+
{PA_8, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_SPI3)},
156+
{NC, NP, 0}
157+
};
158+
#endif
159+
160+
#ifdef HAL_SPI_MODULE_ENABLED
161+
WEAK const PinMap PinMap_SPI_SCLK[] = {
162+
{PA_3, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_SPI3)},
163+
{PB_3, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_SPI3)},
164+
{NC, NP, 0}
165+
};
166+
#endif
167+
168+
#ifdef HAL_SPI_MODULE_ENABLED
169+
WEAK const PinMap PinMap_SPI_SSEL[] = {
170+
{PA_9, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_SPI3)},
171+
{NC, NP, 0}
172+
};
173+
#endif
174+
175+
//*** No CAN ***
176+
177+
//*** No ETHERNET ***
178+
179+
//*** No QUADSPI ***
180+
181+
//*** No USB ***
182+
183+
//*** No SD ***
184+
185+
#endif /* !CUSTOM_PERIPHERAL_PINS */
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/* Alternate pin name */
2+
PA_2_ALT1 = PA_2 | ALT1,
3+
PA_3_ALT1 = PA_3 | ALT1,
4+
PA_9_ALT1 = PA_9 | ALT1,
5+
PB_3_ALT1 = PB_3 | ALT1,
6+
PB_4_ALT1 = PB_4 | ALT1,
7+
PB_6_ALT1 = PB_6 | ALT1,
8+
9+
/* SYS_WKUP */
10+
#ifdef PWR_WAKEUP_PB0
11+
SYS_WKUP1 = PB_0, /* SYS_WKUP0 */
12+
#endif
13+
#ifdef PWR_WAKEUP_PB1
14+
SYS_WKUP2 = PB_1, /* SYS_WKUP1 */
15+
#endif
16+
#ifdef PWR_WAKEUP_PB2
17+
SYS_WKUP3 = PB_2, /* SYS_WKUP2 */
18+
#endif
19+
#ifdef PWR_WAKEUP_PB3
20+
SYS_WKUP4 = PB_3, /* SYS_WKUP3 */
21+
#endif
22+
#ifdef PWR_WAKEUP_PB4
23+
SYS_WKUP5 = PB_4, /* SYS_WKUP4 */
24+
#endif
25+
#ifdef PWR_WAKEUP_PB5
26+
SYS_WKUP6 = PB_5, /* SYS_WKUP5 */
27+
#endif
28+
#ifdef PWR_WAKEUP_PB6
29+
SYS_WKUP7 = PB_6, /* SYS_WKUP6 */
30+
#endif
31+
#ifdef PWR_WAKEUP_PB7
32+
SYS_WKUP8 = PB_7, /* SYS_WKUP7 */
33+
#endif
34+
#ifdef PWR_WAKEUP_PA8
35+
SYS_WKUP9 = PA_8, /* SYS_WKUP8 */
36+
#endif
37+
#ifdef PWR_WAKEUP_PA9
38+
SYS_WKUP10 = PA_9, /* SYS_WKUP9 */
39+
#endif
40+
#ifdef PWR_WAKEUP_PA10
41+
SYS_WKUP11 = PA_10, /* SYS_WKUP10 */
42+
#endif
43+
#ifdef PWR_WAKEUP_PA11
44+
SYS_WKUP12 = PA_11, /* SYS_WKUP11 */
45+
#endif
46+
#ifdef PWR_WAKEUP_PA0
47+
SYS_WKUP13 = PA_0, /* SYS_WKUP12 */
48+
#endif
49+
#ifdef PWR_WAKEUP_PA1
50+
SYS_WKUP14 = PA_1, /* SYS_WKUP13 */
51+
#endif
52+
#ifdef PWR_WAKEUP_PA2
53+
SYS_WKUP15 = PA_2, /* SYS_WKUP14 */
54+
#endif
55+
#ifdef PWR_WAKEUP_PA3
56+
SYS_WKUP16 = PA_3, /* SYS_WKUP15 */
57+
#endif
58+
#ifdef PWR_WAKEUP_PB12
59+
SYS_WKUP17 = PB_12, /* SYS_WKUP16 */
60+
#endif
61+
#ifdef PWR_WAKEUP_PB13
62+
SYS_WKUP18 = PB_13, /* SYS_WKUP17 */
63+
#endif
64+
#ifdef PWR_WAKEUP_PB14
65+
SYS_WKUP19 = PB_14, /* SYS_WKUP18 */
66+
#endif
67+
#ifdef PWR_WAKEUP_PB15
68+
SYS_WKUP20 = PB_15, /* SYS_WKUP19 */
69+
#endif
70+
71+
/* No USB */
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This file help to add generic board entry.
2+
# upload.maximum_size and product_line have to be verified
3+
# and changed if needed.
4+
# See: https://github.com/stm32duino/Arduino_Core_STM32/wiki/Add-a-new-variant-%28board%29
5+
6+
# Generic WB05KZVx
7+
GenWB0.menu.pnum.GENERIC_WB05KZVX=Generic WB05KZVx
8+
GenWB0.menu.pnum.GENERIC_WB05KZVX.upload.maximum_size=196608
9+
GenWB0.menu.pnum.GENERIC_WB05KZVX.upload.maximum_data_size=24576
10+
GenWB0.menu.pnum.GENERIC_WB05KZVX.build.board=GENERIC_WB05KZVX
11+
GenWB0.menu.pnum.GENERIC_WB05KZVX.build.product_line=STM32WB05
12+
GenWB0.menu.pnum.GENERIC_WB05KZVX.build.variant=STM32WB0x/WB05KZV_WB05TZF_WB09KEV_WB09TEF
13+
GenWB0.menu.pnum.GENERIC_WB05KZVX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32WB0x/STM32WB05.svd
14+
15+
# Generic WB05TZFx
16+
GenWB0.menu.pnum.GENERIC_WB05TZFX=Generic WB05TZFx
17+
GenWB0.menu.pnum.GENERIC_WB05TZFX.upload.maximum_size=196608
18+
GenWB0.menu.pnum.GENERIC_WB05TZFX.upload.maximum_data_size=24576
19+
GenWB0.menu.pnum.GENERIC_WB05TZFX.build.board=GENERIC_WB05TZFX
20+
GenWB0.menu.pnum.GENERIC_WB05TZFX.build.product_line=STM32WB05
21+
GenWB0.menu.pnum.GENERIC_WB05TZFX.build.variant=STM32WB0x/WB05KZV_WB05TZF_WB09KEV_WB09TEF
22+
GenWB0.menu.pnum.GENERIC_WB05TZFX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32WB0x/STM32WB05.svd
23+
24+
# Generic WB09KEVx
25+
GenWB0.menu.pnum.GENERIC_WB09KEVX=Generic WB09KEVx
26+
GenWB0.menu.pnum.GENERIC_WB09KEVX.upload.maximum_size=524288
27+
GenWB0.menu.pnum.GENERIC_WB09KEVX.upload.maximum_data_size=65536
28+
GenWB0.menu.pnum.GENERIC_WB09KEVX.build.board=GENERIC_WB09KEVX
29+
GenWB0.menu.pnum.GENERIC_WB09KEVX.build.product_line=STM32WB09
30+
GenWB0.menu.pnum.GENERIC_WB09KEVX.build.variant=STM32WB0x/WB05KZV_WB05TZF_WB09KEV_WB09TEF
31+
GenWB0.menu.pnum.GENERIC_WB09KEVX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32WB0x/STM32WB09.svd
32+
33+
# Generic WB09TEFx
34+
GenWB0.menu.pnum.GENERIC_WB09TEFX=Generic WB09TEFx
35+
GenWB0.menu.pnum.GENERIC_WB09TEFX.upload.maximum_size=524288
36+
GenWB0.menu.pnum.GENERIC_WB09TEFX.upload.maximum_data_size=65536
37+
GenWB0.menu.pnum.GENERIC_WB09TEFX.build.board=GENERIC_WB09TEFX
38+
GenWB0.menu.pnum.GENERIC_WB09TEFX.build.product_line=STM32WB09
39+
GenWB0.menu.pnum.GENERIC_WB09TEFX.build.variant=STM32WB0x/WB05KZV_WB05TZF_WB09KEV_WB09TEF
40+
GenWB0.menu.pnum.GENERIC_WB09TEFX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32WB0x/STM32WB09.svd
41+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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_WB05KZVX) || defined(ARDUINO_GENERIC_WB05TZFX) ||\
14+
defined(ARDUINO_GENERIC_WB09KEVX) || defined(ARDUINO_GENERIC_WB09TEFX)
15+
#include "pins_arduino.h"
16+
17+
/**
18+
* @brief System Clock Configuration
19+
* @param None
20+
* @retval None
21+
*/
22+
WEAK void SystemClock_Config(void)
23+
{
24+
/* SystemClock_Config can be generated by STM32CubeMX */
25+
#warning "SystemClock_Config() is empty. Default clock at reset is used."
26+
}
27+
28+
#endif /* ARDUINO_GENERIC_* */
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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_WB05KZVX) || defined(ARDUINO_GENERIC_WB05TZFX) ||\
14+
defined(ARDUINO_GENERIC_WB09KEVX) || defined(ARDUINO_GENERIC_WB09TEFX)
15+
#include "pins_arduino.h"
16+
17+
// Digital PinName array
18+
const PinName digitalPin[] = {
19+
PA_0, // D0
20+
PA_1, // D1
21+
PA_2, // D2
22+
PA_3, // D3/A0
23+
PA_8, // D4
24+
PA_9, // D5
25+
PA_10, // D6
26+
PA_11, // D7
27+
PB_0, // D8
28+
PB_1, // D9/A1
29+
PB_2, // D10
30+
PB_3, // D11/A2
31+
PB_4, // D12
32+
PB_5, // D13/A3
33+
PB_6, // D14
34+
PB_7, // D15
35+
PB_12, // D16
36+
PB_13, // D17
37+
PB_14, // D18
38+
PB_15 // D19
39+
};
40+
41+
// Analog (Ax) pin number array
42+
const uint32_t analogInputPin[] = {
43+
3, // A0, PA3
44+
9, // A1, PB1
45+
11, // A2, PB3
46+
13 // A3, PB5
47+
};
48+
49+
#endif /* ARDUINO_GENERIC_* */

0 commit comments

Comments
 (0)