]> git.sur5r.net Git - freertos/commitdiff
Ensure RM48 demo compiles in co-operative mode.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Jun 2013 12:54:00 +0000 (12:54 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Jun 2013 12:54:00 +0000 (12:54 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1912 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/startup/sys_startup.c

index c4679c53edb36fb3f054a5cb8163059b7a20be2d..66f0ffabafb0e7e2d8b3d884d46119cc4870216b 100644 (file)
@@ -1,4 +1,4 @@
-/** @file sys_startup.c \r
+/** @file sys_startup.c\r
 *   @brief Startup Source File\r
 *   @date 05.November.2010\r
 *   @version 1.01.001\r
@@ -23,6 +23,7 @@
 #include "sys_vim.h"\r
 #include "sys_core.h"\r
 #include "sys_memory.h"\r
+#include "FreeRTOS.h"\r
 \r
 \r
 /* External Functions */\r
@@ -43,7 +44,11 @@ static const t_isrFuncPTR s_vim_init[] =
     phantomInterrupt,\r
     esmHighLevelInterrupt,\r
     phantomInterrupt,\r
-    vPortPreemptiveTick,               /* RTI */\r
+       #if configUSE_PREEMPTION == 0\r
+               vPortNonPreemptiveTick, /* RTI */\r
+       #else\r
+               vPortPreemptiveTick,    /* RTI */\r
+       #endif\r
     phantomInterrupt,\r
     phantomInterrupt,\r
     phantomInterrupt,\r