Skip to content

Commit 6fa9651

Browse files
committed
IDF release/v4.4 96db015f7b
1 parent 172ec43 commit 6fa9651

File tree

165 files changed

+630
-386
lines changed

Some content is hidden

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

165 files changed

+630
-386
lines changed

platform.txt

+4-4
Large diffs are not rendered by default.

tools/platformio-build-esp32.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
"UNITY_INCLUDE_CONFIG_H",
335335
"WITH_POSIX",
336336
"_GNU_SOURCE",
337-
("IDF_VER", '\\"v4.4.7-95-g1e1030e5ef-dirty\\"'),
337+
("IDF_VER", '\\"v4.4.7-136-g96db015f7b-dirty\\"'),
338338
"ESP_PLATFORM",
339339
"_POSIX_READER_WRITER_LOCKS",
340340
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32c3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
"UNITY_INCLUDE_CONFIG_H",
332332
"WITH_POSIX",
333333
"_GNU_SOURCE",
334-
("IDF_VER", '\\"v4.4.7-95-g1e1030e5ef-dirty\\"'),
334+
("IDF_VER", '\\"v4.4.7-136-g96db015f7b-dirty\\"'),
335335
"ESP_PLATFORM",
336336
"_POSIX_READER_WRITER_LOCKS",
337337
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
"UNITY_INCLUDE_CONFIG_H",
318318
"WITH_POSIX",
319319
"_GNU_SOURCE",
320-
("IDF_VER", '\\"v4.4.7-95-g1e1030e5ef-dirty\\"'),
320+
("IDF_VER", '\\"v4.4.7-136-g96db015f7b-dirty\\"'),
321321
"ESP_PLATFORM",
322322
"_POSIX_READER_WRITER_LOCKS",
323323
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"UNITY_INCLUDE_CONFIG_H",
334334
"WITH_POSIX",
335335
"_GNU_SOURCE",
336-
("IDF_VER", '\\"v4.4.7-95-g1e1030e5ef-dirty\\"'),
336+
("IDF_VER", '\\"v4.4.7-136-g96db015f7b-dirty\\"'),
337337
"ESP_PLATFORM",
338338
"_POSIX_READER_WRITER_LOCKS",
339339
"ARDUINO_ARCH_ESP32",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32/ld/libbtdm_app.a

11.1 KB
Binary file not shown.

tools/sdk/esp32/lib/libapp_update.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libbt.a

1.63 KB
Binary file not shown.

tools/sdk/esp32/lib/libcoexist.a

360 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libcore.a

0 Bytes
Binary file not shown.
28 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_system.a

4 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libespnow.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libheap.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/liblog.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libmesh.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libnet80211.a

1.38 KB
Binary file not shown.

tools/sdk/esp32/lib/libpp.a

1.81 KB
Binary file not shown.

tools/sdk/esp32/lib/libsmartconfig.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libwapi.a

0 Bytes
Binary file not shown.
-40 Bytes
Binary file not shown.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
-120 Bytes
Binary file not shown.
-120 Bytes
Binary file not shown.
-120 Bytes
Binary file not shown.
-120 Bytes
Binary file not shown.
-120 Bytes
Binary file not shown.
-120 Bytes
Binary file not shown.
-120 Bytes
Binary file not shown.
-120 Bytes
Binary file not shown.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,5 +849,5 @@
849849
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
850850
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
851851
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
852-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
852+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
853853
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,5 +849,5 @@
849849
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
850850
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
851851
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
852-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
852+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
853853
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32c3/ld/esp32c3.rom.eco7.ld

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
esf_buf_alloc = 0x400015bc;
77
esf_buf_alloc_dynamic = 0x400015c0;
88
esf_buf_recycle = 0x400015c4;
9-
hal_mac_tx_set_ppdu = 0x400015d4;
9+
/*hal_mac_tx_set_ppdu = 0x400015d4;*/
1010
ic_mac_deinit = 0x400015dc;
1111
lmacDiscardMSDU = 0x400015f4;
1212
lmacSetTxFrame = 0x40001628;
@@ -37,7 +37,7 @@ ieee80211_encap_esfbuf = 0x4000185c;
3737
/*sta_input = 0x40001870;*/
3838
ieee80211_crypto_decap = 0x4000189c;
3939
ieee80211_decap = 0x400018a0;
40-
coex_core_timer_idx_get = 0x400018d0;
40+
/*coex_core_timer_idx_get = 0x400018d0;*/
4141
rom1_chip_i2c_readReg = 0x40001924;
4242
rom1_chip_i2c_writeReg = 0x40001928;
4343
rom_index_to_txbbgain = 0x40001964;

