Skip to content

Commit 2d5fd05

Browse files
author
Boon
committed
Bump idf version
1 parent 7f42c88 commit 2d5fd05

File tree

168 files changed

+2270
-157
lines changed

Some content is hidden

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

168 files changed

+2270
-157
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tools/gen_esp32part.py

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
MIN_PARTITION_SUBTYPE_APP_OTA = 0x10
2929
NUM_PARTITION_SUBTYPE_APP_OTA = 16
3030

31+
SECURE_NONE = None
32+
SECURE_V1 = 'v1'
33+
SECURE_V2 = 'v2'
34+
3135
__version__ = '1.2'
3236

3337
APP_TYPE = 0x00
@@ -91,13 +95,26 @@ def get_subtype_as_int(ptype, subtype):
9195
STRICT_DATA_ALIGNMENT = 0x1000
9296

9397

94-
def get_alignment_for_type(ptype):
98+
def get_alignment_offset_for_type(ptype):
9599
return ALIGNMENT.get(ptype, ALIGNMENT[DATA_TYPE])
96100

97101

102+
def get_alignment_size_for_type(ptype):
103+
if ptype == APP_TYPE and secure == SECURE_V1:
104+
# For secure boot v1 case, app partition must be 64K aligned
105+
# signature block (68 bytes) lies at the very end of 64K block
106+
return 0x10000
107+
if ptype == APP_TYPE and secure == SECURE_V2:
108+
# For secure boot v2 case, app partition must be 4K aligned
109+
# signature block (4K) is kept after padding the unsigned image to 64K boundary
110+
return 0x1000
111+
# No specific size alignement requirement as such
112+
return 0x1
113+
114+
98115
quiet = False
99116
md5sum = True
100-
secure = False
117+
secure = SECURE_NONE
101118
offset_part_table = 0
102119

103120

@@ -164,7 +181,7 @@ def expand_vars(f):
164181
raise InputError('CSV Error: Partitions overlap. Partition at line %d sets offset 0x%x. Previous partition ends 0x%x'
165182
% (e.line_no, e.offset, last_end))
166183
if e.offset is None:
167-
pad_to = get_alignment_for_type(e.type)
184+
pad_to = get_alignment_offset_for_type(e.type)
168185
if last_end % pad_to != 0:
169186
last_end += pad_to - (last_end % pad_to)
170187
e.offset = last_end
@@ -397,18 +414,20 @@ def verify(self):
397414
raise ValidationError(self, 'Subtype field is not set')
398415
if self.offset is None:
399416
raise ValidationError(self, 'Offset field is not set')
400-
align = get_alignment_for_type(self.type)
401-
if self.offset % align:
402-
raise ValidationError(self, 'Offset 0x%x is not aligned to 0x%x' % (self.offset, align))
417+
if self.size is None:
418+
raise ValidationError(self, 'Size field is not set')
419+
offset_align = get_alignment_offset_for_type(self.type)
420+
if self.offset % offset_align:
421+
raise ValidationError(self, 'Offset 0x%x is not aligned to 0x%x' % (self.offset, offset_align))
403422
# The alignment requirement for non-app partition is 4 bytes, but it should be 4 kB.
404423
# Print a warning for now, make it an error in IDF 5.0 (IDF-3742).
405424
if self.type != APP_TYPE and self.offset % STRICT_DATA_ALIGNMENT:
406425
critical('WARNING: Partition %s not aligned to 0x%x.'
407426
'This is deprecated and will be considered an error in the future release.' % (self.name, STRICT_DATA_ALIGNMENT))
408-
if self.size % align and secure and self.type == APP_TYPE:
409-
raise ValidationError(self, 'Size 0x%x is not aligned to 0x%x' % (self.size, align))
410-
if self.size is None:
411-
raise ValidationError(self, 'Size field is not set')
427+
if self.type == APP_TYPE and secure is not SECURE_NONE:
428+
size_align = get_alignment_size_for_type(self.type)
429+
if self.size % size_align:
430+
raise ValidationError(self, 'Size 0x%x is not aligned to 0x%x' % (self.size, size_align))
412431

