*****************************************************************************/\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