tools/sdk/esp32c3/ld/esp32c3.rom.ld

+3-3
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ ppTask = 0x40001720;
15911591
ppTxPkt = 0x40001724;
15921592
ppTxProtoProc = 0x40001728;
15931593
ppTxqUpdateBitmap = 0x4000172c;
1594-
pp_coex_tx_request = 0x40001730;
1594+
/*pp_coex_tx_request = 0x40001730;*/
15951595
pp_hdrsize = 0x40001734;
15961596
pp_post = 0x40001738;
15971597
pp_process_hmac_waiting_txq = 0x4000173c;
@@ -1760,12 +1760,12 @@ esp_coex_rom_version_get = 0x400018ac;
17601760
coex_bt_release = 0x400018b0;
17611761
coex_bt_request = 0x400018b4;
17621762
coex_core_ble_conn_dyn_prio_get = 0x400018b8;
1763-
coex_core_event_duration_get = 0x400018bc;
1763+
/*coex_core_event_duration_get = 0x400018bc;*/
17641764
coex_core_pti_get = 0x400018c0;
17651765
coex_core_release = 0x400018c4;
17661766
coex_core_request = 0x400018c8;
17671767
coex_core_status_get = 0x400018cc;
1768-
coex_core_timer_idx_get = 0x400018d0;
1768+
/*coex_core_timer_idx_get = 0x400018d0;*/
17691769
coex_event_duration_get = 0x400018d4;
17701770
coex_hw_timer_disable = 0x400018d8;
17711771
coex_hw_timer_enable = 0x400018dc;

tools/sdk/esp32c3/ld/sections.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ SECTIONS
349349
_bss_start = ABSOLUTE(.);
350350

351351
*(EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .bss EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .bss.*)
352-
*(.dynbss .dynsbss .gnu.linkonce.b .gnu.linkonce.b.* .gnu.linkonce.sb .gnu.linkonce.sb.* .gnu.linkonce.sb2 .gnu.linkonce.sb2.* .sbss .sbss.* .sbss2 .sbss2.* .scommon .share.mem)
353352
*(.ext_ram.bss .ext_ram.bss.*)
353+
*(.dynbss .dynsbss .gnu.linkonce.b .gnu.linkonce.b.* .gnu.linkonce.sb .gnu.linkonce.sb.* .gnu.linkonce.sb2 .gnu.linkonce.sb2.* .sbss .sbss.* .sbss2 .sbss2.* .scommon .share.mem)
354354
*(EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) COMMON)
355355
. = ALIGN(4);
356356
_bt_bss_start = ABSOLUTE(.);

tools/sdk/esp32c3/lib/libapp_update.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libbt.a

540 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libcoexist.a

328 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libcore.a

0 Bytes
Binary file not shown.
312 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libesp_system.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libespnow.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libheap.a

32 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/liblog.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libmesh.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libnet80211.a

1.48 KB
Binary file not shown.

tools/sdk/esp32c3/lib/libpp.a

1.69 KB
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libwapi.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32c3/qio_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,5 +849,5 @@
849849
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
850850
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
851851
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
852-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
852+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
853853
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32c3/qout_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,5 +849,5 @@
849849
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
850850
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
851851
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
852-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
852+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
853853
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,5 +717,5 @@
717717
#define CONFIG_USB_MSC_BUFSIZE CONFIG_TINYUSB_MSC_BUFSIZE
718718
#define CONFIG_USB_MSC_ENABLED CONFIG_TINYUSB_MSC_ENABLED
719719
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
720-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
720+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
721721
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,5 +717,5 @@
717717
#define CONFIG_USB_MSC_BUFSIZE CONFIG_TINYUSB_MSC_BUFSIZE
718718
#define CONFIG_USB_MSC_ENABLED CONFIG_TINYUSB_MSC_ENABLED
719719
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
720-
#define CONFIG_ARDUINO_IDF_COMMIT "1e1030e5ef"
720+
#define CONFIG_ARDUINO_IDF_COMMIT "96db015f7b"
721721
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/audio/audio.h

+25
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,31 @@ typedef struct TU_ATTR_PACKED {
924924
} subrange[numSubRanges]; \
925925
}
926926

