Skip to content

Commit a8e99ba

Browse files
authored
Merge branch 'master' into idf-release/v3.3
2 parents 7494c4e + b6cc108 commit a8e99ba

File tree

59 files changed

+63
-4
lines changed

Some content is hidden

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

59 files changed

+63
-4
lines changed

cores/esp32/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
8989
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
9090
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
91-
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
91+
#define bitWrite(value, bit, bitvalue) ((bitvalue) ? bitSet(value, bit) : bitClear(value, bit))
9292

9393
// avr-libc defines _NOP() since 1.6.2
9494
#ifndef _NOP

cores/esp32/pgmspace.h

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ typedef unsigned long prog_uint32_t;
5353
*(void * const *)(_addr); \
5454
})
5555

56+
#define pgm_get_far_address(x) ((uint32_t)(&(x)))
57+
5658
#define pgm_read_byte_near(addr) pgm_read_byte(addr)
5759
#define pgm_read_word_near(addr) pgm_read_word(addr)
5860
#define pgm_read_dword_near(addr) pgm_read_dword(addr)

libraries/BLE/src/BLEHIDDevice.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ BLECharacteristic* BLEHIDDevice::protocolMode() {
194194

195195
void BLEHIDDevice::setBatteryLevel(uint8_t level) {
196196
m_batteryLevelCharacteristic->setValue(&level, 1);
197+
m_batteryLevelCharacteristic->notify();
197198
}
198199
/*
199200
* @brief Returns battery level characteristic

libraries/SD/src/sd_diskio.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,9 @@ DRESULT ff_sd_write(uint8_t pdrv, const uint8_t* buffer, DWORD sector, UINT coun
607607

608608
if (count > 1) {
609609
res = sdWriteSectors(pdrv, (const char*)buffer, sector, count) ? RES_OK : RES_ERROR;
610+
} else {
611+
res = sdWriteSector(pdrv, (const char*)buffer, sector) ? RES_OK : RES_ERROR;
610612
}
611-
res = sdWriteSector(pdrv, (const char*)buffer, sector) ? RES_OK : RES_ERROR;
612613
return res;
613614
}
614615

libraries/WiFi/src/WiFiProv.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333
#undef IPADDR_NONE
3434
#include "WiFi.h"
3535

36-
wifi_prov_mgr_config_t config;
37-
scheme_t prov_scheme;
3836
extern esp_err_t postToSysQueue(system_prov_event_t *);
37+
38+
static wifi_prov_mgr_config_t config;
39+
static scheme_t prov_scheme;
3940
static const uint8_t custom_service_uuid[16] = { 0xb4, 0xdf, 0x5a, 0x1c, 0x3f, 0x6b, 0xf4, 0xbf,
4041
0xea, 0x4a, 0x82, 0x03, 0x04, 0x90, 0x1a, 0x02, };
4142

variants/Microduino-esp32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = -1;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
#define MTDO 15
1819
#define MTDI 12

variants/S_ODI_Ultra_v1/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
static const uint8_t LED_BUILTIN = 2;
1515
static const uint8_t LED_BUILTINB = 4;
1616
#define BUILTIN_LED LED_BUILTIN // backward compatibility
17+
#define LED_BUILTIN LED_BUILTIN
1718
#define BUILTIN_LED2 LED_BUILTINB
1819

1920
static const uint8_t TX = 1;

variants/alksesp32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
static const uint8_t LED_BUILTIN = 23;
1717
#define BUILTIN_LED LED_BUILTIN // backward compatibility
18+
#define LED_BUILTIN LED_BUILTIN
1819

1920
static const uint8_t TX = 1;
2021
static const uint8_t RX = 3;

variants/d1_mini32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
static const uint8_t LED_BUILTIN = 2;
88
#define BUILTIN_LED LED_BUILTIN // backward compatibility
9+
#define LED_BUILTIN LED_BUILTIN
910
static const uint8_t _VBAT = 35; // battery voltage
1011

1112
#define PIN_WIRE_SDA SDA // backward compatibility

variants/d32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
static const uint8_t LED_BUILTIN = 5;
88
#define BUILTIN_LED LED_BUILTIN // backward compatibility
9+
#define LED_BUILTIN LED_BUILTIN
910
static const uint8_t _VBAT = 35; // battery voltage
1011

1112
#endif /* Pins_Arduino_h */

variants/d32_pro/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
static const uint8_t LED_BUILTIN = 5;
88
#define BUILTIN_LED LED_BUILTIN // backward compatibility
9+
#define LED_BUILTIN LED_BUILTIN
910
static const uint8_t _VBAT = 35; // battery voltage
1011

1112

variants/doitESP32devkitV1/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/esp32-gateway/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
static const uint8_t LED_BUILTIN = 33;
2020
#define BUILTIN_LED LED_BUILTIN // backward compatibility
21+
#define LED_BUILTIN LED_BUILTIN
2122

2223
static const uint8_t KEY_BUILTIN = 34;
2324

variants/esp320/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/esp32thing/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/esp32thing_plus/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 13;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 17;
1819
static const uint8_t RX = 16;

variants/espea32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/espectro32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 15;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN LED_BUILTIN
2021

2122
static const uint8_t TX = 1;
2223
static const uint8_t RX = 3;

variants/espino32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 16;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t BUILTIN_KEY = 0;
1819

variants/feather_esp32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 13;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 17;
1819
static const uint8_t RX = 16;

variants/firebeetle32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ typedef unsigned char uint8_t;
1515

1616
static const uint8_t LED_BUILTIN = 2;
1717
#define BUILTIN_LED LED_BUILTIN // backward compatibility
18+
#define LED_BUILTIN LED_BUILTIN
1819

1920

2021

variants/gpy/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2626
#define BUILTIN_LED LED_BUILTIN // backward compatibility
27+
#define LED_BUILTIN LED_BUILTIN
2728

2829
#define ANT_SELECT 21 // GPIO21 - WiFi external / internal antenna switch
2930

variants/healthypi4/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 15;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 17;
1819

variants/heltec_wifi_kit_32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/heltec_wifi_lora_32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/heltec_wifi_lora_32_V2/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/heltec_wireless_stick/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/honeylemon/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t BUILTIN_KEY = 0;
1819

variants/hornbill32dev/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 13;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/imbrios-logsens-v1p1/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/* LED_BUILTIN is kept for compatibility reason; mapped to LED2 on the LogSens V1.1 Board */
2424
static const uint8_t LED_BUILTIN = 33;
2525
#define BUILTIN_LED LED_BUILTIN // backward compatibility
26+
#define LED_BUILTIN LED_BUILTIN
2627

2728
/* UART0: Serial Port for Programming and Debugging on the LogSens V1.1 Board */
2829
static const uint8_t TX = 1;

variants/intorobot-fig/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 4;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t RGB_R_BUILTIN = 27;
1819
static const uint8_t RGB_G_BUILTIN = 21;

variants/lolin32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718

1819

variants/lopy/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2626
#define BUILTIN_LED LED_BUILTIN // backward compatibility
27+
#define LED_BUILTIN LED_BUILTIN
2728

2829
#define ANT_SELECT 16 // GPIO16 - External Antenna Switch
2930

variants/lopy4/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2626
#define BUILTIN_LED LED_BUILTIN // backward compatibility
27+
#define LED_BUILTIN LED_BUILTIN
2728

2829
#define ANT_SELECT 21 // GPIO21 - External Antenna Switch
2930

variants/metro_esp-32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/mgbot-iotik32a/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 4;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/mgbot-iotik32b/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 18;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
// IR receiver
1819
static const uint8_t IR = 27;

variants/mhetesp32devkit/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/mhetesp32minikit/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/nano32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 16;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t BUILTIN_KEY = 0;
1819

variants/node32s/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/nodemcu-32s/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/odroid_esp32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/onehorse32dev/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/openkb/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 16;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/oroca_edubot/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 13;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t TX = 17;
1819
static const uint8_t RX = 16;

variants/piranha_esp-32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/pocket_32/pins_arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 16;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN LED_BUILTIN
1617

1718

1819

0 commit comments

Comments
 (0)