Added Software projects

git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@55 9fe90eed-be63-e94b-8204-d34ff4c2ff93
This commit is contained in:
Matthias
2008-12-23 10:34:08 +00:00
parent ee5a771818
commit 373a8c32b2
348 changed files with 86781 additions and 0 deletions
+83
View File
@@ -0,0 +1,83 @@
/* ---------------------------------------------------------------------------
* rtc.h - v0.1 (c) 2007 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: Real Time Clock interface.
* ---------------------------------------------------------------------------
* Version(s): 0.1, 10-09-2007, Marcel Mulder.
* Creation.
* ---------------------------------------------------------------------------
*/
#ifndef __RTC_H__
#define __RTC_H__
/** \file rtc.h
\brief Real Time Clock interface.
*/
/* ---------------------------------------------------------------------------
* System include files.
* ---------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------
* Application include files.
* ---------------------------------------------------------------------------
*/
#include "lpc23xx.h"
#include "types.h"
/* ---------------------------------------------------------------------------
* Constant and macro definitions.
* ---------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------
* Type definitions.
* ---------------------------------------------------------------------------
*/
typedef struct t_RTC {
UINT8 sec; /**< Seconds */
UINT8 min; /**< Minutes */
UINT8 hour; /**< Hours */
UINT8 day; /**< Day */
UINT8 dow; /**< Day of week (0..7) */
UINT8 mon; /**< Month */
UINT8 dom; /**< Day of month */
UINT16 year; /**< Year */
UINT16 doy; /**< Day of year */
} t_rtc;
/* ---------------------------------------------------------------------------
* Variable declarations.
* ---------------------------------------------------------------------------
*/
/* ---------------------------------------------------------------------------
* Function declarations.
* ---------------------------------------------------------------------------
*/
/** \brief Initialize logging interface.*/
void rtcInit (void);
/** \brief Read real time clock.*/
void rtcRead (
t_rtc * time
);
/** \brief Write to real time clock.*/
void rtcWrite (
t_rtc * time
);
// Alarms
#endif /* __RTC_H__ */