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 ecbc6b9

Browse files
ABOSTMMike Hajostek
authored and
Mike Hajostek
committedMar 25, 2020
NUCLEO_F756ZG: Use HSE Bypass as PLL clock source
1 parent cfc05f0 commit ecbc6b9

File tree

2 files changed

+482
-7
lines changed

2 files changed

+482
-7
lines changed
 

‎variants/NUCLEO_F756ZG/variant.cpp

+234-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,212 @@
11
/*
2+
*******************************************************************************
3+
* Copyright (c) 2017, STMicroelectronics
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions are met:
8+
*
9+
* 1. Redistributions of source code must retain the above copyright notice,
10+
* this list of conditions and the following disclaimer.
11+
* 2. Redistributions in binary form must reproduce the above copyright notice,
12+
* this list of conditions and the following disclaimer in the documentation
13+
* and/or other materials provided with the distribution.
14+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
15+
* may be used to endorse or promote products derived from this software
16+
* without specific prior written permission.
17+
*
18+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
*******************************************************************************
29+
*/
30+
31+
#include "pins_arduino.h"
32+
33+
#ifdef __cplusplus
34+
extern "C" {
35+
#endif
36+
37+
// Pin number
38+
// Match Table Table 16. NUCLEO-F207ZG pin assignments
39+
// from UM1974 STM32 Nucleo-144 board
40+
const PinName digitalPin[] = {
41+
PG_9, //D0
42+
PG_14, //D1
43+
PF_15, //D2
44+
PE_13, //D3
45+
PF_14, //D4
46+
PE_11, //D5
47+
PE_9, //D6
48+
PF_13, //D7
49+
PF_12, //D8
50+
PD_15, //D9
51+
PD_14, //D10
52+
PA_7, //D11 - If SB121, SB122 (ON,OFF) connected to PA7 (default, see D71)
53+
// else SB121, SB122 (OFF,ON) connected to PB5 (D22)
54+
PA_6, //D12
55+
PA_5, //D13
56+
PB_9, //D14
57+
PB_8, //D15
58+
PC_6, //D16
59+
PB_15, //D17
60+
PB_13, //D18 - used as I2S_A_CK and connected to CN7 pin 5 by default, if JP7 is ON,
61+
// it is also connected to Ethernet PHY as RMII_TXD1. In this case only
62+
// one function of Ethernet or I2S_A must be used.
63+
PB_12, //D19
64+
PA_15, //D20
65+
PC_7, //D21
66+
PB_5, //D22 - D11 if SB121 off, SB122 on
67+
PB_3, //D23
68+
PA_4, //D24
69+
PB_4, //D25
70+
PB_6, //D26
71+
PB_2, //D27
72+
PD_13, //D28
73+
PD_12, //D29
74+
PD_11, //D30
75+
PE_2, //D31 - PE2 is connected to both CN9 pin 14 (I/O) and CN10 pin 25 (I/O).
76+
// Only one connector pin must be used at one time.
77+
PA_0, //D32
78+
PB_0, //D33 - LED1
79+
PE_0, //D34
80+
PB_11, //D35
81+
PB_10, //D36
82+
PE_15, //D37
83+
PE_14, //D38
84+
PE_12, //D39
85+
PE_10, //D40
86+
PE_7, //D41
87+
PE_8, //D42
88+
PC_8, //D43
89+
PC_9, //D44
90+
PC_10, //D45
91+
PC_11, //D46
92+
PC_12, //D47
93+
PD_2, //D48
94+
PG_2, //D49
95+
PG_3, //D50
96+
PD_7, //D51
97+
PD_6, //D52
98+
PD_5, //D53
99+
PD_4, //D54
100+
PD_3, //D55
101+
PE_2, //D56 - connected to both CN9 pin 14 (I/O) and CN10 pin 25 (I/O).
102+
// Only one connector pin must be used at one time
103+
PE_4, //D57
104+
PE_5, //D58
105+
PE_6, //D59
106+
PE_3, //D60
107+
PF_8, //D61
108+
PF_7, //D62
109+
PF_9, //D63
110+
PG_1, //D64
111+
PG_0, //D65
112+
PD_1, //D66
113+
PD_0, //D67
114+
PF_0, //D68
115+
PF_1, //D69
116+
PF_2, //D70
117+
PA_7, //D71 - used as D11 and connected to CN7 pin 14 by default, if JP6 is ON,
118+
// it is also connected to both Ethernet PHY as RMII_DV and CN9 pin 15.
119+
// In this case only one function of the Ethernet or D11 must be used.
120+
NC, //D72
121+
PB_7, //D73 - LED_BLUE
122+
PB_14, //D74 - LED_RED
123+
PC_13, //D75 - USER_BTN
124+
PD_9, //D76 - Serial Rx
125+
PD_8, //D77 - Serial Tx
126+
PA_3, //D78/A0
127+
PC_0, //D79/A1
128+
PC_3, //D80/A2
129+
PF_3, //D81/A3
130+
PF_5, //D82/A4
131+
PF_10, //D83/A5
132+
PB_1, //D84/A6
133+
PC_2, //D85/A7
134+
PF_4, //D86/A8
135+
PF_6 //D87/A9
136+
};
137+
138+
// Analog (Ax) pin number array
139+
const uint32_t analogInputPin[] = {
140+
78, //A0
141+
79, //A1
142+
80, //A2
143+
81, //A3
144+
82, //A4
145+
83, //A5
146+
84, //A6
147+
85, //A7
148+
86, //A8
149+
87, //A9
150+
11, //A10
151+
12, //A11
152+
13, //A12
153+
24, //A13
154+
32, //A14
155+
61, //A15
156+
62, //A16
157+
63 //A17
158+
};
159+
160+
#ifdef __cplusplus
161+
}
162+
#endif
163+
164+
// ----------------------------------------------------------------------------
165+
166+
#ifdef __cplusplus
167+
extern "C" {
168+
#endif
169+
170+
/**
171+
* @brief System Clock Configuration
172+
* @param None
173+
* @retval None
174+
*/
175+
WEAK void SystemClock_Config(void)
176+
{
177+
// from CubeMX for f746
178+
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
179+
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
180+
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
181+
182+
/** Configure LSE Drive Capability
183+
*/
184+
HAL_PWR_EnableBkUpAccess();
185+
/** Configure the main internal regulator output voltage
186+
*/
187+
__HAL_RCC_PWR_CLK_ENABLE();
188+
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
189+
/** Initializes the CPU, AHB and APB busses clocks
190+
*/
191+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
192+
RCC_OscInitStruct.HSEState = RCC_HSE_ON; //RCC_HSE_BYPASS;
193+
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
194+
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
195+
RCC_OscInitStruct.PLL.PLLM = 4;
196+
RCC_OscInitStruct.PLL.PLLN = 216;
197+
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
198+
RCC_OscInitStruct.PLL.PLLQ = 9;
199+
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
200+
Error_Handler();
201+
}
202+
/** Activate the Over-Drive mode
203+
*/
204+
if (HAL_PWREx_EnableOverDrive() != HAL_OK) {
205+
Error_Handler();
206+
}
207+
/** Initializes the CPU, AHB and APB busses clocks
208+
*/
209+
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | /*
2210
Copyright (c) 2011 Arduino. All right reserved.
3211
4212
This library is free software; you can redistribute it and/or
@@ -151,14 +359,14 @@ extern "C" {
151359
/**
152360
* @brief System Clock Configuration
153361
* The system Clock is configured as follow :
154-
* System Clock source = PLL (HSI)
362+
* System Clock source = PLL (HSE)
155363
* SYSCLK(Hz) = 216000000
156364
* HCLK(Hz) = 216000000
157365
* AHB Prescaler = 1
158366
* APB1 Prescaler = 4
159367
* APB2 Prescaler = 2
160368
* HSE Frequency(Hz) = 16000000
161-
* PLL_M = 8
369+
* PLL_M = 4
162370
* PLL_N = 216
163371
* PLL_P = 2
164372
* PLL_Q = 9
@@ -182,12 +390,11 @@ WEAK void SystemClock_Config(void)
182390
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
183391
/** Initializes the CPU, AHB and APB busses clocks
184392
*/
185-
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
186-
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
187-
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
393+
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
394+
RCC_OscInitStruct.HSEState = RCC_HSE_ON; //RCC_HSE_BYPASS;
188395
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
189-
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
190-
RCC_OscInitStruct.PLL.PLLM = 8;
396+
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
397+
RCC_OscInitStruct.PLL.PLLM = 4;
191398
RCC_OscInitStruct.PLL.PLLN = 216;
192399
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
193400
RCC_OscInitStruct.PLL.PLLQ = 9;
@@ -222,3 +429,23 @@ WEAK void SystemClock_Config(void)
222429
#ifdef __cplusplus
223430
}
224431
#endif
432+
1 | RCC_CLOCKTYPE_PCLK2;
433+
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
434+
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
435+
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4;
436+
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
437+
438+
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_7) != HAL_OK) {
439+
Error_Handler();
440+
}
441+
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART3 | RCC_PERIPHCLK_CLK48;
442+
PeriphClkInitStruct.Usart3ClockSelection = RCC_USART3CLKSOURCE_PCLK1;
443+
PeriphClkInitStruct.Clk48ClockSelection = RCC_CLK48SOURCE_PLL;
444+
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) {
445+
Error_Handler();
446+
}
447+
}
448+
449+
#ifdef __cplusplus
450+
}
451+
#endif