413432
if self.name in TYPES and TYPES.get(self.name, '') != self.type:
414433
critical("WARNING: Partition has name '%s' which is a partition type, but does not match this partition's "
@@ -513,7 +532,7 @@ def main():
513532
'enabled by default and this flag does nothing.', action='store_true')
514533
parser.add_argument('--quiet', '-q', help="Don't print non-critical status messages to stderr", action='store_true')
515534
parser.add_argument('--offset', '-o', help='Set offset partition table', default='0x8000')
516-
parser.add_argument('--secure', help='Require app partitions to be suitable for secure boot', action='store_true')
535+
parser.add_argument('--secure', help='Require app partitions to be suitable for secure boot', nargs='?', const=SECURE_V1, choices=[SECURE_V1, SECURE_V2])
517536
parser.add_argument('input', help='Path to CSV or binary file to parse.', type=argparse.FileType('rb'))
518537
parser.add_argument('output', help='Path to output converted binary or CSV file. Will use stdout if omitted.',
519538
nargs='?', default='-')

tools/platformio-build-esp32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
"UNITY_INCLUDE_CONFIG_H",
330330
"WITH_POSIX",
331331
"_GNU_SOURCE",
332-
("IDF_VER", '\\"v4.4.4\\"'),
332+
("IDF_VER", '\\"v4.4.4-148-g4c2afac355\\"'),
333333
"ESP_PLATFORM",
334334
"_POSIX_READER_WRITER_LOCKS",
335335
"ARDUINO_ARCH_ESP32",
5.95 KB
Binary file not shown.
5.95 KB
Binary file not shown.
5.95 KB
Binary file not shown.
5.95 KB
Binary file not shown.
6.16 KB
Binary file not shown.
6.17 KB
Binary file not shown.
6.16 KB
Binary file not shown.
6.17 KB
Binary file not shown.

tools/sdk/esp32/dio_qspi/include/sdkconfig.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
#define CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE 1
136136
#define CONFIG_BTDM_SCAN_DUPL_TYPE 0
137137
#define CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE 20
138+
#define CONFIG_BTDM_SCAN_DUPL_CACHE_REFRESH_PERIOD 0
138139
#define CONFIG_BTDM_BLE_MESH_SCAN_DUPL_EN 1
139140
#define CONFIG_BTDM_MESH_DUPL_SCAN_CACHE_SIZE 100
140141
#define CONFIG_BTDM_CTRL_FULL_SCAN_SUPPORTED 1
@@ -364,6 +365,7 @@
364365
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
365366
#define CONFIG_ESP_COREDUMP_ENABLE 1
366367
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
368+
#define CONFIG_ESP_COREDUMP_STACK_SIZE 1024
367369
#define CONFIG_FATFS_CODEPAGE_850 1
368370
#define CONFIG_FATFS_CODEPAGE 850
369371
#define CONFIG_FATFS_LFN_STACK 1
@@ -725,6 +727,7 @@
725727
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
726728
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
727729
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
730+
#define CONFIG_ESP32_CORE_DUMP_STACK_SIZE CONFIG_ESP_COREDUMP_STACK_SIZE
728731
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
729732
#define CONFIG_ESP32_ENABLE_COREDUMP CONFIG_ESP_COREDUMP_ENABLE
730733
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
@@ -819,5 +822,5 @@
819822
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
820823
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
821824
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
822-
#define CONFIG_ARDUINO_IDF_COMMIT "e8bdaf9198"
823-
#define CONFIG_ARDUINO_IDF_BRANCH "v4.4.4"
825+
#define CONFIG_ARDUINO_IDF_COMMIT "4c2afac355"
826+
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
4 KB
Binary file not shown.

