a0ccd623c6
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@110 9fe90eed-be63-e94b-8204-d34ff4c2ff93
95 lines
3.3 KiB
C
95 lines
3.3 KiB
C
/* ---------------------------------------------------------------------------
|
|
* 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_*/
|