]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/ConfigurationTemplate/trcHardwarePort.h
Add the APPLICATION_DEFINED port type to the trcHardwarePort.h template.
[freertos] / 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