tools/sdk/esp32/dout_qspi/include/sdkconfig.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
#define CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE 1
136136
#define CONFIG_BTDM_SCAN_DUPL_TYPE 0
137137
#define CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE 20
138+
#define CONFIG_BTDM_SCAN_DUPL_CACHE_REFRESH_PERIOD 0
138139
#define CONFIG_BTDM_BLE_MESH_SCAN_DUPL_EN 1
139140
#define CONFIG_BTDM_MESH_DUPL_SCAN_CACHE_SIZE 100
140141
#define CONFIG_BTDM_CTRL_FULL_SCAN_SUPPORTED 1
@@ -364,6 +365,7 @@
364365
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
365366
#define CONFIG_ESP_COREDUMP_ENABLE 1
366367
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
368+
#define CONFIG_ESP_COREDUMP_STACK_SIZE 1024
367369
#define CONFIG_FATFS_CODEPAGE_850 1
368370
#define CONFIG_FATFS_CODEPAGE 850
369371
#define CONFIG_FATFS_LFN_STACK 1
@@ -725,6 +727,7 @@
725727
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
726728
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
727729
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
730+
#define CONFIG_ESP32_CORE_DUMP_STACK_SIZE CONFIG_ESP_COREDUMP_STACK_SIZE
728731
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
729732
#define CONFIG_ESP32_ENABLE_COREDUMP CONFIG_ESP_COREDUMP_ENABLE
730733
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
@@ -819,5 +822,5 @@
819822
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
820823
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
821824
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
822-
#define CONFIG_ARDUINO_IDF_COMMIT "e8bdaf9198"
823-
#define CONFIG_ARDUINO_IDF_BRANCH "v4.4.4"
825+
#define CONFIG_ARDUINO_IDF_COMMIT "4c2afac355"
826+
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
4 KB
Binary file not shown.

tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_bt_defs.h

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern "C" {
2727
return ESP_ERR_INVALID_STATE; \
2828
}
2929

30+
#define ESP_BT_STATUS_BASE_FOR_HCI_ERR 0X0100 /* base for coverting HCI error code to ESP status */
3031