‎variants/NUCLEO_F756ZG/variant.h

+248
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,119 @@
11
/*
2+
*******************************************************************************
3+
* Copyright (c) 2017, STMicroelectronics
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions are met:
8+
*
9+
* 1. Redistributions of source code must retain the above copyright notice,
10+
* this list of conditions and the following disclaimer.
11+
* 2. Redistributions in binary form must reproduce the above copyright notice,
12+
* this list of conditions and the following disclaimer in the documentation
13+
* and/or other materials provided with the distribution.
14+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
15+
* may be used to endorse or promote products derived from this software
16+
* without specific prior written permission.
17+
*
18+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
*******************************************************************************
29+
*/
30+
31+
#ifndef _VARIANT_ARDUINO_STM32_
32+
#define _VARIANT_ARDUINO_STM32_
33+
34+
#ifdef __cplusplus
35+
extern "C" {
36+
#endif // __cplusplus
37+
38+
#define HSE_VALUE ((uint32_t)8000000U) /*!< Value of the External oscillator in Hz */
39+
40+
/*----------------------------------------------------------------------------
41+
* Pins
42+
*----------------------------------------------------------------------------*/
43+
44+
#define PG9 0
45+
#define PG14 1
46+
#define PF15 2
47+
#define PE13 3
48+
#define PF14 4
49+
#define PE11 5
50+
#define PE9 6
51+
#define PF13 7
52+
#define PF12 8
53+
#define PD15 9
54+
#define PD14 10
55+
#define PA7 A10
56+
#define PA6 A11
57+
#define PA5 A12
58+
#define PB9 14
59+
#define PB8 15
60+
#define PC6 16
61+
#define PB15 17
62+
#define PB13 18
63+
#define PB12 19
64+
#define PA15 20
65+
#define PC7 21
66+
#define PB5 22
67+
#define PB3 23
68+
#define PA4 A13
69+
#define PB4 25
70+
#define PB6 26
71+
#define PB2 27
72+
#define PD13 28
73+
#define PD12 29
74+
#define PD11 30
75+
#define PE2 31
76+
#define PA0 A14
77+
#define PB0 33 // LED1
78+
#define PE0 34
79+
#define PB11 35
80+
#define PB10 36
81+
#define PE15 37
82+
#define PE14 38
83+
#define PE12 39
84+
#define PE10 40
85+
#define PE7 41
86+
#define PE8 42
87+
#define PC8 43
88+
#define PC9 44
89+
#define PC10 45
90+
#define PC11 46
91+
#define PC12 47
92+
#define PD2 48
93+
#define PG2 49
94+
#define PG3 50
95+
#define PD7 51
96+
#define PD6 52
97+
#define PD5 53
98+
#define PD4 54
99+
#define PD3 55
100+
// 56 is PE2 (31)
101+
#define PE4 57
102+
#define PE5 58
103+
#define PE6 59
104+
#define PE3 60
105+
#define PF8 A15
106+
#define PF7 A16
107+
#define PF9 A17
108+
#define PG1 64
109+
#define PG0 65
110+
#define PD1 66
111+
#define PD0 67
112+
#define PF0 68
113+
#define PF1 69
114+
#define PF2 70
115+
// 71 is PA7 (11)
116+
// 72 is NC/*
2117
Copyright (c) 2011 Arduino. All right reserved.
3118

4119
This library is free software; you can redistribute it and/or
@@ -23,6 +138,8 @@
23138
extern "C" {
24139
#endif // __cplusplus
25140

141+
#define HSE_VALUE ((uint32_t)8000000U) /*!< Value of the External oscillator in Hz */
142+
26143
/*----------------------------------------------------------------------------
27144
* Pins
28145
*----------------------------------------------------------------------------*/
@@ -181,3 +298,134 @@ extern "C" {
181298
#endif
182299

183300
#endif /* _VARIANT_ARDUINO_STM32_ */
301+
302+
#define PA3 A0
303+
#define PC0 A1
304+
#define PC3 A2
305+
#define PF3 A3
306+
#define PF5 A4
307+
#define PF10 A5
308+
#define PB1 A6
309+
#define PC2 A7
310+
#define PF4 A8
311+
#define PF6 A9
312+
313+
// This must be a literal
314+
#define NUM_DIGITAL_PINS 88
315+
// This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
316+
#define NUM_ANALOG_INPUTS 18
317+
318+
// On-board LED pin number
319+
#define LED_BUILTIN PB0
320+
#define LED_GREEN LED_BUILTIN
321+
#define LED_BLUE PB7
322+
#define LED_RED PB14
323+
324+
// On-board user button
325+
#define USER_BTN PC13
326+
327+
// Timer Definitions
328+
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
329+
#define TIMER_TONE TIM6
330+
#define TIMER_SERVO TIM7
331+
332+
// UART Definitions
333+
#define SERIAL_UART_INSTANCE 3 //Connected to ST-Link
334+
// Default pin used for 'Serial' instance (ex: ST-Link)
335+
// Mandatory for Firmata
336+
#define PIN_SERIAL_RX PD9
337+
#define PIN_SERIAL_TX PD8
338+
339+
// Below SPI and I2C definitions already done in the core
340+
// Could be redefined here if differs from the default one
341+
// SPI Definitions
342+
#define PIN_SPI_SS PD14 // 10 - Default for Arduino connector compatibility
343+
#define PIN_SPI_MOSI PA7 // 11 - Default for Arduino connector compatibility
344+
#define PIN_SPI_MISO PA6 // 12 - Default for Arduino connector compatibility
345+
#define PIN_SPI_SCK PA5 // 13 - Default for Arduino connector compatibility
346+
347+
// I2C Definitions
348+
#define PIN_WIRE_SDA PB9 // 14 - Default for Arduino connector compatibility
349+
#define PIN_WIRE_SCL PB8 // 15 - Default for Arduino connector compatibility
350+
351+
/* Extra HAL modules */
352+
#define HAL_MODULE_ENABLED
353+
354+
/* #define HAL_ADC_MODULE_ENABLED */
355+
/* #define HAL_CRYP_MODULE_ENABLED */
356+
/* #define HAL_CAN_MODULE_ENABLED */
357+
/* #define HAL_CEC_MODULE_ENABLED */
358+
/* #define HAL_CRC_MODULE_ENABLED */
359+
/* #define HAL_CRYP_MODULE_ENABLED */
360+
/* #define HAL_DAC_MODULE_ENABLED */
361+
/* #define HAL_DCMI_MODULE_ENABLED */
362+
/* #define HAL_DMA2D_MODULE_ENABLED */
363+
#define HAL_ETH_MODULE_ENABLED
364+
/* #define HAL_NAND_MODULE_ENABLED */
365+
/* #define HAL_NOR_MODULE_ENABLED */
366+
/* #define HAL_SRAM_MODULE_ENABLED */
367+
/* #define HAL_SDRAM_MODULE_ENABLED */
368+
/* #define HAL_HASH_MODULE_ENABLED */
369+
/* #define HAL_I2S_MODULE_ENABLED */
370+
/* #define HAL_IWDG_MODULE_ENABLED */
371+
/* #define HAL_LPTIM_MODULE_ENABLED */
372+
/* #define HAL_LTDC_MODULE_ENABLED */
373+
/* #define HAL_QSPI_MODULE_ENABLED */
374+
/* #define HAL_RNG_MODULE_ENABLED */
375+
/* #define HAL_RTC_MODULE_ENABLED */
376+
/* #define HAL_SAI_MODULE_ENABLED */
377+
/* #define HAL_SD_MODULE_ENABLED */
378+
/* #define HAL_MMC_MODULE_ENABLED */
379+
/* #define HAL_SPDIFRX_MODULE_ENABLED */
380+
#define HAL_SPI_MODULE_ENABLED
381+
/* #define HAL_TIM_MODULE_ENABLED */
382+
#define HAL_UART_MODULE_ENABLED
383+
/* #define HAL_USART_MODULE_ENABLED */
384+
/* #define HAL_IRDA_MODULE_ENABLED */
385+
/* #define HAL_SMARTCARD_MODULE_ENABLED */
386+
/* #define HAL_WWDG_MODULE_ENABLED */
387+
#define HAL_PCD_MODULE_ENABLED
388+
/* #define HAL_HCD_MODULE_ENABLED */
389+
/* #define HAL_DFSDM_MODULE_ENABLED */
390+
/* #define HAL_DSI_MODULE_ENABLED */
391+
/* #define HAL_JPEG_MODULE_ENABLED */
392+
/* #define HAL_MDIOS_MODULE_ENABLED */
393+
/* #define HAL_SMBUS_MODULE_ENABLED */
394+
/* #define HAL_EXTI_MODULE_ENABLED */
395+
#define HAL_GPIO_MODULE_ENABLED
396+
#define HAL_EXTI_MODULE_ENABLED
397+
#define HAL_DMA_MODULE_ENABLED
398+
#define HAL_RCC_MODULE_ENABLED
399+
#define HAL_FLASH_MODULE_ENABLED
400+
#define HAL_PWR_MODULE_ENABLED
401+
#define HAL_I2C_MODULE_ENABLED
402+
#define HAL_CORTEX_MODULE_ENABLED
403+
404+
#ifdef __cplusplus
405+
} // extern "C"
406+
#endif
407+
/*----------------------------------------------------------------------------
408+
* Arduino objects - C++ only
409+
*----------------------------------------------------------------------------*/
410+
411+
#ifdef __cplusplus
412+
// These serial port names are intended to allow libraries and architecture-neutral
413+
// sketches to automatically default to the correct port name for a particular type
414+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
415+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
416+
//
417+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
418+
//
419+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
420+
//
421+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
422+
//
423+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
424+
//
425+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
426+
// pins are NOT connected to anything by default.
427+
#define SERIAL_PORT_MONITOR Serial
428+
#define SERIAL_PORT_HARDWARE Serial
429+
#endif
430+
431+
#endif /* _VARIANT_ARDUINO_STM32_ */

0 commit comments

Comments
 (0)
Please sign in to comment.