summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkitayam <[email protected]>2021-11-05 20:14:59 +0900
committerkkitayam <[email protected]>2021-11-06 00:06:27 +0900
commite4520e7aa7a0a585d79b8a345525a67cf2f39ef6 (patch)
tree33515c2c4b2fd16e3c18089dcc5f2d549cba4289
parent0b3c8c4a59e993f7f51452b2bd3d0decdc56d6c9 (diff)
Add statements for FreeRTOS
-rw-r--r--hw/bsp/board_mcu.h3
-rw-r--r--hw/bsp/msp432e4/family.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/hw/bsp/board_mcu.h b/hw/bsp/board_mcu.h
index 1e2577de0..ea2f23fe9 100644
--- a/hw/bsp/board_mcu.h
+++ b/hw/bsp/board_mcu.h
@@ -98,6 +98,9 @@
#elif CFG_TUSB_MCU == OPT_MCU_MSP430x5xx
#include "msp430.h"
+#elif CFG_TUSB_MCU == OPT_MCU_MSP432E4xx
+ #include "msp.h"
+
#elif CFG_TUSB_MCU == OPT_MCU_VALENTYUSB_EPTRI
// no header needed
diff --git a/hw/bsp/msp432e4/family.c b/hw/bsp/msp432e4/family.c
index 567d5dc93..b20af563b 100644
--- a/hw/bsp/msp432e4/family.c
+++ b/hw/bsp/msp432e4/family.c
@@ -77,6 +77,9 @@ void board_init(void)
SystemCoreClockUpdate();
#if CFG_TUSB_OS == OPT_OS_NONE
SysTick_Config(SystemCoreClock / 1000);
+#elif CFG_TUSB_OS == OPT_OS_FREERTOS
+ // If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
+ NVIC_SetPriority(USB0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
#endif
/* USR_LED1 PN1 */