Skip to content

Commit

Permalink
renesas_ra: fix existing boards
Browse files Browse the repository at this point in the history
TODO: find a way to add
CFG_TUSB_RHPORT0_MODE and/of CFG_TUSB_RHPORT1_MODE programmatically from the board package
  • Loading branch information
facchinm committed Apr 28, 2023
1 parent b83350f commit 04afe0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hw/bsp/ra/boards/ra4m1_ek/fsp_cfg/vector_data.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* vector numbers are configurable/dynamic, hence this, it will be used inside the port */
#define TU_IRQn 0
#define USBFS_INT_IRQn 0
#define USBFS_RESUME_IRQn 1
#define USBFS_FIFO_0_IRQn 2
#define USBFS_FIFO_1_IRQn 3
2 changes: 1 addition & 1 deletion hw/bsp/ra/boards/ra4m1_ek/ra4m1_ek.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void board_init(void)

#if CFG_TUSB_OS == OPT_OS_FREERTOS
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
NVIC_SetPriority(TU_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_INT_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_RESUME_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_FIFO_0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_FIFO_1_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
Expand Down
2 changes: 1 addition & 1 deletion hw/bsp/ra/boards/ra4m3_ek/fsp_cfg/vector_data.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* vector numbers are configurable/dynamic, hence this, it will be used inside the port */
#define TU_IRQn 0
#define USBFS_INT_IRQn 0
#define USBFS_RESUME_IRQn 1
#define USBFS_FIFO_0_IRQn 2
#define USBFS_FIFO_1_IRQn 3
2 changes: 1 addition & 1 deletion hw/bsp/ra/boards/ra4m3_ek/ra4m3_ek.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void board_init(void)

#if CFG_TUSB_OS == OPT_OS_FREERTOS
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
NVIC_SetPriority(TU_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_INT_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_RESUME_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_FIFO_0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_SetPriority(USBFS_FIFO_1_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
Expand Down

0 comments on commit 04afe0c

Please sign in to comment.