Remove tu_stm32_sof_cb

This commit is contained in:
Mengsk 2023-01-02 12:06:26 +01:00
parent 7228239eb9
commit 69475cd1bf
2 changed files with 0 additions and 4 deletions

View File

@ -649,7 +649,6 @@ void dcd_int_handler(uint8_t rhport) {
/* Put SOF flag at the beginning of ISR in case to get least amount of jitter if it is used for timing purposes */
if(int_status & USB_ISTR_SOF) {
clear_istr_bits(USB_ISTR_SOF);
if (tu_stm32_sof_cb) tu_stm32_sof_cb();
dcd_event_sof(0, USB->FNR & USB_FNR_FN, true);
}

View File

@ -119,9 +119,6 @@
// Volatile is also needed to prevent the optimizer from changing access to 32-bit (as 32-bit access is forbidden)
static __IO uint16_t * const pma = (__IO uint16_t*)USB_PMAADDR;
// This callback is called on SOF and can be used to e.g. capture a timer value for timing purposes
TU_ATTR_WEAK void tu_stm32_sof_cb(void);
// prototypes
TU_ATTR_ALWAYS_INLINE static inline __IO uint16_t* pcd_ep_rx_cnt_ptr(USB_TypeDef * USBx, uint32_t bEpNum);
TU_ATTR_ALWAYS_INLINE static inline __IO uint16_t* pcd_ep_tx_cnt_ptr(USB_TypeDef * USBx, uint32_t bEpNum);