Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 348e97d

Browse files
seeersfpistm
andcommittedJan 26, 2021
Add Generic F042Cx
Supersede stm32duino#1103 Signed-off-by: seeers <seeers@gmx.de> Co-authored-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 7274550 commit 348e97d

File tree

7 files changed

+837
-1
lines changed

7 files changed

+837
-1
lines changed
 

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
156156
| :yellow_heart: | STM32F030F4 | Generic Board | **2.0.0** | |
157157
| :yellow_heart: | STM32F030R8 | Generic Board | **2.0.0** | |
158158
| :yellow_heart: | STM32F031K6T | Generic Board | **2.0.0** | |
159+
| :yellow_heart: | STM32F042C4<br>STM32F042C6 | Generic Board | **2.0.0** | |
159160
| :yellow_heart: | STM32F051K4U<br>STM32F051K6U<br>STM32F051K8U | Generic Board | **2.0.0** | |
160161
| :yellow_heart: | STM32F070CB | Generic Board | **2.0.0** | |
161162
| :yellow_heart: | STM32F072C8<br>STM32F072CB | Generic Board | **2.0.0** | |

‎boards.txt

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ GenF0.build.board=GenF0
818818
GenF0.build.mcu=cortex-m0
819819
GenF0.build.series=STM32F0xx
820820
GenF0.build.cmsis_lib_gcc=arm_cortexM0l_math
821-
GenF0.build.extra_flags=-D{build.product_line} {build.xSerial}
821+
GenF0.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial}
822822

823823
# DEMO_F030F4 board
824824
GenF0.menu.pnum.DEMO_F030F4=STM32F030F4 Demo board (HSE 8Mhz)
@@ -876,6 +876,22 @@ GenF0.menu.pnum.GENERIC_F031K6T.build.board=GENERIC_F031K6T
876876
GenF0.menu.pnum.GENERIC_F031K6T.build.product_line=STM32F031x6
877877
GenF0.menu.pnum.GENERIC_F031K6T.build.variant=STM32F0xx/Generic_F031K6T
878878

879+
# Generic F042C4
880+
GenF0.menu.pnum.GENERIC_F042C4=Generic F042C4
881+
GenF0.menu.pnum.GENERIC_F042C4.upload.maximum_size=16384
882+
GenF0.menu.pnum.GENERIC_F042C4.upload.maximum_data_size=6144
883+
GenF0.menu.pnum.GENERIC_F042C4.build.board=GENERIC_F042C4
884+
GenF0.menu.pnum.GENERIC_F042C4.build.product_line=STM32F042x6
885+
GenF0.menu.pnum.GENERIC_F042C4.build.variant=STM32F0xx/Generic_F042Cx
886+
887+
# Generic F042C6
888+
GenF0.menu.pnum.GENERIC_F042C6=Generic F042C6
889+
GenF0.menu.pnum.GENERIC_F042C6.upload.maximum_size=32768
890+
GenF0.menu.pnum.GENERIC_F042C6.upload.maximum_data_size=6144
891+
GenF0.menu.pnum.GENERIC_F042C6.build.board=GENERIC_F042C6
892+
GenF0.menu.pnum.GENERIC_F042C6.build.product_line=STM32F042x6
893+
GenF0.menu.pnum.GENERIC_F042C6.build.variant=STM32F0xx/Generic_F042Cx
894+
879895
# Generic F051K4U
880896
GenF0.menu.pnum.GENERIC_F051K4U=Generic F051K4U
881897
GenF0.menu.pnum.GENERIC_F051K4U.upload.maximum_size=16384
@@ -2842,6 +2858,14 @@ Eval.menu.xusb.HS.build.usb_speed=-DUSE_USB_HS
28422858
Eval.menu.xusb.HSFS=High Speed in Full Speed mode
28432859
Eval.menu.xusb.HSFS.build.usb_speed=-DUSE_USB_HS -DUSE_USB_HS_IN_FS
28442860

