Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 1a3896e

Browse files
authored
Update Packages' Patches
1 parent 86824e0 commit 1a3896e

File tree

16 files changed

+1042
-1042
lines changed

16 files changed

+1042
-1042
lines changed

Packages_Patches/STM32/hardware/stm32/1.9.0/variants/NUCLEO_F767ZI/variant.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,26 @@ extern "C" {
160160
----------------------------------------------------------------------------*/
161161

162162
#ifdef __cplusplus
163-
// These serial port names are intended to allow libraries and architecture-neutral
164-
// sketches to automatically default to the correct port name for a particular type
165-
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
166-
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
167-
//
168-
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
169-
//
170-
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
171-
//
172-
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
173-
//
174-
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
175-
//
176-
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
177-
// pins are NOT connected to anything by default.
178-
#define SERIAL_PORT_MONITOR Serial
179-
180-
// KH mod to add Serial1, for ESP-AT
181-
//#define SERIAL_PORT_HARDWARE Serial
182-
#define SERIAL_PORT_HARDWARE Serial1
163+
// These serial port names are intended to allow libraries and architecture-neutral
164+
// sketches to automatically default to the correct port name for a particular type
165+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
166+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
167+
//
168+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
169+
//
170+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
171+
//
172+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
173+
//
174+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
175+
//
176+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
177+
// pins are NOT connected to anything by default.
178+
#define SERIAL_PORT_MONITOR Serial
179+
180+
// KH mod to add Serial1, for ESP-AT
181+
//#define SERIAL_PORT_HARDWARE Serial
182+
#define SERIAL_PORT_HARDWARE Serial1
183183
#endif
184184

185185
#endif /* _VARIANT_ARDUINO_STM32_ */

Packages_Patches/STM32/hardware/stm32/1.9.0/variants/NUCLEO_L053R8/variant.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,26 @@ extern "C" {
120120
----------------------------------------------------------------------------*/
121121

122122
#ifdef __cplusplus
123-
// These serial port names are intended to allow libraries and architecture-neutral
124-
// sketches to automatically default to the correct port name for a particular type
125-
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
126-
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
127-
//
128-
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
129-
//
130-
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
131-
//
132-
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
133-
//
134-
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
135-
//
136-
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
137-
// pins are NOT connected to anything by default.
138-
#define SERIAL_PORT_MONITOR Serial
139-
140-
// KH mod to add Serial1, for ESP-AT
141-
//#define SERIAL_PORT_HARDWARE Serial
142-
#define SERIAL_PORT_HARDWARE Serial1
123+
// These serial port names are intended to allow libraries and architecture-neutral
124+
// sketches to automatically default to the correct port name for a particular type
125+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
126+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
127+
//
128+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
129+
//
130+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
131+
//
132+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
133+
//
134+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
135+
//
136+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
137+
// pins are NOT connected to anything by default.
138+
#define SERIAL_PORT_MONITOR Serial
139+
140+
// KH mod to add Serial1, for ESP-AT
141+
//#define SERIAL_PORT_HARDWARE Serial
142+
#define SERIAL_PORT_HARDWARE Serial1
143143
#endif
144144

145145
#endif /* _VARIANT_ARDUINO_STM32_ */

Packages_Patches/STM32/hardware/stm32/2.0.0/variants/F765Z(G-I)T_F767Z(G-I)T_F777ZIT/variant_NUCLEO_F767ZI.h

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -188,54 +188,54 @@
188188

189189
// On-board LED pin number
190190
#ifndef LED_BUILTIN
191-
#define LED_BUILTIN PB0
191+
#define LED_BUILTIN PB0
192192
#endif
193193
#define LED_GREEN LED_BUILTIN
194194
#define LED_BLUE PB7
195195
#define LED_RED PB14
196196

197197
// On-board user button
198198
#ifndef USER_BTN
199-
#define USER_BTN PC13
199+
#define USER_BTN PC13
200200
#endif
201201

202202
// Timer Definitions
203203
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
204204
#ifndef TIMER_TONE
205-
#define TIMER_TONE TIM6
205+
#define TIMER_TONE TIM6
206206
#endif
207207
#ifndef TIMER_SERVO
208-
#define TIMER_SERVO TIM7
208+
#define TIMER_SERVO TIM7
209209
#endif
210210

211211
// UART Definitions
212212
#ifndef SERIAL_UART_INSTANCE
213-
#define SERIAL_UART_INSTANCE 3 //Connected to ST-Link
213+
#define SERIAL_UART_INSTANCE 3 //Connected to ST-Link
214214
#endif
215215
// Serial pin used for console (ex: stlink)
216216
// Rerquired by Firmata
217217
#ifndef PIN_SERIAL_RX
218-
#define PIN_SERIAL_RX PD9
218+
#define PIN_SERIAL_RX PD9
219219
#endif
220220
#ifndef PIN_SERIAL_TX
221-
#define PIN_SERIAL_TX PD8
221+
#define PIN_SERIAL_TX PD8
222222
#endif
223223

224224
// Value of the External oscillator in Hz
225225
#define HSE_VALUE 8000000U
226226

227227
/* Extra HAL modules */
228228
#if !defined(HAL_DAC_MODULE_DISABLED)
229-
#define HAL_DAC_MODULE_ENABLED
229+
#define HAL_DAC_MODULE_ENABLED
230230
#endif
231231
#if !defined(HAL_ETH_MODULE_DISABLED)
232-
#define HAL_ETH_MODULE_ENABLED
232+
#define HAL_ETH_MODULE_ENABLED
233233
#endif
234234
#if !defined(HAL_QSPI_MODULE_DISABLED)
235-
#define HAL_QSPI_MODULE_ENABLED
235+
#define HAL_QSPI_MODULE_ENABLED
236236
#endif
237237
#if !defined(HAL_SD_MODULE_DISABLED)
238-
#define HAL_SD_MODULE_ENABLED
238+
#define HAL_SD_MODULE_ENABLED
239239
#endif
240240

241241
// Last Flash sector used for EEPROM emulation, address/sector depends on single/dual bank configuration.
@@ -248,27 +248,27 @@
248248
----------------------------------------------------------------------------*/
249249

250250
#ifdef __cplusplus
251-
// These serial port names are intended to allow libraries and architecture-neutral
252-
// sketches to automatically default to the correct port name for a particular type
253-
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
254-
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
255-
//
256-
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
257-
//
258-
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
259-
//
260-
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
261-
//
262-
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
263-
//
264-
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
265-
// pins are NOT connected to anything by default.
266-
#ifndef SERIAL_PORT_MONITOR
267-
#define SERIAL_PORT_MONITOR Serial
268-
#endif
269-
#ifndef SERIAL_PORT_HARDWARE
270-
// KH mod to add Serial1, for ESP-AT
271-
//#define SERIAL_PORT_HARDWARE Serial
272-
#define SERIAL_PORT_HARDWARE Serial1
273-
#endif
251+
// These serial port names are intended to allow libraries and architecture-neutral
252+
// sketches to automatically default to the correct port name for a particular type
253+
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
254+
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
255+
//
256+
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
257+
//
258+
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
259+
//
260+
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
261+
//
262+
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
263+
//
264+
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
265+
// pins are NOT connected to anything by default.
266+
#ifndef SERIAL_PORT_MONITOR
267+
#define SERIAL_PORT_MONITOR Serial
268+
#endif
269+
#ifndef SERIAL_PORT_HARDWARE
270+
// KH mod to add Serial1, for ESP-AT
271+
//#define SERIAL_PORT_HARDWARE Serial
272+
#define SERIAL_PORT_HARDWARE Serial1
273+
#endif
274274
#endif

Packages_Patches/STM32/hardware/stm32/2.0.0/variants/L052R(6-8)H_L053R(6-8)H/variant_generic.h

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -75,99 +75,99 @@
7575

7676
// On-board LED pin number
7777
#ifndef LED_BUILTIN
78-
#define LED_BUILTIN PNUM_NOT_DEFINED
78+
#define LED_BUILTIN PNUM_NOT_DEFINED
7979
#endif
8080

8181
// On-board user button
8282
#ifndef USER_BTN
83-
#define USER_BTN PNUM_NOT_DEFINED
83+
#define USER_BTN PNUM_NOT_DEFINED
8484
#endif
8585

8686
// SPI definitions
8787
#ifndef PIN_SPI_SS
88-
#define PIN_SPI_SS PA4
88+
#define PIN_SPI_SS PA4
8989
#endif
9090
#ifndef PIN_SPI_SS1
91-
#define PIN_SPI_SS1 PA15
91+
#define PIN_SPI_SS1 PA15
9292
#endif
9393
#ifndef PIN_SPI_SS2
94-
#define PIN_SPI_SS2 PNUM_NOT_DEFINED
94+
#define PIN_SPI_SS2 PNUM_NOT_DEFINED
9595
#endif
9696
#ifndef PIN_SPI_SS3
97-
#define PIN_SPI_SS3 PNUM_NOT_DEFINED
97+
#define PIN_SPI_SS3 PNUM_NOT_DEFINED
9898
#endif
9999
#ifndef PIN_SPI_MOSI
100-
#define PIN_SPI_MOSI PA7
100+
#define PIN_SPI_MOSI PA7
101101
#endif
102102
#ifndef PIN_SPI_MISO
103-
#define PIN_SPI_MISO PA6
103+
#define PIN_SPI_MISO PA6
104104
#endif
105105
#ifndef PIN_SPI_SCK
106-
#define PIN_SPI_SCK PA5
106+
#define PIN_SPI_SCK PA5
107107
#endif
108108

109109
// I2C definitions
110110
#ifndef PIN_WIRE_SDA
111-
#define PIN_WIRE_SDA PB7
111+
#define PIN_WIRE_SDA PB7
112112
#endif
113113
#ifndef PIN_WIRE_SCL
114-
#define PIN_WIRE_SCL PB6
114+
#define PIN_WIRE_SCL PB6
115115
#endif
116116

117117
// Timer Definitions
118118
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
119119
#ifndef TIMER_TONE
120-
#define TIMER_TONE TIM6
120+
#define TIMER_TONE TIM6
121121
#endif
122122
#ifndef TIMER_SERVO
123-
#define TIMER_SERVO TIM21
123+
#define TIMER_SERVO TIM21
124124
#endif
125125

126126
// UART Definitions
127127
#ifndef SERIAL_UART_INSTANCE
128-
#define SERIAL_UART_INSTANCE 2
128+
#define SERIAL_UART_INSTANCE 2
129129
#endif
130130

131131
// Default pin used for generic 'Serial' instance
132132
// Mandatory for Firmata
133133
#ifndef PIN_SERIAL_RX
134-
#define PIN_SERIAL_RX PA3
134+
#define PIN_SERIAL_RX PA3
135135
#endif
136136
#ifndef PIN_SERIAL_TX
137-
#define PIN_SERIAL_TX PA2
137+
#define PIN_SERIAL_TX PA2
138138
#endif
139139

140140
// Extra HAL modules
141141
#if !defined(HAL_DAC_MODULE_DISABLED)
142-
#define HAL_DAC_MODULE_ENABLED
142+
#define HAL_DAC_MODULE_ENABLED
143143
#endif
144144

145145
/*----------------------------------------------------------------------------
146146
Arduino objects - C++ only
147147
----------------------------------------------------------------------------*/
148148

149149
#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-
#ifndef SERIAL_PORT_MONITOR
166-
#define SERIAL_PORT_MONITOR Serial
167-
#endif
168-
#ifndef SERIAL_PORT_HARDWARE
169-
// KH mod to add Serial1, for ESP-AT
170-
//#define SERIAL_PORT_HARDWARE Serial
171-
#define SERIAL_PORT_HARDWARE Serial1
172-
#endif
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+
#ifndef SERIAL_PORT_MONITOR
166+
#define SERIAL_PORT_MONITOR Serial
167+
#endif
168+
#ifndef SERIAL_PORT_HARDWARE
169+
// KH mod to add Serial1, for ESP-AT
170+
//#define SERIAL_PORT_HARDWARE Serial
171+
#define SERIAL_PORT_HARDWARE Serial1
172+
#endif
173173
#endif

0 commit comments

Comments
 (0)