summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-06-11 16:11:21 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-06-11 16:11:21 +0000
commit15d44b8661eaa52c31df127fcd7859de0cfe6ad3 (patch)
tree92c8e0f9bb8d15c5c5bf64fb4fa1cc4888cc11ec /FreeRTOS-Plus
parent37e55a2bef9e226367270df31fd7c6e9da6231ea (diff)
downloadfreertos-15d44b8661eaa52c31df127fcd7859de0cfe6ad3.tar.gz
Add the APPLICATION_DEFINED port type to the trcHardwarePort.h template.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@1929 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS-Plus')
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/ConfigurationTemplate/trcHardwarePort.h8
1 files changed, 8 insertions, 0 deletions
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!"