2861+
GenF0.menu.usb.none=None
2862+
GenF0.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
2863+
GenF0.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
2864+
GenF0.menu.usb.CDC=CDC (no generic 'Serial')
2865+
GenF0.menu.usb.CDC.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB
2866+
GenF0.menu.usb.HID=HID (keyboard and mouse)
2867+
GenF0.menu.usb.HID.build.enable_usb={build.usb_flags} -DUSBD_USE_HID_COMPOSITE
2868+
28452869
GenF1.menu.usb.none=None
28462870
GenF1.menu.usb.CDCgen=CDC (generic 'Serial' supersede U(S)ART)
28472871
GenF1.menu.usb.CDCgen.build.enable_usb={build.usb_flags} -DUSBD_USE_CDC
Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
/*
2+
*******************************************************************************
3+
* Copyright (c) 2021, 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 STM32F042C(4-6)Tx.xml
15+
* CubeMX DB release 6.0.10
16+
*/
17+
#include "Arduino.h"
18+
#include "PeripheralPins.h"
19+
20+
/* =====
21+
* Notes:
22+
* - The pins mentioned Px_y_ALTz are alternative possibilities which use other
23+
* HW peripheral instances. You can use them the same way as any other "normal"
24+
* pin (i.e. analogWrite(PA7_ALT0, 128);).
25+
*
26+
* - Commented lines are alternative possibilities which are not used per default.
27+
* If you change them, you will have to know what you do
28+
* =====
29+
*/
30+
31+
//*** ADC ***
32+
33+
#ifdef HAL_ADC_MODULE_ENABLED
34+
WEAK const PinMap PinMap_ADC[] = {
35+
{PA_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC_IN0
36+
{PA_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC_IN1
37+
{PA_2, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC_IN2
38+
{PA_3, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC_IN3
39+
{PA_4, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC_IN4
40+
{PA_5, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC_IN5
41+
{PA_6, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC_IN6
42+
{PA_7, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC_IN7
43+
{PB_0, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC_IN8
44+
{PB_1, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC_IN9
45+
{NC, NP, 0}
46+
};
47+
#endif
48+
49+
//*** No DAC ***
50+
51+
//*** I2C ***
52+
53+
#ifdef HAL_I2C_MODULE_ENABLED
54+
WEAK const PinMap PinMap_I2C_SDA[] = {
55+
{PA_10, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
56+
{PA_12, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF5_I2C1)},
57+
{PB_7, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
58+
{PB_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
59+
{PB_11, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
60+
{PB_14, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF_NONE)},
61+
{PF_0, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
62+
{NC, NP, 0}
63+
};
64+
#endif
65+
66+
#ifdef HAL_I2C_MODULE_ENABLED
67+
WEAK const PinMap PinMap_I2C_SCL[] = {
68+
{PA_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
69+
{PA_11, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF5_I2C1)},
70+
{PB_6, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
71+
{PB_8, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
72+
{PB_10, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
73+
{PB_13, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF_NONE)},
74+
{PF_1, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF1_I2C1)},
75+
{NC, NP, 0}
76+
};
77+
#endif
78+
79+
//*** TIM ***
80+
81+
#ifdef HAL_TIM_MODULE_ENABLED
82+
WEAK const PinMap PinMap_TIM[] = {
83+
{PA_0, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 1, 0)}, // TIM2_CH1
84+
{PA_1, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2
85+
{PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 3, 0)}, // TIM2_CH3
86+
{PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 4, 0)}, // TIM2_CH4
87+
{PA_4, TIM14, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM14, 1, 0)}, // TIM14_CH1
88+
{PA_5, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 1, 0)}, // TIM2_CH1
89+
{PA_6, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM3, 1, 0)}, // TIM3_CH1
90+
{PA_6_ALT0, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM16, 1, 0)}, // TIM16_CH1
91+
{PA_7, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 1, 1)}, // TIM1_CH1N
92+
{PA_7_ALT0, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM3, 2, 0)}, // TIM3_CH2
93+
{PA_7_ALT1, TIM14, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM14, 1, 0)}, // TIM14_CH1
94+
{PA_7_ALT2, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM17, 1, 0)}, // TIM17_CH1
95+
{PA_8, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 1, 0)}, // TIM1_CH1
96+
{PA_9, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 2, 0)}, // TIM1_CH2
97+
{PA_10, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 3, 0)}, // TIM1_CH3
98+
{PA_11, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 4, 0)}, // TIM1_CH4
99+
{PA_15, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 1, 0)}, // TIM2_CH1
100+
{PB_0, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 2, 1)}, // TIM1_CH2N
101+
{PB_0_ALT0, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM3, 3, 0)}, // TIM3_CH3
102+
{PB_1, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 3, 1)}, // TIM1_CH3N
103+
{PB_1_ALT0, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM3, 4, 0)}, // TIM3_CH4
104+
{PB_1_ALT1, TIM14, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM14, 1, 0)}, // TIM14_CH1
105+
{PB_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2
106+
{PB_4, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM3, 1, 0)}, // TIM3_CH1
107+
{PB_5, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM3, 2, 0)}, // TIM3_CH2
108+
{PB_6, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM16, 1, 1)}, // TIM16_CH1N
109+
{PB_7, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM17, 1, 1)}, // TIM17_CH1N
110+
{PB_8, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM16, 1, 0)}, // TIM16_CH1
111+
{PB_9, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM17, 1, 0)}, // TIM17_CH1
112+
{PB_10, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 3, 0)}, // TIM2_CH3
113+
{PB_11, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 4, 0)}, // TIM2_CH4
114+
{PB_13, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 1, 1)}, // TIM1_CH1N
115+
{PB_14, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 2, 1)}, // TIM1_CH2N
116+
{PB_15, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM1, 3, 1)}, // TIM1_CH3N
117+
{NC, NP, 0}
118+
};
119+
#endif
120+
121+
//*** UART ***
122+
123+
#ifdef HAL_UART_MODULE_ENABLED
124+
WEAK const PinMap PinMap_UART_TX[] = {
125+
{PA_2, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
126+
{PA_9, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
127+
{PA_14, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
128+
{PB_6, 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_RX[] = {
135+
{PA_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
136+
{PA_10, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
137+
{PA_15, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
138+
{PB_7, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
139+
{NC, NP, 0}
140+
};
141+
#endif
142+
143+
#ifdef HAL_UART_MODULE_ENABLED
144+
WEAK const PinMap PinMap_UART_RTS[] = {
145+
{PA_1, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
146+
{PA_12, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
147+
{NC, NP, 0}
148+
};
149+
#endif
150+
151+
#ifdef HAL_UART_MODULE_ENABLED
152+
WEAK const PinMap PinMap_UART_CTS[] = {
153+
{PA_0, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
154+
{PA_11, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
155+
{NC, NP, 0}
156+
};
157+
#endif
158+
159+
//*** SPI ***
160+
161+
#ifdef HAL_SPI_MODULE_ENABLED
162+
WEAK const PinMap PinMap_SPI_MOSI[] = {
163+
{PA_7, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
164+
{PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
165+
{PB_15, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI2)},
166+
{NC, NP, 0}
167+
};
168+
#endif
169+
170+
#ifdef HAL_SPI_MODULE_ENABLED
171+
WEAK const PinMap PinMap_SPI_MISO[] = {
172+
{PA_6, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
173+
{PB_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
174+
{PB_14, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI2)},
175+
{NC, NP, 0}
176+
};
177+
#endif
178+
179+
#ifdef HAL_SPI_MODULE_ENABLED
180+
WEAK const PinMap PinMap_SPI_SCLK[] = {
181+
{PA_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
182+
{PB_3, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
183+
{PB_10, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
184+
{PB_13, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI2)},
185+
{NC, NP, 0}
186+
};
187+
#endif
188+
189+
#ifdef HAL_SPI_MODULE_ENABLED
190+
WEAK const PinMap PinMap_SPI_SSEL[] = {
191+
{PA_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
192+
{PA_15, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI1)},
193+
{PB_9, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI2)},
194+
{PB_12, SPI2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_SPI2)},
195+
{NC, NP, 0}
196+
};
197+
#endif
198+
199+
//*** CAN ***
200+
201+
#ifdef HAL_CAN_MODULE_ENABLED
202+
WEAK const PinMap PinMap_CAN_RD[] = {
203+
{PA_11, CAN1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_CAN)},
204+
{PB_8, CAN1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_CAN)},
205+
{NC, NP, 0}
206+
};
207+
#endif
208+
209+
#ifdef HAL_CAN_MODULE_ENABLED
210+
WEAK const PinMap PinMap_CAN_TD[] = {
211+
{PA_12, CAN1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_CAN)},
212+
{PB_9, CAN1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_CAN)},
213+
{NC, NP, 0}
214+
};
215+
#endif
216+
217+
//*** No ETHERNET ***
218+
219+
//*** No QUADSPI ***
220+
221+
//*** USB ***
222+
223+
#if defined(HAL_PCD_MODULE_ENABLED) || defined(HAL_HCD_MODULE_ENABLED)
224+
WEAK const PinMap PinMap_USB[] = {
225+
{PA_4, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_USB)}, // USB_NOE
226+
{PA_11, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM
227+
{PA_12, USB, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP
228+
{PA_13, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_USB)}, // USB_NOE
229+
{PA_15, USB, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_USB)}, // USB_NOE
230+
{NC, NP, 0}
231+
};
232+
#endif
233+
234+
//*** No SD ***
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* Alternate pin name */
2+
PA_6_ALT0 = PA_6 | ALT0,
3+
PA_7_ALT0 = PA_7 | ALT0,
4+
PA_7_ALT1 = PA_7 | ALT1,
5+
PA_7_ALT2 = PA_7 | ALT2,
6+
PB_0_ALT0 = PB_0 | ALT0,
7+
PB_1_ALT0 = PB_1 | ALT0,
8+
PB_1_ALT1 = PB_1 | ALT1,
9+
10+
/* SYS_WKUP */
11+
#ifdef PWR_WAKEUP_PIN1
12+
SYS_WKUP1 = PA_0,
13+
#endif
14+
#ifdef PWR_WAKEUP_PIN2
15+
SYS_WKUP2 = PC_13,
16+
#endif
17+
#ifdef PWR_WAKEUP_PIN3
18+
SYS_WKUP3 = NC,
19+
#endif
20+
#ifdef PWR_WAKEUP_PIN4
21+
SYS_WKUP4 = PA_2,
22+
#endif
23+
#ifdef PWR_WAKEUP_PIN5
24+
SYS_WKUP5 = NC,
25+
#endif
26+
#ifdef PWR_WAKEUP_PIN6
27+
SYS_WKUP6 = PB_5,
28+
#endif
29+
#ifdef PWR_WAKEUP_PIN7
30+
SYS_WKUP7 = PB_15,
31+
#endif
32+
#ifdef PWR_WAKEUP_PIN8
33+
SYS_WKUP8 = NC,
34+
#endif
35+
36+
/* USB */
37+
#ifdef USBCON
38+
USB_DM = PA_11,
39+
USB_DP = PA_12,
40+
#ifdef USB_NOE_PA_4
41+
USB_NOE = PA_4,
42+
#endif
43+
#ifdef USB_NOE_PA_13
44+
USB_NOE = PA_13,
45+
#endif
46+
#ifdef USB_NOE_PA_15
47+
USB_NOE = PA_15,
48+
#endif
49+
#endif
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
/**
2+
******************************************************************************
3+
* @file LinkerScript.ld
4+
* @author Auto-generated by STM32CubeIDE
5+
* @brief Linker script for STM32F042C6Tx Device from STM32F0 series
6+
* 32Kbytes FLASH
7+
* 6Kbytes RAM
8+
*
9+
* Set heap size, stack size and stack location according
10+
* to application requirements.
11+
*
12+
* Set memory bank area and size if external memory is used
13+
******************************************************************************
14+
* @attention
15+
*
16+
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
17+
* All rights reserved.</center></h2>
18+
*
19+
* This software component is licensed by ST under BSD 3-Clause license,
20+
* the "License"; You may not use this file except in compliance with the
21+
* License. You may obtain a copy of the License at:
22+
* opensource.org/licenses/BSD-3-Clause
23+
*
24+
******************************************************************************
25+
*/
26+
27+
/* Entry Point */
28+
ENTRY(Reset_Handler)
29+
30+
/* Highest address of the user mode stack */
31+
_estack = ORIGIN(RAM) + LENGTH(RAM); /* end of "RAM" Ram type memory */
32+
33+
_Min_Heap_Size = 0x200; /* required amount of heap */
34+
_Min_Stack_Size = 0x400; /* required amount of stack */
35+
36+
/* Memories definition */
37+
MEMORY
38+
{
39+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
40+
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
41+
}
42+
43+
/* Sections */
44+
SECTIONS
45+
{
46+
/* The startup code into "FLASH" Rom type memory */
47+
.isr_vector :
48+
{
49+
. = ALIGN(4);
50+
KEEP(*(.isr_vector)) /* Startup code */
51+
. = ALIGN(4);
52+
} >FLASH
53+
54+
/* The program code and other data into "FLASH" Rom type memory */
55+
.text :
56+
{
57+
. = ALIGN(4);
58+
*(.text) /* .text sections (code) */
59+
*(.text*) /* .text* sections (code) */
60+
*(.glue_7) /* glue arm to thumb code */
61+
*(.glue_7t) /* glue thumb to arm code */
62+
*(.eh_frame)
63+
64+
KEEP (*(.init))
65+
KEEP (*(.fini))
66+
67+
. = ALIGN(4);
68+
_etext = .; /* define a global symbols at end of code */
69+
} >FLASH
70+
71+
/* Constant data into "FLASH" Rom type memory */
72+
.rodata :
73+
{
74+
. = ALIGN(4);
75+
*(.rodata) /* .rodata sections (constants, strings, etc.) */
76+
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
77+
. = ALIGN(4);
78+
} >FLASH
79+
80+
.ARM.extab : {
81+
. = ALIGN(4);
82+
*(.ARM.extab* .gnu.linkonce.armextab.*)
83+
. = ALIGN(4);
84+
} >FLASH
85+
86+
.ARM : {
87+
. = ALIGN(4);
88+
__exidx_start = .;
89+
*(.ARM.exidx*)
90+
__exidx_end = .;
91+
. = ALIGN(4);
92+
} >FLASH
93+
94+
.preinit_array :
95+
{
96+
. = ALIGN(4);
97+
PROVIDE_HIDDEN (__preinit_array_start = .);
98+
KEEP (*(.preinit_array*))
99+
PROVIDE_HIDDEN (__preinit_array_end = .);
100+
. = ALIGN(4);
101+
} >FLASH
102+
103+
.init_array :
104+
{
105+
. = ALIGN(4);
106+
PROVIDE_HIDDEN (__init_array_start = .);
107+
KEEP (*(SORT(.init_array.*)))
108+
KEEP (*(.init_array*))
109+
PROVIDE_HIDDEN (__init_array_end = .);
110+
. = ALIGN(4);
111+
} >FLASH
112+
113+
.fini_array :
114+
{
115+
. = ALIGN(4);
116+
PROVIDE_HIDDEN (__fini_array_start = .);
117+
KEEP (*(SORT(.fini_array.*)))
118+
KEEP (*(.fini_array*))
119+
PROVIDE_HIDDEN (__fini_array_end = .);
120+
. = ALIGN(4);
121+
} >FLASH
122+
123+
/* Used by the startup to initialize data */
124+
_sidata = LOADADDR(.data);
125+
126+
/* Initialized data sections into "RAM" Ram type memory */
127+
.data :
128+
{
129+
. = ALIGN(4);
130+
_sdata = .; /* create a global symbol at data start */
131+
*(.data) /* .data sections */
132+
*(.data*) /* .data* sections */
133+
134+
. = ALIGN(4);
135+
_edata = .; /* define a global symbol at data end */
136+
137+
} >RAM AT> FLASH
138+
139+
/* Uninitialized data section into "RAM" Ram type memory */
140+
. = ALIGN(4);
141+
.bss :
142+
{
143+
/* This is used by the startup in order to initialize the .bss section */
144+
_sbss = .; /* define a global symbol at bss start */
145+
__bss_start__ = _sbss;
146+
*(.bss)
147+
*(.bss*)
148+
*(COMMON)
149+
150+
. = ALIGN(4);
151+
_ebss = .; /* define a global symbol at bss end */
152+
__bss_end__ = _ebss;
153+
} >RAM
154+
155+
/* User_heap_stack section, used to check that there is enough "RAM" Ram type memory left */
156+
._user_heap_stack :
157+
{
158+
. = ALIGN(8);
159+
PROVIDE ( end = . );
160+
PROVIDE ( _end = . );
161+
. = . + _Min_Heap_Size;
162+
. = . + _Min_Stack_Size;
163+
. = ALIGN(8);
164+
} >RAM
165+
166+
/* Remove information from the compiler libraries */
167+
/DISCARD/ :
168+
{
169+
libc.a ( * )
170+
libm.a ( * )
171+
libgcc.a ( * )
172+
}
173+
174+
.ARM.attributes 0 : { *(.ARM.attributes) }
175+
}
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
/*
2+
*******************************************************************************
3+
* Copyright (c) 2021, 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_F042C4) || defined(ARDUINO_GENERIC_F042C6)
14+
#include "pins_arduino.h"
15+
16+
#ifdef __cplusplus
17+
extern "C" {
18+
#endif
19+
20+
// Digital PinName array
21+
const PinName digitalPin[] = {
22+
PA_0,
23+
PA_1,
24+
PA_2,
25+
PA_3,
26+
PA_4,
27+
PA_5,
28+
PA_6,
29+
PA_7,
30+
PA_8,
31+
PA_9,
32+
PA_10,
33+
PA_11,
34+
PA_12,
35+
PA_13,
36+
PA_14,
37+
PA_15,
38+
PB_0,
39+
PB_1,
40+
PB_2,
41+
PB_3,
42+
PB_4,
43+
PB_5,
44+
PB_6,
45+
PB_7,
46+
PB_8,
47+
PB_9,
48+
PB_10,
49+
PB_11,
50+
PB_12,
51+
PB_13,
52+
PB_14,
53+
PB_15,
54+
PC_13,
55+
PC_14,
56+
PC_15,
57+
PF_0,
58+
PF_1,
59+
PF_11
60+
};
61+
62+
// Analog (Ax) pin number array
63+
const uint32_t analogInputPin[] = {
64+
0, // A0, PA0
65+
1, // A1, PA1
66+
2, // A2, PA2
67+
3, // A3, PA3
68+
4, // A4, PA4
69+
5, // A5, PA5
70+
6, // A6, PA6
71+
7, // A7, PA7
72+
16, // A8, PB0
73+
17 // A9, PB1
74+
};
75+
76+
/******************************************************************************/
77+
/* PLL (clocked by HSE) used as System clock source */
78+
/******************************************************************************/
79+
static bool SetSysClock_PLL_HSE(bool bypass)
80+
{
81+
RCC_OscInitTypeDef RCC_OscInitStruct = {};
82+
RCC_ClkInitTypeDef RCC_ClkInitStruct = {};
83+
RCC_PeriphCLKInitTypeDef PeriphClkInit = {};
84+
85+
bool ret = false;
86+
/*
87+
* Initializes the RCC Oscillators according to the specified parameters
88+
* in the RCC_OscInitTypeDef structure.
89+
*/
90+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
91+
if (bypass == false) {
92+
RCC_OscInitStruct.HSEState = RCC_HSE_ON; // External 8 MHz xtal on OSC_IN/OSC_OUT
93+
} else {
94+
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS; // External 8 MHz clock on OSC_IN
95+
}
96+
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
97+
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
98+
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;
99+
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
100+
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) == HAL_OK) {
101+
/* Initializes the CPU, AHB and APB buses clocks */
102+
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
103+
| RCC_CLOCKTYPE_PCLK1;
104+
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
105+
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
106+
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
107+
108+
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) == HAL_OK) {
109+
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USB;
110+
PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_PLL;
111+
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) {
112+
ret = true;
113+
}
114+
}
115+
}
116+
return ret;
117+
}
118+
119+
/******************************************************************************/
120+
/* PLL (clocked by HSI) used as System clock source */
121+
/******************************************************************************/
122+
static bool SetSysClock_PLL_HSI(void)
123+
{
124+
RCC_OscInitTypeDef RCC_OscInitStruct = {};
125+
RCC_ClkInitTypeDef RCC_ClkInitStruct = {};
126+
RCC_PeriphCLKInitTypeDef PeriphClkInit = {};
127+
bool ret = false;
128+
/*
129+
* Initializes the RCC Oscillators according to the specified parameters
130+
* in the RCC_OscInitTypeDef structure.
131+
*/
132+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48;
133+
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
134+
RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
135+
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
136+
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
137+
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
138+
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;
139+
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
140+
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) == HAL_OK) {
141+
/* Initializes the CPU, AHB and APB buses clocks */
142+
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
143+
| RCC_CLOCKTYPE_PCLK1;
144+
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
145+
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
146+
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
147+
148+
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) == HAL_OK) {
149+
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USB;
150+
PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_HSI48;
151+
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) {
152+
ret = true;
153+
}
154+
}
155+
}
156+
return ret;
157+
}
158+
159+
WEAK void SystemClock_Config(void)
160+
{
161+
/*
162+
* HSE_VALUE defined in the stm32f0xx_hal_conf_default.h is used.
163+
* If HSE_VALUE is not the same and you want use it, then:
164+
* - Redefine HSE_VALUE to the correct HSE_VALUE
165+
* and
166+
* - Redefine SystemClock_Config() with the correct settings
167+
*/
168+
/* 1- Try to start with HSE and external 8MHz xtal */
169+
if (SetSysClock_PLL_HSE(false) == false) {
170+
/* 2- If fail try to start with HSE and external clock */
171+
if (SetSysClock_PLL_HSE(true) == false) {
172+
/* 3- If fail start with HSI clock */
173+
if (SetSysClock_PLL_HSI() == false) {
174+
Error_Handler();
175+
}
176+
}
177+
}
178+
}
179+
180+
#ifdef __cplusplus
181+
} // extern "C"
182+
#endif
183+
#endif /* ARDUINO_GENERIC_* */
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
/*
2+
*******************************************************************************
3+
* Copyright (c) 2021, 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_F042C4) && !defined(ARDUINO_GENERIC_F042C6)
14+
/* No specific board */
15+
#else
16+
#ifndef _VARIANT_ARDUINO_STM32_
17+
#define _VARIANT_ARDUINO_STM32_
18+
#ifdef __cplusplus
19+
extern "C" {
20+
#endif // __cplusplus
21+
22+
/*----------------------------------------------------------------------------
23+
* STM32 pins number
24+
*----------------------------------------------------------------------------*/
25+
#define PA0 A0
26+
#define PA1 A1
27+
#define PA2 A2
28+
#define PA3 A3
29+
#define PA4 A4
30+
#define PA5 A5
31+
#define PA6 A6
32+
#define PA7 A7
33+
#define PA8 8
34+
#define PA9 9
35+
#define PA10 10
36+
#define PA11 11
37+
#define PA12 12
38+
#define PA13 13
39+
#define PA14 14
40+
#define PA15 15
41+
#define PB0 A8
42+
#define PB1 A9
43+
#define PB2 18
44+
#define PB3 19
45+
#define PB4 20
46+
#define PB5 21
47+
#define PB6 22
48+
#define PB7 23
49+
#define PB8 24
50+
#define PB9 25
51+
#define PB10 26
52+
#define PB11 27
53+
#define PB12 28
54+
#define PB13 29
55+
#define PB14 30
56+
#define PB15 31
57+
#define PC13 32
58+
#define PC14 33
59+
#define PC15 34
60+
#define PF0 35
61+
#define PF1 36
62+
#define PF11 37
63+
64+
// Alternate pins number
65+
#define PA6_ALT0 (PA6 | ALT0)
66+
#define PA7_ALT0 (PA7 | ALT0)
67+
#define PA7_ALT1 (PA7 | ALT1)
68+
#define PA7_ALT2 (PA7 | ALT2)
69+
#define PB0_ALT0 (PB0 | ALT0)
70+
#define PB1_ALT0 (PB1 | ALT0)
71+
#define PB1_ALT1 (PB1 | ALT1)
72+
73+
#define NUM_DIGITAL_PINS 38
74+
#define NUM_ALTERNATE_PINS 7
75+
#define NUM_ANALOG_INPUTS 10
76+
77+
// On-board LED pin number
78+
#ifndef LED_BUILTIN
79+
#define LED_BUILTIN PC13
80+
#endif
81+
82+
// On-board user button
83+
#ifndef USER_BTN
84+
#define USER_BTN NC
85+
#endif
86+
87+
// SPI definitions
88+
#ifndef PIN_SPI_SS
89+
#define PIN_SPI_SS PA4
90+
#endif
91+
#ifndef PIN_SPI_SS1
92+
#define PIN_SPI_SS1 PA15
93+
#endif
94+
#ifndef PIN_SPI_SS2
95+
#define PIN_SPI_SS2 PB0
96+
#endif
97+
#ifndef PIN_SPI_SS3
98+
#define PIN_SPI_SS3 PB1
99+
#endif
100+
#ifndef PIN_SPI_MOSI
101+
#define PIN_SPI_MOSI PA7
102+
#endif
103+
#ifndef PIN_SPI_MISO
104+
#define PIN_SPI_MISO PA6
105+
#endif
106+
#ifndef PIN_SPI_SCK
107+
#define PIN_SPI_SCK PA5
108+
#endif
109+
110+
// I2C definitions
111+
#ifndef PIN_WIRE_SDA
112+
#define PIN_WIRE_SDA PA10
113+
#endif
114+
#ifndef PIN_WIRE_SCL
115+
#define PIN_WIRE_SCL PA9
116+
#endif
117+
118+
// Timer Definitions
119+
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
120+
#ifndef TIMER_TONE
121+
#define TIMER_TONE TIM14
122+
#endif
123+
#ifndef TIMER_SERVO
124+
#define TIMER_SERVO TIM16
125+
#endif
126+
127+
// UART Definitions
128+
#ifndef SERIAL_UART_INSTANCE
129+
#define SERIAL_UART_INSTANCE 2
130+
#endif
131+
132+
// Default pin used for generic 'Serial' instance
133+
// Mandatory for Firmata
134+
#ifndef PIN_SERIAL_RX
135+
#define PIN_SERIAL_RX PA3
136+
#endif
137+
#ifndef PIN_SERIAL_TX
138+
#define PIN_SERIAL_TX PA2
139+
#endif
140+
141+
#ifdef __cplusplus
142+
} // extern "C"
143+
#endif
144+
145+
/*----------------------------------------------------------------------------
146+
* Arduino objects - C++ only
147+
*----------------------------------------------------------------------------*/
148+
149+
#ifdef __cplusplus
150+
// These serial port names are intended to allow libraries and architecture-neutral
151+
// sketches to automatically default to the correct port name for a particular type
152+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
153+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
154+
//
155+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
156+
//
157+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
158+
//
159+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
160+
//
161+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
162+
//
163+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
164+
// pins are NOT connected to anything by default.
165+
#define SERIAL_PORT_MONITOR Serial
166+
#define SERIAL_PORT_HARDWARE Serial
167+
#endif
168+
169+
#endif /* _VARIANT_ARDUINO_STM32_ */
170+
#endif /* ARDUINO_GENERIC_* */

0 commit comments

Comments
 (0)
Please sign in to comment.