Skip to content

Commit 6021803

Browse files
committed
fix ci
1 parent ec093be commit 6021803

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/portable/renesas/rusb2/dcd_rusb2.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,16 @@
4949
#define D0FIFOCTR CFIFOCTR
5050
#define D0FIFOCTR_b CFIFOCTR_b
5151
#endif
52+
53+
// Application API for setting IRQ number
54+
void tud_int_set_irqnum(uint8_t rhport, int32_t irqnum) {
55+
rusb2_controller[rhport].irqnum = irqnum;
56+
}
57+
5258
#else
5359
#error "Unsupported MCU"
5460
#endif
5561

56-
//--------------------------------------------------------------------+
57-
// Application API for setting IRQ number
58-
//--------------------------------------------------------------------+
59-
void tud_int_set_irqnum(uint8_t rhport, int32_t irqnum) {
60-
rusb2_controller[rhport].irqnum = irqnum;
61-
}
62-
6362
//--------------------------------------------------------------------+
6463
// MACRO TYPEDEF CONSTANT ENUM
6564
//--------------------------------------------------------------------+

src/portable/renesas/rusb2/rusb2_ra.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@ typedef struct {
6464
#if defined(BSP_MCU_GROUP_RA6M5) || defined(BSP_MCU_GROUP_RA6M3) || (BSP_CFG_MCU_PART_SERIES == 8)
6565
#define RUSB2_SUPPORT_HIGHSPEED
6666
#define RUSB2_CONTROLLER_COUNT 2
67+
68+
#define rusb2_is_highspeed_rhport(_p) (_p == 1)
69+
#define rusb2_is_highspeed_reg(_reg) (_reg == RUSB2_REG(1))
6770
#else
6871
#define RUSB2_CONTROLLER_COUNT 1
72+
73+
#define rusb2_is_highspeed_rhport(_p) (false)
74+
#define rusb2_is_highspeed_reg(_reg) (false)
6975
#endif
7076

7177
// USBFS_INT_IRQn and USBHS_USB_INT_RESUME_IRQn are generated by FSP
@@ -78,9 +84,6 @@ static rusb2_controller_t rusb2_controller[] = {
7884

7985
#define RUSB2_REG(_p) ((rusb2_reg_t*) rusb2_controller[_p].reg_base)
8086

81-
#define rusb2_is_highspeed_rhport(_p) (_p == 1)
82-
#define rusb2_is_highspeed_reg(_reg) (_reg == RUSB2_REG(1))
83-
8487
//--------------------------------------------------------------------+
8588
// RUSB2 API
8689
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)