mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
fix ci
This commit is contained in:
parent
ec093bebad
commit
6021803d58
@ -49,17 +49,16 @@
|
||||
#define D0FIFOCTR CFIFOCTR
|
||||
#define D0FIFOCTR_b CFIFOCTR_b
|
||||
#endif
|
||||
|
||||
// Application API for setting IRQ number
|
||||
void tud_int_set_irqnum(uint8_t rhport, int32_t irqnum) {
|
||||
rusb2_controller[rhport].irqnum = irqnum;
|
||||
}
|
||||
|
||||
#else
|
||||
#error "Unsupported MCU"
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Application API for setting IRQ number
|
||||
//--------------------------------------------------------------------+
|
||||
void tud_int_set_irqnum(uint8_t rhport, int32_t irqnum) {
|
||||
rusb2_controller[rhport].irqnum = irqnum;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -64,8 +64,14 @@ typedef struct {
|
||||
#if defined(BSP_MCU_GROUP_RA6M5) || defined(BSP_MCU_GROUP_RA6M3) || (BSP_CFG_MCU_PART_SERIES == 8)
|
||||
#define RUSB2_SUPPORT_HIGHSPEED
|
||||
#define RUSB2_CONTROLLER_COUNT 2
|
||||
|
||||
#define rusb2_is_highspeed_rhport(_p) (_p == 1)
|
||||
#define rusb2_is_highspeed_reg(_reg) (_reg == RUSB2_REG(1))
|
||||
#else
|
||||
#define RUSB2_CONTROLLER_COUNT 1
|
||||
|
||||
#define rusb2_is_highspeed_rhport(_p) (false)
|
||||
#define rusb2_is_highspeed_reg(_reg) (false)
|
||||
#endif
|
||||
|
||||
// USBFS_INT_IRQn and USBHS_USB_INT_RESUME_IRQn are generated by FSP
|
||||
@ -78,9 +84,6 @@ static rusb2_controller_t rusb2_controller[] = {
|
||||
|
||||
#define RUSB2_REG(_p) ((rusb2_reg_t*) rusb2_controller[_p].reg_base)
|
||||
|
||||
#define rusb2_is_highspeed_rhport(_p) (_p == 1)
|
||||
#define rusb2_is_highspeed_reg(_reg) (_reg == RUSB2_REG(1))
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// RUSB2 API
|
||||
//--------------------------------------------------------------------+
|
||||
|
Loading…
x
Reference in New Issue
Block a user