927+
// 6.1 Interrupt Data Message Format
928+
typedef struct TU_ATTR_PACKED
929+
{
930+
uint8_t bInfo;
931+
uint8_t bAttribute;
932+
union
933+
{
934+
uint16_t wValue;
935+
struct
936+
{
937+
uint8_t wValue_cn_or_mcn;
938+
uint8_t wValue_cs;
939+
};
940+
};
941+
union
942+
{
943+
uint16_t wIndex;
944+
struct
945+
{
946+
uint8_t wIndex_ep_or_int;
947+
uint8_t wIndex_entity_id;
948+
};
949+
};
950+
} audio_interrupt_data_t;
951+
927952
/** @} */
928953

929954
#ifdef __cplusplus

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/audio/audio_device.h

+13-16
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,9 @@
196196
#define CFG_TUD_AUDIO_ENABLE_FEEDBACK_FORMAT_CORRECTION 0 // 0 or 1
197197
#endif
198198

199-
// Audio interrupt control EP size - disabled if 0
200-
#ifndef CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
201-
#define CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN 0 // Audio interrupt control - if required - 6 Bytes according to UAC 2 specification (p. 74)
202-
#endif
203-
204-
#ifndef CFG_TUD_AUDIO_INT_CTR_EP_IN_SW_BUFFER_SIZE
205-
#define CFG_TUD_AUDIO_INT_CTR_EP_IN_SW_BUFFER_SIZE 6 // Buffer size of audio control interrupt EP - 6 Bytes according to UAC 2 specification (p. 74)
199+
// Enable/disable interrupt EP (required for notifying host of control changes)
200+
#ifndef CFG_TUD_AUDIO_ENABLE_INTERRUPT_EP
201+
#define CFG_TUD_AUDIO_ENABLE_INTERRUPT_EP 0 // Feedback - 0 or 1
206202
#endif
207203

208204
// Use software encoding/decoding
@@ -393,8 +389,8 @@ uint16_t tud_audio_n_write_support_ff (uint8_t func_id, uint8_t ff_i
393389
tu_fifo_t* tud_audio_n_get_tx_support_ff (uint8_t func_id, uint8_t ff_idx);
394390
#endif
395391

396-
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
397-
uint16_t tud_audio_int_ctr_n_write (uint8_t func_id, uint8_t const* buffer, uint16_t len);
392+
#if CFG_TUD_AUDIO_ENABLE_INTERRUPT_EP
393+
bool tud_audio_int_n_write (uint8_t func_id, const audio_interrupt_data_t * data);
398394
#endif
399395

400396

@@ -437,8 +433,8 @@ static inline tu_fifo_t* tud_audio_get_tx_support_ff (uint8_t ff_idx);
437433

438434
// INT CTR API
439435

440-
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
441-
static inline uint16_t tud_audio_int_ctr_write (uint8_t const* buffer, uint16_t len);
436+
#if CFG_TUD_AUDIO_ENABLE_INTERRUPT_EP
437+
static inline bool tud_audio_int_write (const audio_interrupt_data_t * data);
442438
#endif
443439

444440
// Buffer control EP data and schedule a transmit
@@ -537,8 +533,8 @@ TU_ATTR_WEAK TU_ATTR_FAST_FUNC void tud_audio_feedback_interval_isr(uint8_t func
537533

538534
#endif // CFG_TUD_AUDIO_ENABLE_EP_OUT && CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
539535

540-
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
541-
TU_ATTR_WEAK bool tud_audio_int_ctr_done_cb(uint8_t rhport, uint16_t n_bytes_copied);
536+
#if CFG_TUD_AUDIO_ENABLE_INTERRUPT_EP
537+
TU_ATTR_WEAK void tud_audio_int_done_cb(uint8_t rhport);
542538
#endif
543539

544540
// Invoked when audio set interface request received
@@ -669,10 +665,10 @@ static inline tu_fifo_t* tud_audio_get_tx_support_ff(uint8_t ff_idx)
669665

670666
#endif
671667

672-
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN
673-
static inline uint16_t tud_audio_int_ctr_write(uint8_t const* buffer, uint16_t len)
668+
#if CFG_TUD_AUDIO_ENABLE_INTERRUPT_EP
669+
static inline bool tud_audio_int_write(const audio_interrupt_data_t * data)
674670
{
675-
return tud_audio_int_ctr_n_write(0, buffer, len);
671+
return tud_audio_int_n_write(0, data);
676672
}
677673
#endif
678674

@@ -689,6 +685,7 @@ static inline bool tud_audio_fb_set(uint32_t feedback)
689685
// Internal Class Driver API
690686
//--------------------------------------------------------------------+
691687
void audiod_init (void);
688+
bool audiod_deinit (void);
692689
void audiod_reset (uint8_t rhport);
693690
uint16_t audiod_open (uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t max_len);
694691
bool audiod_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/bth/bth_device.h

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ bool tud_bt_acl_data_send(void *acl_data, uint16_t data_len);
104104
// Internal Class Driver API
105105
//--------------------------------------------------------------------+
106106
void btd_init (void);
107+
bool btd_deinit (void);
107108
void btd_reset (uint8_t rhport);
108109
uint16_t btd_open (uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t max_len);
109110
bool btd_control_xfer_cb (uint8_t rhport, uint8_t stage, tusb_control_request_t const *request);

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/cdc/cdc_device.h

+1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ static inline bool tud_cdc_write_clear(void)
247247
// INTERNAL USBD-CLASS DRIVER API
248248
//--------------------------------------------------------------------+
249249
void cdcd_init (void);
250+
bool cdcd_deinit (void);
250251
void cdcd_reset (uint8_t rhport);
251252
uint16_t cdcd_open (uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t max_len);
252253
bool cdcd_control_xfer_cb (uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/dfu/dfu_device.h

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ TU_ATTR_WEAK void tud_dfu_abort_cb(uint8_t alt);
8686
// Internal Class Driver API
8787
//--------------------------------------------------------------------+
8888
void dfu_moded_init(void);
89+
bool dfu_moded_deinit(void);
8990
void dfu_moded_reset(uint8_t rhport);
9091
uint16_t dfu_moded_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t max_len);
9192
bool dfu_moded_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/dfu/dfu_rt_device.h

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ void tud_dfu_runtime_reboot_to_dfu_cb(void);
4343
// Internal Class Driver API
4444
//--------------------------------------------------------------------+
4545
void dfu_rtd_init(void);
46+
bool dfu_rtd_deinit(void);
4647
void dfu_rtd_reset(uint8_t rhport);
4748
uint16_t dfu_rtd_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t max_len);
4849
bool dfu_rtd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/hid/hid.h

+13
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,19 @@ typedef struct TU_ATTR_PACKED
300300
int8_t pan; // using AC Pan
301301
} hid_mouse_report_t;
302302

