Files
Matthias 6cc948eef8 Moved remotely
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@113 9fe90eed-be63-e94b-8204-d34ff4c2ff93
2009-01-12 08:38:14 +00:00

75 lines
2.6 KiB
C

/* ---------------------------------------------------------------------------
* logging.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:
* ---------------------------------------------------------------------------
* Version(s): 0.1, Nov 28, 2008, MMi
* Creation.
* ---------------------------------------------------------------------------
*/
#ifndef LOGGING_H_
#define LOGGING_H_
/* ---------------------------------------------------------------------------
* System include files.
* ---------------------------------------------------------------------------
*/
#include "LPC23xx.h"
#include "types.h"
/* ---------------------------------------------------------------------------
* Application include files.
* ---------------------------------------------------------------------------
*/
#include "serial.h"
#include "SerOut.h"
#include "fat_public.h"
#include "fat_intern.h"
/* ---------------------------------------------------------------------------
* Constant and macro definitions.
* ---------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------
* Type definitions.
* ---------------------------------------------------------------------------
*/
typedef enum _t_logSource
{
LogInput = 0,
LogOutput = 1
} t_logSource;
/* ---------------------------------------------------------------------------
* Variable declarations.
* ---------------------------------------------------------------------------
*/
BOOLEAN LogFlag;
FATFS SD_CARD;
FIL log_file;
/* ---------------------------------------------------------------------------
* Function declarations.
* ---------------------------------------------------------------------------
*/
void enableLog (void);
void disableLog (void);
void startLog (UINT32 serialnumber);
void stopLog (void);
void writeLog (t_logSource source, t_serial_devices ComPort, Messagetype_t urgency, char * Message);
void listLog (char* path);
char * formatFiledate (UINT16 date);
char * formatFiletime (UINT16 date);
#endif /*LOGGING_H_*/