Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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
22  REG16 _pad1;
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
43  REG16 _pad10;
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
59  REG16 _pad18;
60  REG_8 almon; // Alarm Months Register
61  REG_8 _pad19[3];
62  REG16 alyear; // Alarm Years Register
63  REG16 _pad20;
64  REG16 preint; // Prescale Value Register (integer)
65  REG16 _pad21;
66  REG16 prefrac; // Prescale Value Register (fraction)
67  REG16 _pad22;
69 
70 #endif
REG32
#define REG32
Definition: LPC21xx.h:20
REG_8
#define REG_8
Definition: LPC21xx.h:18
rtcRegs_t
Definition: lpcRTC.h:17
REG16
#define REG16
Definition: LPC21xx.h:19