From 8767b38d936cdc11205f9459e2d632801751598f Mon Sep 17 00:00:00 2001 From: richardbarry Date: Thu, 6 Jun 2013 12:54:00 +0000 Subject: [PATCH] Ensure RM48 demo compiles in co-operative mode. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1912 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../CORTEX_R4_RM48_TMS570_CCS5/startup/sys_startup.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/startup/sys_startup.c b/FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/startup/sys_startup.c index c4679c53e..66f0ffaba 100644 --- a/FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/startup/sys_startup.c +++ b/FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/startup/sys_startup.c @@ -1,4 +1,4 @@ -/** @file sys_startup.c +/** @file sys_startup.c * @brief Startup Source File * @date 05.November.2010 * @version 1.01.001 @@ -23,6 +23,7 @@ #include "sys_vim.h" #include "sys_core.h" #include "sys_memory.h" +#include "FreeRTOS.h" /* External Functions */ @@ -43,7 +44,11 @@ static const t_isrFuncPTR s_vim_init[] = phantomInterrupt, esmHighLevelInterrupt, phantomInterrupt, - vPortPreemptiveTick, /* RTI */ + #if configUSE_PREEMPTION == 0 + vPortNonPreemptiveTick, /* RTI */ + #else + vPortPreemptiveTick, /* RTI */ + #endif phantomInterrupt, phantomInterrupt, phantomInterrupt, -- 2.39.5