Skip to content

Commit 8cd73a5

Browse files
committed
update tinyusb core to commit hathach/tinyusb@dde5f1d
1 parent 2ccf4c2 commit 8cd73a5

110 files changed

Lines changed: 14357 additions & 6241 deletions

File tree

Some content is hidden

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

.codespell/ignore-words.txt

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
synopsys
2-
sie
3-
inout
1+
attch
42
busses
3+
dout
4+
endianess
5+
fro
6+
hsi
7+
inout
8+
mot
9+
pris
10+
ser
11+
sie
12+
synopsys
13+
te
514
thre
6-
15+
tre

src/class/audio/audio.h

Lines changed: 1096 additions & 758 deletions
Large diffs are not rendered by default.

src/class/audio/audio_device.c

Lines changed: 446 additions & 384 deletions
Large diffs are not rendered by default.

src/class/audio/audio_device.h

Lines changed: 83 additions & 76 deletions
Large diffs are not rendered by default.

src/class/bth/bth_device.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static bool bt_tx_data(uint8_t ep, void *data, uint16_t len) {
6767
// skip if previous transfer not complete
6868
TU_VERIFY(!usbd_edpt_busy(rhport, ep));
6969

70-
TU_ASSERT(usbd_edpt_xfer(rhport, ep, data, len));
70+
TU_ASSERT(usbd_edpt_xfer(rhport, ep, data, len, false));
7171

7272
return true;
7373
}
@@ -169,7 +169,7 @@ uint16_t btd_open(uint8_t rhport, tusb_desc_interface_t const *itf_desc, uint16_
169169
itf_desc = (tusb_desc_interface_t const *) tu_desc_next(tu_desc_next(desc_ep));
170170

171171
// Prepare for incoming data from host
172-
TU_ASSERT(usbd_edpt_xfer(rhport, _btd_itf.ep_acl_out, _btd_epbuf.epout_buf, CFG_TUD_BTH_DATA_EPSIZE), 0);
172+
TU_ASSERT(usbd_edpt_xfer(rhport, _btd_itf.ep_acl_out, _btd_epbuf.epout_buf, CFG_TUD_BTH_DATA_EPSIZE, false), 0);
173173

174174
drv_len = hci_itf_size;
175175

@@ -272,7 +272,7 @@ bool btd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result,
272272
tud_bt_acl_data_received_cb(_btd_epbuf.epout_buf, xferred_bytes);
273273

274274
// prepare for next data
275-
TU_ASSERT(usbd_edpt_xfer(rhport, _btd_itf.ep_acl_out, _btd_epbuf.epout_buf, CFG_TUD_BTH_DATA_EPSIZE));
275+
TU_ASSERT(usbd_edpt_xfer(rhport, _btd_itf.ep_acl_out, _btd_epbuf.epout_buf, CFG_TUD_BTH_DATA_EPSIZE, false));
276276
} else if (ep_addr == _btd_itf.ep_ev) {
277277
tud_bt_event_sent_cb((uint16_t) xferred_bytes);
278278
} else if (ep_addr == _btd_itf.ep_acl_in) {

src/class/bth/bth_device.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* This file is part of the TinyUSB stack.
2525
*/
2626

27-
#ifndef _TUSB_BTH_DEVICE_H_
28-
#define _TUSB_BTH_DEVICE_H_
27+
#ifndef TUSB_BTH_DEVICE_H_
28+
#define TUSB_BTH_DEVICE_H_
2929

3030
#include <common/tusb_common.h>
3131
#include <device/usbd.h>
@@ -114,4 +114,4 @@ bool btd_xfer_cb (uint8_t rhport, uint8_t edpt_addr, xfer_result_t r
114114
}
115115
#endif
116116

117-
#endif /* _TUSB_BTH_DEVICE_H_ */
117+
#endif /* TUSB_BTH_DEVICE_H_ */

src/class/cdc/cdc.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
* Currently only Abstract Control Model subclass is supported
3030
* @{ */
3131

32-
#ifndef _TUSB_CDC_H__
33-
#define _TUSB_CDC_H__
32+
#ifndef TUSB_CDC_H__
33+
#define TUSB_CDC_H__
3434

3535
#include "common/tusb_common.h"
3636

@@ -192,10 +192,10 @@ typedef enum {
192192
CDC_LINE_CODING_STOP_BITS_2 = 2, // 2 bits
193193
} cdc_line_coding_stopbits_t;
194194

195-
#define CDC_LINE_CODING_STOP_BITS_TEXT(STOP_BITS) ( \
196-
STOP_BITS == CDC_LINE_CODING_STOP_BITS_1 ? "1" : \
197-
STOP_BITS == CDC_LINE_CODING_STOP_BITS_1_5 ? "1.5" : \
198-
STOP_BITS == CDC_LINE_CODING_STOP_BITS_2 ? "2" : "?" )
195+
#define CDC_LINE_CODING_STOP_BITS_TEXT(STOP_BITS) ( \
196+
(STOP_BITS) == CDC_LINE_CODING_STOP_BITS_1 ? "1" : \
197+
(STOP_BITS) == CDC_LINE_CODING_STOP_BITS_1_5 ? "1.5" : \
198+
(STOP_BITS) == CDC_LINE_CODING_STOP_BITS_2 ? "2" : "?" )
199199

200200
// TODO Backward compatible for typos. Maybe removed in the future release
201201
#define CDC_LINE_CONDING_STOP_BITS_1 CDC_LINE_CODING_STOP_BITS_1
@@ -211,11 +211,11 @@ typedef enum {
211211
} cdc_line_coding_parity_t;
212212

213213
#define CDC_LINE_CODING_PARITY_CHAR(PARITY) ( \
214-
PARITY == CDC_LINE_CODING_PARITY_NONE ? 'N' : \
215-
PARITY == CDC_LINE_CODING_PARITY_ODD ? 'O' : \
216-
PARITY == CDC_LINE_CODING_PARITY_EVEN ? 'E' : \
217-
PARITY == CDC_LINE_CODING_PARITY_MARK ? 'M' : \
218-
PARITY == CDC_LINE_CODING_PARITY_SPACE ? 'S' : '?' )
214+
(PARITY) == CDC_LINE_CODING_PARITY_NONE ? 'N' : \
215+
(PARITY) == CDC_LINE_CODING_PARITY_ODD ? 'O' : \
216+
(PARITY) == CDC_LINE_CODING_PARITY_EVEN ? 'E' : \
217+
(PARITY) == CDC_LINE_CODING_PARITY_MARK ? 'M' : \
218+
(PARITY) == CDC_LINE_CODING_PARITY_SPACE ? 'S' : '?' )
219219

220220
//--------------------------------------------------------------------+
221221
// Management Element Notification (Notification Endpoint)

0 commit comments

Comments
 (0)