3132
/* relate to BT_STATUS_xxx in bt_def.h */
3233
/// Status Return Value
@@ -53,6 +54,71 @@ typedef enum {
5354
ESP_BT_STATUS_ERR_ILLEGAL_PARAMETER_FMT, /* relate to HCI_ERR_ILLEGAL_PARAMETER_FMT in stack/hcidefs.h */
5455
ESP_BT_STATUS_MEMORY_FULL = 20, /* relate to BT_STATUS_MEMORY_FULL in bt_def.h */
5556
ESP_BT_STATUS_EIR_TOO_LARGE, /* relate to BT_STATUS_EIR_TOO_LARGE in bt_def.h */
57+
ESP_BT_STATUS_HCI_SUCCESS = ESP_BT_STATUS_BASE_FOR_HCI_ERR,
58+
ESP_BT_STATUS_HCI_PENDING,
59+
ESP_BT_STATUS_HCI_ILLEGAL_COMMAND,
60+
ESP_BT_STATUS_HCI_NO_CONNECTION,
61+
ESP_BT_STATUS_HCI_HW_FAILURE,
62+
ESP_BT_STATUS_HCI_PAGE_TIMEOUT,
63+
ESP_BT_STATUS_HCI_AUTH_FAILURE,
64+
ESP_BT_STATUS_HCI_KEY_MISSING,
65+
ESP_BT_STATUS_HCI_MEMORY_FULL,
66+
ESP_BT_STATUS_HCI_CONNECTION_TOUT,
67+
ESP_BT_STATUS_HCI_MAX_NUM_OF_CONNECTIONS,
68+
ESP_BT_STATUS_HCI_MAX_NUM_OF_SCOS,
69+
ESP_BT_STATUS_HCI_CONNECTION_EXISTS,
70+
ESP_BT_STATUS_HCI_COMMAND_DISALLOWED,
71+
ESP_BT_STATUS_HCI_HOST_REJECT_RESOURCES,
72+
ESP_BT_STATUS_HCI_HOST_REJECT_SECURITY,
73+
ESP_BT_STATUS_HCI_HOST_REJECT_DEVICE,
74+
ESP_BT_STATUS_HCI_HOST_TIMEOUT,
75+
ESP_BT_STATUS_HCI_UNSUPPORTED_VALUE,
76+
ESP_BT_STATUS_HCI_ILLEGAL_PARAMETER_FMT,
77+
ESP_BT_STATUS_HCI_PEER_USER,
78+
ESP_BT_STATUS_HCI_PEER_LOW_RESOURCES,
79+
ESP_BT_STATUS_HCI_PEER_POWER_OFF,
80+
ESP_BT_STATUS_HCI_CONN_CAUSE_LOCAL_HOST,
81+
ESP_BT_STATUS_HCI_REPEATED_ATTEMPTS,
82+
ESP_BT_STATUS_HCI_PAIRING_NOT_ALLOWED,
83+
ESP_BT_STATUS_HCI_UNKNOWN_LMP_PDU,
84+
ESP_BT_STATUS_HCI_UNSUPPORTED_REM_FEATURE,
85+
ESP_BT_STATUS_HCI_SCO_OFFSET_REJECTED,
86+
ESP_BT_STATUS_HCI_SCO_INTERVAL_REJECTED,
87+
ESP_BT_STATUS_HCI_SCO_AIR_MODE,
88+
ESP_BT_STATUS_HCI_INVALID_LMP_PARAM,
89+
ESP_BT_STATUS_HCI_UNSPECIFIED,
90+
ESP_BT_STATUS_HCI_UNSUPPORTED_LMP_PARAMETERS,
91+
ESP_BT_STATUS_HCI_ROLE_CHANGE_NOT_ALLOWED,
92+
ESP_BT_STATUS_HCI_LMP_RESPONSE_TIMEOUT,
93+
ESP_BT_STATUS_HCI_LMP_ERR_TRANS_COLLISION,
94+
ESP_BT_STATUS_HCI_LMP_PDU_NOT_ALLOWED,
95+
ESP_BT_STATUS_HCI_ENCRY_MODE_NOT_ACCEPTABLE,
96+
ESP_BT_STATUS_HCI_UNIT_KEY_USED,
97+
ESP_BT_STATUS_HCI_QOS_NOT_SUPPORTED,
98+
ESP_BT_STATUS_HCI_INSTANT_PASSED,
99+
ESP_BT_STATUS_HCI_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED,
100+
ESP_BT_STATUS_HCI_DIFF_TRANSACTION_COLLISION,
101+
ESP_BT_STATUS_HCI_UNDEFINED_0x2B,
102+
ESP_BT_STATUS_HCI_QOS_UNACCEPTABLE_PARAM,
103+
ESP_BT_STATUS_HCI_QOS_REJECTED,
104+
ESP_BT_STATUS_HCI_CHAN_CLASSIF_NOT_SUPPORTED,
105+
ESP_BT_STATUS_HCI_INSUFFCIENT_SECURITY,
106+
ESP_BT_STATUS_HCI_PARAM_OUT_OF_RANGE,
107+
ESP_BT_STATUS_HCI_UNDEFINED_0x31,
108+
ESP_BT_STATUS_HCI_ROLE_SWITCH_PENDING,
109+
ESP_BT_STATUS_HCI_UNDEFINED_0x33,
110+
ESP_BT_STATUS_HCI_RESERVED_SLOT_VIOLATION,
111+
ESP_BT_STATUS_HCI_ROLE_SWITCH_FAILED,
112+
ESP_BT_STATUS_HCI_INQ_RSP_DATA_TOO_LARGE,
113+
ESP_BT_STATUS_HCI_SIMPLE_PAIRING_NOT_SUPPORTED,
114+
ESP_BT_STATUS_HCI_HOST_BUSY_PAIRING,
115+
ESP_BT_STATUS_HCI_REJ_NO_SUITABLE_CHANNEL,
116+
ESP_BT_STATUS_HCI_CONTROLLER_BUSY,
117+
ESP_BT_STATUS_HCI_UNACCEPT_CONN_INTERVAL,
118+
ESP_BT_STATUS_HCI_DIRECTED_ADVERTISING_TIMEOUT,
119+
ESP_BT_STATUS_HCI_CONN_TOUT_DUE_TO_MIC_FAILURE,
120+
ESP_BT_STATUS_HCI_CONN_FAILED_ESTABLISHMENT,
121+
ESP_BT_STATUS_HCI_MAC_CONNECTION_FAILED,
56122
} esp_bt_status_t;
57123

