update dwc int enable/disable

This commit is contained in:
hathach
2021-10-25 00:39:37 +07:00
parent 4ab931a361
commit 61c80840c3
3 changed files with 38 additions and 15 deletions

View File

@@ -84,4 +84,18 @@
#endif
TU_ATTR_ALWAYS_INLINE
static inline void dcd_dwc2_int_enable(uint8_t rhport)
{
(void) rhport;
NVIC_EnableIRQ(RHPORT_IRQn);
}
TU_ATTR_ALWAYS_INLINE
static inline void dcd_dwc2_int_disable (uint8_t rhport)
{
(void) rhport;
NVIC_DisableIRQ(RHPORT_IRQn);
}
#endif /* DWC2_STM32_H_ */