mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
renesas_ra: fix wrong ifdef
Since CFG_TUSB_RHPORT1_MODE is always defined now for backwards compatibility
This commit is contained in:
parent
cdbd3a0b4e
commit
2b735ee8f5
@ -1,16 +1,16 @@
|
||||
#include "tusb_option.h"
|
||||
#include "rusb2_ra.h"
|
||||
|
||||
#ifdef CFG_TUSB_RHPORT0_MODE
|
||||
#if (CFG_TUSB_RHPORT0_MODE != 0)
|
||||
IRQn_Type _usb_fs_irqn = USBFS_INT_IRQn;
|
||||
void tud_set_irq_usbfs(IRQn_Type q) {
|
||||
_usb_fs_irqn = q;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CFG_TUSB_RHPORT1_MODE
|
||||
#if (CFG_TUSB_RHPORT1_MODE != 0)
|
||||
IRQn_Type _usb_hs_irqn = USBHS_USB_INT_RESUME_IRQn;
|
||||
void tud_set_irq_usbhs(IRQn_Type q) {
|
||||
_usb_hs_irqn = q;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user