58124

tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_gap_bt_api.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ typedef enum {
223223
ESP_BT_GAP_MODE_CHG_EVT,
224224
ESP_BT_GAP_REMOVE_BOND_DEV_COMPLETE_EVT, /*!< remove bond device complete event */
225225
ESP_BT_GAP_QOS_CMPL_EVT, /*!< QOS complete event */
226+
ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT, /*!< ACL connection complete status event */
227+
ESP_BT_GAP_ACL_DISCONN_CMPL_STAT_EVT, /*!< ACL disconnection complete status event */
226228
ESP_BT_GAP_EVT_MAX,
227229
} esp_bt_gap_cb_event_t;
228230

@@ -376,6 +378,24 @@ typedef union {
376378
which from the master to a particular slave on the ACL
377379
logical transport. unit is 0.625ms. */
378380
} qos_cmpl; /*!< QoS complete parameter struct */
381+
382+
/**
383+
* @brief ESP_BT_GAP_ACL_CONN_CMPL_STAT_EVT
384+
*/
385+
struct acl_conn_cmpl_stat_param {
386+
esp_bt_status_t stat; /*!< ACL connection status */
387+
uint16_t handle; /*!< ACL connection handle */
388+
esp_bd_addr_t bda; /*!< remote bluetooth device address */
389+
} acl_conn_cmpl_stat; /*!< ACL connection complete status parameter struct */
390+
391+
/**
392+
* @brief ESP_BT_GAP_ACL_DISCONN_CMPL_STAT_EVT
393+
*/
394+
struct acl_disconn_cmpl_stat_param {
395+
esp_bt_status_t reason; /*!< ACL disconnection reason */
396+
uint16_t handle; /*!< ACL connection handle */
397+
esp_bd_addr_t bda; /*!< remote bluetooth device address */
398+
} acl_disconn_cmpl_stat; /*!< ACL disconnection complete status parameter struct */
379399
} esp_bt_gap_cb_param_t;
380400

381401
/**

tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_gatt_defs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ typedef enum {
285285
#define ESP_GATT_PERM_WRITE_SIGNED_MITM (1 << 8) /* bit 8 - 0x0100 */ /* relate to BTA_GATT_PERM_WRITE_SIGNED_MITM in bta/bta_gatt_api.h */
286286
#define ESP_GATT_PERM_READ_AUTHORIZATION (1 << 9) /* bit 9 - 0x0200 */
287287
#define ESP_GATT_PERM_WRITE_AUTHORIZATION (1 << 10) /* bit 10 - 0x0400 */
288+
#define ESP_GATT_PERM_ENCRYPT_KEY_SIZE(keysize) (((keysize - 6) & 0xF) << 12) /* bit 12:15 - 0xF000 */
288289
typedef uint16_t esp_gatt_perm_t;
289290

290291
/* relate to BTA_GATT_CHAR_PROP_BIT_xxx in bta/bta_gatt_api.h */

