From 524f48137d51c5839a866e590e93a9645862b660 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Tue, 11 Jun 2013 16:11:21 +0000 Subject: [PATCH] Add the APPLICATION_DEFINED port type to the trcHardwarePort.h template. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1929 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../ConfigurationTemplate/trcHardwarePort.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/ConfigurationTemplate/trcHardwarePort.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/ConfigurationTemplate/trcHardwarePort.h index 0e97b8ec1..0b6ccab54 100644 --- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/ConfigurationTemplate/trcHardwarePort.h +++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/ConfigurationTemplate/trcHardwarePort.h @@ -103,6 +103,7 @@ *****************************************************************************/ #define PORT_NOT_SET -1 +#define PORT_APPLICATION_DEFINED -2 /*** Officially supported hardware timer ports *******************************/ #define PORT_HWIndependent 0 @@ -370,6 +371,13 @@ #define IRQ_PRIORITY_ORDER 0 // lower IRQ priority values are more significant +#elif (SELECTED_PORT == PORT_APPLICATION_DEFINED) + + #if !( defined (HWTC_COUNT_DIRECTION) && defined (HWTC_COUNT) && defined (HWTC_PERIOD) && defined (HWTC_DIVISOR) && defined (IRQ_PRIORITY_ORDER) ) + #error SELECTED_PORT is PORT_APPLICATION_DEFINED but not all of the necessary constants have been defined. + #endif + + #elif (SELECTED_PORT != PORT_NOT_SET) #error "SELECTED_PORT had unsupported value!" -- 2.39.5