]> git.sur5r.net Git - freertos/commitdiff
Add the APPLICATION_DEFINED port type to the trcHardwarePort.h template.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 11 Jun 2013 16:11:21 +0000 (16:11 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 11 Jun 2013 16:11:21 +0000 (16:11 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1929 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/ConfigurationTemplate/trcHardwarePort.h

index 0e97b8ec10a026336ce05607099aadd379639b31..0b6ccab540dea840eb1a681d374fd5b06b8c5fa6 100644 (file)
  *****************************************************************************/\r
 \r
 #define PORT_NOT_SET                          -1\r
+#define PORT_APPLICATION_DEFINED                         -2\r
 \r
 /*** Officially supported hardware timer ports *******************************/\r
 #define PORT_HWIndependent                     0\r
 \r
     #define IRQ_PRIORITY_ORDER 0  // lower IRQ priority values are more significant\r
 \r
+#elif (SELECTED_PORT == PORT_APPLICATION_DEFINED)\r
+\r
+       #if !( defined (HWTC_COUNT_DIRECTION) && defined (HWTC_COUNT) && defined (HWTC_PERIOD) && defined (HWTC_DIVISOR) && defined (IRQ_PRIORITY_ORDER) )\r
+               #error SELECTED_PORT is PORT_APPLICATION_DEFINED but not all of the necessary constants have been defined.\r
+       #endif\r
+\r
+\r
 #elif (SELECTED_PORT != PORT_NOT_SET)\r
 \r
     #error "SELECTED_PORT had unsupported value!"\r