Skip to content

Commit 515a8fa

Browse files
committed
Fix whitespace
1 parent 575f5fa commit 515a8fa

File tree

474 files changed

+1609
-1681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

474 files changed

+1609
-1681
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,16 @@ set(ARDUINO_LIBRARY_EEPROM_SRCS libraries/EEPROM/src/EEPROM.cpp)
129129

130130
set(ARDUINO_LIBRARY_ESP_I2S_SRCS libraries/ESP_I2S/src/ESP_I2S.cpp)
131131

132-
set(ARDUINO_LIBRARY_ESP_NOW_SRCS
132+
set(ARDUINO_LIBRARY_ESP_NOW_SRCS
133133
libraries/ESP_NOW/src/ESP32_NOW.cpp
134134
libraries/ESP_NOW/src/ESP32_NOW_Serial.cpp)
135-
136-
set(ARDUINO_LIBRARY_ESP_SR_SRCS
135+
136+
set(ARDUINO_LIBRARY_ESP_SR_SRCS
137137
libraries/ESP_SR/src/ESP_SR.cpp
138138
libraries/ESP_SR/src/esp32-hal-sr.c)
139-
139+
140140
set(ARDUINO_LIBRARY_ESPmDNS_SRCS libraries/ESPmDNS/src/ESPmDNS.cpp)
141-
141+
142142
set(ARDUINO_LIBRARY_Ethernet_SRCS libraries/Ethernet/src/ETH.cpp)
143143

144144
set(ARDUINO_LIBRARY_FFat_SRCS libraries/FFat/src/FFat.cpp)
@@ -187,7 +187,7 @@ set(ARDUINO_LIBRARY_Ticker_SRCS libraries/Ticker/src/Ticker.cpp)
187187
set(ARDUINO_LIBRARY_Update_SRCS
188188
libraries/Update/src/Updater.cpp
189189
libraries/Update/src/HttpsOTAUpdate.cpp)
190-
190+
191191
set(ARDUINO_LIBRARY_USB_SRCS
192192
libraries/USB/src/USBHID.cpp
193193
libraries/USB/src/USBMIDI.cpp

Kconfig.projbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,4 +390,3 @@ config ARDUINO_SELECTIVE_SimpleBLE
390390
default y
391391

392392
endmenu
393-

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Version 2.1, February 1999
44

55
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
66
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
7-
7+
88
Everyone is permitted to copy and distribute verbatim copies
99
of this license document, but changing it is not allowed.
1010

@@ -500,4 +500,4 @@ if necessary. Here is a sample; alter the names:
500500
signature of Ty Coon, 1 April 1990
501501
Ty Coon, President of Vice
502502

503-
That's all there is to it!
503+
That's all there is to it!

boards.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16309,7 +16309,7 @@ esp32s3-devkitlipo.menu.EraseFlash.none=Disabled
1630916309
esp32s3-devkitlipo.menu.EraseFlash.none.upload.erase_cmd=
1631016310
esp32s3-devkitlipo.menu.EraseFlash.all=Enabled
1631116311
esp32s3-devkitlipo.menu.EraseFlash.all.upload.erase_cmd=-e
16312-
16312+
1631316313
##############################################################
1631416314

1631516315
esp32c3-devkitlipo.name=OLIMEX ESP32-C3-DevKit-Lipo
@@ -22487,7 +22487,7 @@ heltec_capsule_sensor_V3.menu.LORAWAN_PREAMBLE_LENGTH.1.build.LORAWAN_PREAMBLE_L
2248722487

2248822488
heltec_capsule_sensor_V3.menu.SLOW_CLK_TPYE.0=External 32K (default)
2248922489
heltec_capsule_sensor_V3.menu.SLOW_CLK_TPYE.0.build.SLOW_CLK_TPYE=1
22490-
heltec_capsule_sensor_V3.menu.SLOW_CLK_TPYE.1=Internal
22490+
heltec_capsule_sensor_V3.menu.SLOW_CLK_TPYE.1=Internal
2249122491
heltec_capsule_sensor_V3.menu.SLOW_CLK_TPYE.1.build.SLOW_CLK_TPYE=0
2249222492

2249322493
heltec_capsule_sensor_V3.menu.NetworkLogLevel.0=NONE
@@ -22499,7 +22499,7 @@ heltec_capsule_sensor_V3.menu.NetworkLogLevel.2.build.NetworkLogLevel=2
2249922499
heltec_capsule_sensor_V3.menu.NetworkLogLevel.3=INFO
2250022500
heltec_capsule_sensor_V3.menu.NetworkLogLevel.3.build.NetworkLogLevel=3
2250122501

22502-
heltec_capsule_sensor_V3.build.defines=-D{build.band} -DMCU_ESP32_S3 -DHELTEC_BOARD=50 -DCAPSULE_SENSOR_V3 -DSLOW_CLK_TPYE={build.SLOW_CLK_TPYE} -DRADIO_CHIP_SX1262 -DLoRaWAN_DEBUG_LEVEL={build.LoRaWanDebugLevel} -DACTIVE_REGION=LORAMAC_{build.band} -DLORAWAN_PREAMBLE_LENGTH={build.LORAWAN_PREAMBLE_LENGTH} -DLORAWAN_DEVEUI_AUTO={build.LORAWAN_DEVEUI_AUTO} -D{build.board} -DNLOG_LOCAL_LEVEL={build.NetworkLogLevel}
22502+
heltec_capsule_sensor_V3.build.defines=-D{build.band} -DMCU_ESP32_S3 -DHELTEC_BOARD=50 -DCAPSULE_SENSOR_V3 -DSLOW_CLK_TPYE={build.SLOW_CLK_TPYE} -DRADIO_CHIP_SX1262 -DLoRaWAN_DEBUG_LEVEL={build.LoRaWanDebugLevel} -DACTIVE_REGION=LORAMAC_{build.band} -DLORAWAN_PREAMBLE_LENGTH={build.LORAWAN_PREAMBLE_LENGTH} -DLORAWAN_DEVEUI_AUTO={build.LORAWAN_DEVEUI_AUTO} -D{build.board} -DNLOG_LOCAL_LEVEL={build.NetworkLogLevel}
2250322503

2250422504
heltec_capsule_sensor_V3.menu.EraseFlash.none=Disabled
2250522505
heltec_capsule_sensor_V3.menu.EraseFlash.none.upload.erase_cmd=

cores/esp32/Arduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#endif
7272

7373
// can't define max() / min() because of conflicts with C++
74-
#define _min(a,b) ((a)<(b)?(a):(b))
74+
#define _min(a,b) ((a)<(b)?(a):(b))
7575
#define _max(a,b) ((a)>(b)?(a):(b))
7676
#define _abs(x) ((x)>0?(x):-(x)) // abs() comes from STL
7777
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
@@ -150,7 +150,7 @@ typedef unsigned int word;
150150
void setup(void);
151151
void loop(void);
152152

153-
// The default is using Real Hardware random number generator
153+
// The default is using Real Hardware random number generator
154154
// But when randomSeed() is called, it turns to Psedo random
155155
// generator, exactly as done in Arduino mainstream
156156
long random(long);

cores/esp32/Esp.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extern "C" {
6060
#elif CONFIG_IDF_TARGET_ESP32H2
6161
#include "esp32h2/rom/spi_flash.h"
6262
#define ESP_FLASH_IMAGE_BASE 0x0000 // Esp32h2 is located at 0x0000
63-
#else
63+
#else
6464
#error Target CONFIG_IDF_TARGET is not supported
6565
#endif
6666
#else // ESP32 Before IDF 4.0
@@ -283,12 +283,12 @@ const char * EspClass::getChipModel(void)
283283
switch (pkg_ver) {
284284
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ6 :
285285
if (getChipRevision() == 3)
286-
return "ESP32-D0WDQ6-V3";
286+
return "ESP32-D0WDQ6-V3";
287287
else
288288
return "ESP32-D0WDQ6";
289289
case EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ5 :
290290
if (getChipRevision() == 3)
291-
return "ESP32-D0WD-V3";
291+
return "ESP32-D0WD-V3";
292292
else
293293
return "ESP32-D0WD";
294294
case EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 :
@@ -527,17 +527,17 @@ bool EspClass::flashRead(uint32_t offset, uint32_t *data, size_t size)
527527
return esp_flash_read(esp_flash_default_chip, (void*) data, offset, size) == ESP_OK;
528528
}
529529

530-
bool EspClass::partitionEraseRange(const esp_partition_t *partition, uint32_t offset, size_t size)
530+
bool EspClass::partitionEraseRange(const esp_partition_t *partition, uint32_t offset, size_t size)
531531
{
532532
return esp_partition_erase_range(partition, offset, size) == ESP_OK;
533533
}
534534

535-
bool EspClass::partitionWrite(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
535+
bool EspClass::partitionWrite(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
536536
{
537537
return esp_partition_write(partition, offset, data, size) == ESP_OK;
538538
}
539539

540-
bool EspClass::partitionRead(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
540+
bool EspClass::partitionRead(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
541541
{
542542
return esp_partition_read(partition, offset, data, size) == ESP_OK;
543543
}

cores/esp32/FunctionalInterrupt.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,3 @@ extern "C"
3838
delete (InterruptArgStructure*)arg;
3939
}
4040
}
41-
42-
43-
44-

cores/esp32/HWCDC.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static void hw_cdc_isr_handler(void *arg) {
137137
}
138138
}
139139

140-
bool HWCDC::isCDC_Connected()
140+
bool HWCDC::isCDC_Connected()
141141
{
142142
static bool running = false;
143143

@@ -156,12 +156,12 @@ bool HWCDC::isCDC_Connected()
156156
if (running == false && !connected) { // enables it only once!
157157
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY);
158158
}
159-
// this will feed CDC TX FIFO to trigger IN_EMPTY
159+
// this will feed CDC TX FIFO to trigger IN_EMPTY
160160
uint8_t c = '\0';
161161
usb_serial_jtag_ll_write_txfifo(&c, sizeof(c));
162162
usb_serial_jtag_ll_txfifo_flush();
163163
running = true;
164-
return false;
164+
return false;
165165
}
166166

167167
static void ARDUINO_ISR_ATTR cdc0_write_char(char c) {
@@ -203,12 +203,12 @@ void HWCDC::onEvent(arduino_hw_cdc_event_t event, esp_event_handler_t callback){
203203
arduino_hw_cdc_event_handler_register_with(ARDUINO_HW_CDC_EVENTS, event, callback, this);
204204
}
205205

206-
bool HWCDC::deinit(void * busptr)
206+
bool HWCDC::deinit(void * busptr)
207207
{
208208
// avoid any recursion issue with Peripheral Manager perimanSetPinBus() call
209209
static bool running = false;
210210
if (running) return true;
211-
running = true;
211+
running = true;
212212
// Setting USB D+ D- pins
213213
bool retCode = true;
214214
retCode &= perimanClearPinBus(USB_DM_GPIO_NUM);
@@ -240,7 +240,7 @@ void HWCDC::begin(unsigned long baud)
240240
if (tx_ring_buf == NULL) {
241241
if (!setTxBufferSize(16)) {
242242
log_e("HW CDC TX Buffer error");
243-
}
243+
}
244244
}
245245

246246
// the HW Serial pins needs to be first deinited in order to allow `if(Serial)` to work :-(
@@ -270,7 +270,7 @@ void HWCDC::begin(unsigned long baud)
270270
return;
271271
}
272272
return;
273-
273+
274274
err:
275275
log_e("Serial JTAG Pin %u can't be set into Peripheral Manager.", pin);
276276
end();
@@ -382,7 +382,7 @@ size_t HWCDC::write(const uint8_t *buffer, size_t size)
382382
// Now trigger the ISR to read data from the ring buffer.
383383
usb_serial_jtag_ll_txfifo_flush();
384384
if(connected) usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY);
385-
385+
386386
while(to_send){
387387
space = xRingbufferGetCurFreeSize(tx_ring_buf);
388388
if(space > to_send){

cores/esp32/HWCDC.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class HWCDC: public Stream
4848
private:
4949
static bool deinit(void * busptr);
5050
static bool isCDC_Connected();
51-
51+
5252
public:
5353
HWCDC();
5454
~HWCDC();
@@ -61,7 +61,7 @@ class HWCDC: public Stream
6161
void setTxTimeoutMs(uint32_t timeout);
6262
void begin(unsigned long baud=0);
6363
void end();
64-
64+
6565
int available(void);
6666
int availableForWrite(void);
6767
int peek(void);

cores/esp32/HardwareI2C.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class HardwareI2C : public Stream
2929
virtual bool end() = 0;
3030

3131
virtual bool setClock(uint32_t freq) = 0;
32-
32+
3333
virtual void beginTransmission(uint8_t address) = 0;
3434
virtual uint8_t endTransmission(bool stopBit) = 0;
3535
virtual uint8_t endTransmission(void) = 0;

cores/esp32/HardwareSerial.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,23 @@ HardwareSerial Serial2(2);
4848

4949
#if HWCDC_SERIAL_IS_DEFINED == 1 // Hardware JTAG CDC Event
5050
extern void HWCDCSerialEvent (void)__attribute__((weak));
51-
void HWCDCSerialEvent(void) {}
52-
#endif
51+
void HWCDCSerialEvent(void) {}
52+
#endif
5353

5454
#if USB_SERIAL_IS_DEFINED == 1 // Native USB CDC Event
5555
// Used by Hardware Serial for USB CDC events
5656
extern void USBSerialEvent (void)__attribute__((weak));
57-
void USBSerialEvent(void) {}
58-
#endif
57+
void USBSerialEvent(void) {}
58+
#endif
5959

6060
void serialEventRun(void)
6161
{
6262
#if HWCDC_SERIAL_IS_DEFINED == 1 // Hardware JTAG CDC Event
6363
if(HWCDCSerial.available()) HWCDCSerialEvent();
64-
#endif
64+
#endif
6565
#if USB_SERIAL_IS_DEFINED == 1 // Native USB CDC Event
6666
if(USBSerial.available()) USBSerialEvent();
67-
#endif
67+
#endif
6868
// UART0 is default serialEvent()
6969
if(Serial0.available()) serialEvent();
7070
#if SOC_UART_NUM > 1
@@ -519,19 +519,19 @@ bool HardwareSerial::setPins(int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t r
519519
return uartSetPins(_uart_nr, rxPin, txPin, ctsPin, rtsPin);
520520
}
521521

522-
// Enables or disables Hardware Flow Control using RTS and/or CTS pins
522+
// Enables or disables Hardware Flow Control using RTS and/or CTS pins
523523
// must use setAllPins() in order to set RTS/CTS pins
524-
// SerialHwFlowCtrl = UART_HW_FLOWCTRL_DISABLE, UART_HW_FLOWCTRL_RTS,
524+
// SerialHwFlowCtrl = UART_HW_FLOWCTRL_DISABLE, UART_HW_FLOWCTRL_RTS,
525525
// UART_HW_FLOWCTRL_CTS, UART_HW_FLOWCTRL_CTS_RTS
526526
bool HardwareSerial::setHwFlowCtrlMode(SerialHwFlowCtrl mode, uint8_t threshold)
527527
{
528528
return uartSetHwFlowCtrlMode(_uart, mode, threshold);
529529
}
530530

531-
// Sets the uart mode in the esp32 uart for use with RS485 modes
531+
// Sets the uart mode in the esp32 uart for use with RS485 modes
532532
// HwFlowCtrl must be disabled and RTS pin set
533-
// SerialMode = UART_MODE_UART, UART_MODE_RS485_HALF_DUPLEX, UART_MODE_IRDA,
534-
// or testing mode: UART_MODE_RS485_COLLISION_DETECT, UART_MODE_RS485_APP_CTRL
533+
// SerialMode = UART_MODE_UART, UART_MODE_RS485_HALF_DUPLEX, UART_MODE_IRDA,
534+
// or testing mode: UART_MODE_RS485_COLLISION_DETECT, UART_MODE_RS485_APP_CTRL
535535
bool HardwareSerial::setMode(SerialMode mode)
536536
{
537537
return uartSetMode(_uart, mode);

cores/esp32/HardwareSerial.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ class HardwareSerial: public Stream
218218
// param symbols_timeout defines a timeout threshold in uart symbol periods. Setting 0 symbol timeout disables the callback call by timeout.
219219
// Maximum timeout setting is calculacted automatically by IDF. If set above the maximum, it is ignored and an error is printed on Serial0 (check console).
220220
// Examples: Maximum for 11 bits symbol is 92 (SERIAL_8N2, SERIAL_8E1, SERIAL_8O1, etc), Maximum for 10 bits symbol is 101 (SERIAL_8N1).
221-
// For example symbols_timeout=1 defines a timeout equal to transmission time of one symbol (~11 bit) on current baudrate.
221+
// For example symbols_timeout=1 defines a timeout equal to transmission time of one symbol (~11 bit) on current baudrate.
222222
// For a baudrate of 9600, SERIAL_8N1 (10 bit symbol) and symbols_timeout = 3, the timeout would be 3 / (9600 / 10) = 3.125 ms
223223
bool setRxTimeout(uint8_t symbols_timeout);
224224

225225
// setRxFIFOFull(uint8_t fifoBytes) will set the number of bytes that will trigger UART_INTR_RXFIFO_FULL interrupt and fill up RxRingBuffer
226-
// This affects some functions such as Serial::available() and Serial.read() because, in a UART flow of receiving data, Serial internal
226+
// This affects some functions such as Serial::available() and Serial.read() because, in a UART flow of receiving data, Serial internal
227227
// RxRingBuffer will be filled only after these number of bytes arrive or a RX Timeout happens.
228228
// This parameter can be set to 1 in order to receive byte by byte, but it will also consume more CPU time as the ISR will be activates often.
229229
bool setRxFIFOFull(uint8_t fifoBytes);
@@ -232,7 +232,7 @@ class HardwareSerial: public Stream
232232
// UART_INTR_RXFIFO_FULL interrupt triggers at UART_FULL_THRESH_DEFAULT bytes received (defined as 120 bytes by default in IDF)
233233
// UART_INTR_RXFIFO_TOUT interrupt triggers at UART_TOUT_THRESH_DEFAULT symbols passed without any reception (defined as 10 symbos by default in IDF)
234234
// onlyOnTimeout parameter will define how onReceive will behave:
235-
// Default: true -- The callback will only be called when RX Timeout happens.
235+
// Default: true -- The callback will only be called when RX Timeout happens.
236236
// Whole stream of bytes will be ready for being read on the callback function at once.
237237
// This option may lead to Rx Overflow depending on the Rx Buffer Size and number of bytes received in the streaming
238238
// false -- The callback will be called when FIFO reaches 120 bytes and also on RX Timeout.
@@ -245,7 +245,7 @@ class HardwareSerial: public Stream
245245

246246
// eventQueueReset clears all events in the queue (the events that trigger onReceive and onReceiveError) - maybe useful in some use cases
247247
void eventQueueReset();
248-
248+
249249
// When pins are changed, it will detach the previous ones
250250
// if pin is negative, it won't be set/changed and will be kept as is
251251
// timeout_ms is used in baudrate detection (ESP32, ESP32S2 only)
@@ -268,7 +268,7 @@ class HardwareSerial: public Stream
268268
size_t readBytes(char *buffer, size_t length)
269269
{
270270
return readBytes((uint8_t *) buffer, length);
271-
}
271+
}
272272
void flush(void);
273273
void flush( bool txOnly);
274274
size_t write(uint8_t);
@@ -301,7 +301,7 @@ class HardwareSerial: public Stream
301301
operator bool() const;
302302

303303
void setDebugOutput(bool);
304-
304+
305305
void setRxInvert(bool);
306306

307307
// Negative Pin Number will keep it unmodified, thus this function can set individual pins
@@ -360,7 +360,7 @@ extern void serialEventRun(void) __attribute__((weak));
360360
#endif // ARDUINO_USB_MODE
361361
#else // !ARDUINO_USB_CDC_ON_BOOT -- Serial is used from UART0
362362
// if not using CDC on Boot, Arduino Serial is the UART0 device
363-
#define Serial Serial0
363+
#define Serial Serial0
364364
#endif // ARDUINO_USB_CDC_ON_BOOT
365365
// There is always Seria0 for UART0
366366
extern HardwareSerial Serial0;

cores/esp32/MD5Builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
1+
/*
22
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
33
This file is part of the esp8266 core for Arduino environment.
4-
4+
55
This library is free software; you can redistribute it and/or
66
modify it under the terms of the GNU Lesser General Public
77
License as published by the Free Software Foundation; either

cores/esp32/MacAddress.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//-----------------------------------------------------------------------------
22
// MacAddress.h - class to make it easier to handle BSSID and MAC addresses.
3-
//
3+
//
44
// Copyright 2022 David McCurley
55
// Modified by Espressif Systems 2024
66
//
77
// Licensed under the Apache License, Version 2.0 (the "License").
88
// You may not use this file except in compliance with the License.
99
// You may obtain a copy of the License at
10-
//
10+
//
1111
// http://www.apache.org/licenses/LICENSE-2.0
12-
//
12+
//
1313
// Unless required by applicable law or agreed to in writing, software
1414
// distributed under the License is distributed on an "AS IS" BASIS,
1515
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -81,7 +81,7 @@ class MacAddress : public Printable {
8181

8282
virtual size_t printTo(Print& p) const;
8383

84-
// future use in Arduino Networking
84+
// future use in Arduino Networking
8585
/*
8686
friend class EthernetClass;
8787
friend class UDP;

0 commit comments

Comments
 (0)