Skip to content

Commit 320903f

Browse files
committed
update tinyusb to commit 1fe86f654fdca8a4a555737f34215582a812b481
1 parent c0ba78e commit 320903f

30 files changed

+2024
-1001
lines changed

Diff for: src/class/audio/audio_device.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
18401840
audio->feedback.frame_shift = desc_ep->bInterval -1;
18411841

18421842
// Enable SOF interrupt if callback is implemented
1843-
if (tud_audio_feedback_interval_isr) usbd_sof_enable(rhport, true);
1843+
if (tud_audio_feedback_interval_isr) usbd_sof_enable(rhport, SOF_CONSUMER_AUDIO, true);
18441844
}
18451845
#endif
18461846
#endif // CFG_TUD_AUDIO_ENABLE_EP_OUT
@@ -1914,7 +1914,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
19141914
break;
19151915
}
19161916
}
1917-
if (disable) usbd_sof_enable(rhport, false);
1917+
if (disable) usbd_sof_enable(rhport, SOF_CONSUMER_AUDIO, false);
19181918
#endif
19191919

19201920
#if CFG_TUD_AUDIO_ENABLE_EP_IN && CFG_TUD_AUDIO_EP_IN_FLOW_CONTROL

Diff for: src/class/cdc/cdc_device.c

+2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ void cdcd_reset(uint8_t rhport)
300300

301301
tu_memclr(p_cdc, ITF_MEM_RESET_SIZE);
302302
tu_fifo_clear(&p_cdc->rx_ff);
303+
#if !CFG_TUD_CDC_PERSISTENT_TX_BUFF
303304
tu_fifo_clear(&p_cdc->tx_ff);
305+
#endif
304306
tu_fifo_set_overwritable(&p_cdc->tx_ff, true);
305307
}
306308
}

Diff for: src/class/cdc/cdc_device.h

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
#define CFG_TUD_CDC_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
4242
#endif
4343

44+
// By default the TX fifo buffer is cleared on connect / bus reset.
45+
// Enable this to persist any data in the fifo instead.
46+
#ifndef CFG_TUD_CDC_PERSISTENT_TX_BUFF
47+
#define CFG_TUD_CDC_PERSISTENT_TX_BUFF (0)
48+
#endif
49+
4450
#ifdef __cplusplus
4551
extern "C" {
4652
#endif

Diff for: src/class/hid/hid.h

+284-201
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)