Add the APPLICATION_DEFINED port type to the trcHardwarePort.h template.

This commit is contained in:
Richard Barry 2013-06-11 16:11:21 +00:00
parent 62c0ae0926
commit 3b004f9900

View File

@ -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!"