/* --------------------------------------------------------------------------- * testuart2.h (c) 2008 Micro-key bv * --------------------------------------------------------------------------- * Micro-key bv * Industrieweg 28, 9804 TG Noordhorn * Postbus 92, 9800 AB Zuidhorn * The Netherlands * Tel: +31 594 503020 * Fax: +31 594 505825 * Email: support@microkey.nl * Web: www.microkey.nl * --------------------------------------------------------------------------- * Description: * Headerfile for testBus.c * --------------------------------------------------------------------------- * Version(s): 0.1, Mar 10, 2008, MMi * Creation. * --------------------------------------------------------------------------- */ #ifndef TESTUART2_H_ #define TESTUART2_H_ /* --------------------------------------------------------------------------- * System include files. * --------------------------------------------------------------------------- */ #include "lpc23xx.h" #include "types.h" /* --------------------------------------------------------------------------- * Application include files. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Constant and macro definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Type definitions. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Variable declarations. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Function declarations. * --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- * Function: testBUSStart * * Main Function of BUS Tests * * Parameters: void * * Return: BOOLEAN - Test Result * --------------------------------------------------------------------------- */ BOOLEAN testbusStart(); /* --------------------------------------------------------------------------- * Function: DoBUS1Test / DoBUS2Test * * Functions to Test both Busses * * Parameters: void * * Return: BOOLEAN - single Test Result * --------------------------------------------------------------------------- */ BOOLEAN DoBUS1Test (void); BOOLEAN DoBUS2Test (void); /* --------------------------------------------------------------------------- * Function: Uart2LoopBackTest / Uart3LoopBackTest * * Functions to set either Uart2 or Uart3 in a Loopback Mode to receive it's * own sent Message. Functions contain a Test that checks wether the received * Message equals the sent one. * * Parameters: void * * Return: BOOLEAN - Test Result * --------------------------------------------------------------------------- */ BOOLEAN Uart2LoopBackTest (void); BOOLEAN Uart3LoopBackTest (void); #endif /*TESTUART2_H_*/