Skip to content

Commit 69475cd

Browse files
committed
Remove tu_stm32_sof_cb
1 parent 7228239 commit 69475cd

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ void dcd_int_handler(uint8_t rhport) {
649649
/* Put SOF flag at the beginning of ISR in case to get least amount of jitter if it is used for timing purposes */
650650
if(int_status & USB_ISTR_SOF) {
651651
clear_istr_bits(USB_ISTR_SOF);
652-
if (tu_stm32_sof_cb) tu_stm32_sof_cb();
653652
dcd_event_sof(0, USB->FNR & USB_FNR_FN, true);
654653
}
655654

src/portable/st/stm32_fsdev/dcd_stm32_fsdev_pvt_st.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@
119119
// Volatile is also needed to prevent the optimizer from changing access to 32-bit (as 32-bit access is forbidden)
120120
static __IO uint16_t * const pma = (__IO uint16_t*)USB_PMAADDR;
121121

122-
// This callback is called on SOF and can be used to e.g. capture a timer value for timing purposes
123-
TU_ATTR_WEAK void tu_stm32_sof_cb(void);
124-
125122
// prototypes
126123
TU_ATTR_ALWAYS_INLINE static inline __IO uint16_t* pcd_ep_rx_cnt_ptr(USB_TypeDef * USBx, uint32_t bEpNum);
127124
TU_ATTR_ALWAYS_INLINE static inline __IO uint16_t* pcd_ep_tx_cnt_ptr(USB_TypeDef * USBx, uint32_t bEpNum);

0 commit comments

Comments
 (0)