Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lpcRTC.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * $RCSfile$
4  * $Revision$
5  *
6  * Header file for Philips LPC ARM Processors.
7  * Copyright 2004 R O SoftWare
8  *
9  * No guarantees, warrantees, or promises, implied or otherwise.
10  * May be used for hobby or commercial purposes provided copyright
11  * notice remains intact.
12  *
13  *****************************************************************************/
14 #ifndef INC_LPC_RTC_H
15 #define INC_LPC_RTC_H
16 
17 typedef struct
18 {
19  REG_8 ilr; // Interrupt Location Register
20  REG_8 _pad0[3];
21  REG16 ctc; // Clock Tick Counter
23  REG_8 ccr; // Clock Control Register
24  REG_8 _pad2[3];
25  REG_8 ciir; // Counter Increment Interrupt Register
26  REG_8 _pad3[3];
27  REG_8 amr; // Alarm Mask Register
28  REG_8 _pad4[3];
29  REG32 ctime0; // Consolidated Time Register 0
30  REG32 ctime1; // Consolidated Time Register 1
31  REG32 ctime2; // Consolidated Time Register 2
32  REG_8 sec; // Seconds Register
33  REG_8 _pad5[3];
34  REG_8 min; // Minutes Register
35  REG_8 _pad6[3];
36  REG_8 hour; // Hours Register
37  REG_8 _pad7[3];
38  REG_8 dom; // Day Of Month Register
39  REG_8 _pad8[3];
40  REG_8 dow; // Day Of Week Register
41  REG_8 _pad9[3];
42  REG16 doy; // Day Of Year Register
44  REG_8 month; // Months Register
45  REG_8 _pad11[3];
46  REG16 year; // Years Register
47  REG32 _pad12[8];
48  REG_8 alsec; // Alarm Seconds Register
49  REG_8 _pad13[3];
50  REG_8 almin; // Alarm Minutes Register
51  REG_8 _pad14[3];
52  REG_8 alhour; // Alarm Hours Register
53  REG_8 _pad15[3];
54  REG_8 aldom; // Alarm Day Of Month Register
55  REG_8 _pad16[3];
56  REG_8 aldow; // Alarm Day Of Week Register
57  REG_8 _pad17[3];
58  REG16 aldoy; // Alarm Day Of Year Register
60  REG_8 almon; // Alarm Months Register
61  REG_8 _pad19[3];
62  REG16 alyear; // Alarm Years Register
64  REG16 preint; // Prescale Value Register (integer)
66  REG16 prefrac; // Prescale Value Register (fraction)
68 } rtcRegs_t;
69 
70 #endif
REG32 ctime1
Definition: lpcRTC.h:30
#define REG32
Definition: LPC21xx.h:20
#define REG_8
Definition: LPC21xx.h:18
REG16 _pad1
Definition: lpcRTC.h:22
REG_8 amr
Definition: lpcRTC.h:27
REG16 preint
Definition: lpcRTC.h:64
REG16 year
Definition: lpcRTC.h:46
REG16 _pad18
Definition: lpcRTC.h:59
REG_8 ccr
Definition: lpcRTC.h:23
REG16 _pad22
Definition: lpcRTC.h:67
REG32 ctime0
Definition: lpcRTC.h:29
REG16 _pad20
Definition: lpcRTC.h:63
REG_8 almin
Definition: lpcRTC.h:50
REG_8 alsec
Definition: lpcRTC.h:48
REG_8 aldom
Definition: lpcRTC.h:54
REG16 ctc
Definition: lpcRTC.h:21
REG_8 dow
Definition: lpcRTC.h:40
REG_8 month
Definition: lpcRTC.h:44
REG16 _pad10
Definition: lpcRTC.h:43
REG_8 dom
Definition: lpcRTC.h:38
REG16 aldoy
Definition: lpcRTC.h:58
REG32 ctime2
Definition: lpcRTC.h:31
REG_8 ciir
Definition: lpcRTC.h:25
REG_8 alhour
Definition: lpcRTC.h:52
REG_8 almon
Definition: lpcRTC.h:60
REG16 _pad21
Definition: lpcRTC.h:65
REG_8 hour
Definition: lpcRTC.h:36
REG_8 aldow
Definition: lpcRTC.h:56
REG_8 min
Definition: lpcRTC.h:34
#define REG16
Definition: LPC21xx.h:19
REG_8 ilr
Definition: lpcRTC.h:19
REG16 doy
Definition: lpcRTC.h:42
REG_8 sec
Definition: lpcRTC.h:32
REG16 alyear
Definition: lpcRTC.h:62
REG16 prefrac
Definition: lpcRTC.h:66