Merge pull request #1381 from hathach/add-sof-isr

Add SOF IRQ Handler
This commit is contained in:
Ha Thach
2022-05-31 22:25:14 +07:00
committed by GitHub
38 changed files with 631 additions and 2821 deletions

View File

@@ -33,6 +33,8 @@
extern "C" {
#endif
// typedef void (*tud_sof_isr_t) (uint32_t frame_count);
//--------------------------------------------------------------------+
// Application API
//--------------------------------------------------------------------+
@@ -93,6 +95,10 @@ bool tud_disconnect(void);
// Return false on unsupported MCUs
bool tud_connect(void);
// Set Start-of-frame (1ms interval) IRQ handler
// NULL means disabled, frame_count may not be supported on mcus
// void tud_sof_isr_set(tud_sof_isr_t sof_isr);
// Carry out Data and Status stage of control transfer
// - If len = 0, it is equivalent to sending status only
// - If len > wLength : it will be truncated