summaryrefslogtreecommitdiff
path: root/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-04-03 09:50:08 +0200
committerReinhard Panhuber <[email protected]>2021-04-03 09:50:08 +0200
commita1efd416491fd2deecea46cd466e31b4a02b9734 (patch)
treedfda074b32926050da8460d79b36c34e2e696d42 /examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
parent9b2ddd9cc6401b80350179d26e842557f9b60aaf (diff)
parentab4d30fd6bca02c73eb9b4ff82db0b2b0f403344 (diff)
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
Diffstat (limited to 'examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h')
-rw-r--r--examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h b/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
index 7b2b93d7b..b76d59706 100644
--- a/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
+++ b/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
@@ -132,6 +132,16 @@ extern uint32_t SystemCoreClock;
#define configASSERT( x )
#endif
+#ifdef __RX__
+/* Renesas RX series */
+#define vSoftwareInterruptISR INT_Excep_ICU_SWINT
+#define vTickISR INT_Excep_CMT0_CMI0
+#define configPERIPHERAL_CLOCK_HZ (configCPU_CLOCK_HZ/2)
+#define configKERNEL_INTERRUPT_PRIORITY 1
+#define configMAX_SYSCALL_INTERRUPT_PRIORITY 4
+
+#else
+
/* FreeRTOS hooks to NVIC vectors */
#define xPortPendSVHandler PendSV_Handler
#define xPortSysTickHandler SysTick_Handler
@@ -164,4 +174,6 @@ to all Cortex-M ports, and do not rely on any particular library functions. */
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
+#endif
+
#endif /* __FREERTOS_CONFIG__H */