tools/sdk/esp32/include/bt/include/esp32/include/esp_bt.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extern "C" {
5050

5151
#endif //CONFIG_BT_ENABLED
5252

53-
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20200622
53+
#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20221207
5454

5555
/**
5656
* @brief Bluetooth mode for controller enable/disable
@@ -128,6 +128,12 @@ the adv packet will be discarded until the memory is restored. */
128128
#define MESH_DUPLICATE_SCAN_CACHE_SIZE 0
129129
#endif
130130

131+
#ifdef CONFIG_BTDM_SCAN_DUPL_CACHE_REFRESH_PERIOD
132+
#define SCAN_DUPL_CACHE_REFRESH_PERIOD CONFIG_BTDM_SCAN_DUPL_CACHE_REFRESH_PERIOD
133+
#else
134+
#define SCAN_DUPL_CACHE_REFRESH_PERIOD 0
135+
#endif
136+
131137
#if defined(CONFIG_BTDM_CTRL_MODE_BLE_ONLY)
132138
#define BTDM_CONTROLLER_MODE_EFF ESP_BT_MODE_BLE
133139
#elif defined(CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY)
@@ -183,6 +189,7 @@ the adv packet will be discarded until the memory is restored. */
183189
.pcm_role = CONFIG_BTDM_CTRL_PCM_ROLE_EFF, \
184190
.pcm_polar = CONFIG_BTDM_CTRL_PCM_POLAR_EFF, \
185191
.hli = BTDM_CTRL_HLI, \
192+
.dup_list_refresh_period = SCAN_DUPL_CACHE_REFRESH_PERIOD, \
186193
.magic = ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL, \
187194
}
188195

@@ -225,6 +232,7 @@ typedef struct {
225232
uint8_t pcm_role; /*!< PCM role (master & slave)*/
226233
uint8_t pcm_polar; /*!< PCM polar trig (falling clk edge & rising clk edge) */
227234
bool hli; /*!< Using high level interrupt or not */
235+
uint16_t dup_list_refresh_period; /*!< Duplicate scan list refresh period */
228236
uint32_t magic; /*!< Magic number */
229237
} esp_bt_controller_config_t;
230238

tools/sdk/esp32/include/driver/include/driver/gpio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ esp_err_t gpio_force_hold_all(void);
449449
esp_err_t gpio_force_unhold_all(void);
450450
#endif
451451

452-
#if SOC_GPIO_SUPPORT_SLP_SWITCH
453452
/**
454453
* @brief Enable SLP_SEL to change GPIO status automantically in lightsleep.
455454
* @param gpio_num GPIO number of the pad.
@@ -496,7 +495,6 @@ esp_err_t gpio_sleep_set_direction(gpio_num_t gpio_num, gpio_mode_t mode);
496495
* - ESP_ERR_INVALID_ARG : Parameter error
497496
*/
498497
esp_err_t gpio_sleep_set_pull_mode(gpio_num_t gpio_num, gpio_pull_mode_t pull);
499-
#endif
500498

501499
#if SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
502500

tools/sdk/esp32/include/driver/include/driver/spi_common_internal.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ int spicommon_irqdma_source_for_host(spi_host_device_t host);
248248
*/
249249
typedef void(*dmaworkaround_cb_t)(void *arg);
250250

251-
251+
#if CONFIG_IDF_TARGET_ESP32
252+
//This workaround is only for esp32
252253
/**
253254
* @brief Request a reset for a certain DMA channel
254255
*
@@ -303,6 +304,7 @@ void spicommon_dmaworkaround_idle(int dmachan);
303304
* @note This public API is deprecated.
304305
*/
305306
void spicommon_dmaworkaround_transfer_active(int dmachan);
307+
#endif //#if CONFIG_IDF_TARGET_ESP32
306308

307309
/*******************************************************************************
308310
* Bus attributes

0 commit comments

Comments
 (0)