303+
304+
// Absolute Mouse: same as the Standard (relative) Mouse Report but
305+
// with int16_t instead of int8_t for X and Y coordinates.
306+
typedef struct TU_ATTR_PACKED
307+
{
308+
uint8_t buttons; /**< buttons mask for currently pressed buttons in the mouse. */
309+
int16_t x; /**< Current x position of the mouse. */
310+
int16_t y; /**< Current y position of the mouse. */
311+
int8_t wheel; /**< Current delta wheel movement on the mouse. */
312+
int8_t pan; // using AC Pan
313+
} hid_abs_mouse_report_t;
314+
315+
303316
/// Standard Mouse Buttons Bitmap
304317
typedef enum
305318
{

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/hid/hid_device.h

+60
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ bool tud_hid_n_keyboard_report(uint8_t instance, uint8_t report_id, uint8_t modi
7272
// use template layout report as defined by hid_mouse_report_t
7373
bool tud_hid_n_mouse_report(uint8_t instance, uint8_t report_id, uint8_t buttons, int8_t x, int8_t y, int8_t vertical, int8_t horizontal);
7474

75+
// ABSOLUTE MOUSE: convenient helper to send absolute mouse report if application
76+
// use template layout report as defined by hid_abs_mouse_report_t
77+
bool tud_hid_n_abs_mouse_report(uint8_t instance, uint8_t report_id, uint8_t buttons, int16_t x, int16_t y, int8_t vertical, int8_t horizontal);
78+
79+
80+
static inline bool tud_hid_abs_mouse_report(uint8_t report_id, uint8_t buttons, int16_t x, int16_t y, int8_t vertical, int8_t horizontal)
81+
{
82+
return tud_hid_n_abs_mouse_report(0, report_id, buttons, x, y, vertical, horizontal);
83+
}
84+
7585
// Gamepad: convenient helper to send gamepad report if application
7686
// use template layout report TUD_HID_REPORT_DESC_GAMEPAD
7787
bool tud_hid_n_gamepad_report(uint8_t instance, uint8_t report_id, int8_t x, int8_t y, int8_t z, int8_t rz, int8_t rx, int8_t ry, uint8_t hat, uint32_t buttons);
@@ -266,6 +276,55 @@ static inline bool tud_hid_gamepad_report(uint8_t report_id, int8_t x, int8_t y
266276
HID_COLLECTION_END , \
267277
HID_COLLECTION_END \
268278

279+
// Absolute Mouse Report Descriptor Template
280+
#define TUD_HID_REPORT_DESC_ABSMOUSE(...) \
281+
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
282+
HID_USAGE ( HID_USAGE_DESKTOP_MOUSE ) ,\
283+
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
284+
/* Report ID if any */\
285+
__VA_ARGS__ \
286+
HID_USAGE ( HID_USAGE_DESKTOP_POINTER ) ,\
287+
HID_COLLECTION ( HID_COLLECTION_PHYSICAL ) ,\
288+
HID_USAGE_PAGE ( HID_USAGE_PAGE_BUTTON ) ,\
289+
HID_USAGE_MIN ( 1 ) ,\
290+
HID_USAGE_MAX ( 5 ) ,\
291+
HID_LOGICAL_MIN ( 0 ) ,\
292+
HID_LOGICAL_MAX ( 1 ) ,\
293+
/* Left, Right, Middle, Backward, Forward buttons */ \
294+
HID_REPORT_COUNT( 5 ) ,\
295+
HID_REPORT_SIZE ( 1 ) ,\
296+
HID_INPUT ( HID_DATA | HID_VARIABLE | HID_ABSOLUTE ) ,\
297+
/* 3 bit padding */ \
298+
HID_REPORT_COUNT( 1 ) ,\
299+
HID_REPORT_SIZE ( 3 ) ,\
300+
HID_INPUT ( HID_CONSTANT ) ,\
301+
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
302+
/* X, Y absolute position [0, 32767] */ \
303+
HID_USAGE ( HID_USAGE_DESKTOP_X ) ,\
304+
HID_USAGE ( HID_USAGE_DESKTOP_Y ) ,\
305+
HID_LOGICAL_MIN ( 0x00 ) ,\
306+
HID_LOGICAL_MAX_N( 0x7FFF, 2 ) ,\
307+
HID_REPORT_SIZE ( 16 ) ,\
308+
HID_REPORT_COUNT ( 2 ) ,\
309+
HID_INPUT ( HID_DATA | HID_VARIABLE | HID_ABSOLUTE ) ,\
310+
/* Vertical wheel scroll [-127, 127] */ \
311+
HID_USAGE ( HID_USAGE_DESKTOP_WHEEL ) ,\
312+
HID_LOGICAL_MIN ( 0x81 ) ,\
313+
HID_LOGICAL_MAX ( 0x7f ) ,\
314+
HID_REPORT_COUNT( 1 ) ,\
315+
HID_REPORT_SIZE ( 8 ) ,\
316+
HID_INPUT ( HID_DATA | HID_VARIABLE | HID_RELATIVE ) ,\
317+
HID_USAGE_PAGE ( HID_USAGE_PAGE_CONSUMER ), \
318+
/* Horizontal wheel scroll [-127, 127] */ \
319+
HID_USAGE_N ( HID_USAGE_CONSUMER_AC_PAN, 2 ), \
320+
HID_LOGICAL_MIN ( 0x81 ), \
321+
HID_LOGICAL_MAX ( 0x7f ), \
322+
HID_REPORT_COUNT( 1 ), \
323+
HID_REPORT_SIZE ( 8 ), \
324+
HID_INPUT ( HID_DATA | HID_VARIABLE | HID_RELATIVE ), \
325+
HID_COLLECTION_END , \
326+
HID_COLLECTION_END \
327+
269328
// Consumer Control Report Descriptor Template
270329
#define TUD_HID_REPORT_DESC_CONSUMER(...) \
271330
HID_USAGE_PAGE ( HID_USAGE_PAGE_CONSUMER ) ,\
@@ -406,6 +465,7 @@ static inline bool tud_hid_gamepad_report(uint8_t report_id, int8_t x, int8_t y
406465
// Internal Class Driver API
407466
//--------------------------------------------------------------------+
408467
void hidd_init (void);
468+
bool hidd_deinit (void);
409469
void hidd_reset (uint8_t rhport);
410470
uint16_t hidd_open (uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t max_len);
411471
bool hidd_control_xfer_cb (uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);

0 commit comments

Comments
 (0)