![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
rtc function
Dependencies: Date RTC8563 mbed
const.h@0:8a695c71f11b, 2015-04-16 (annotated)
- Committer:
- wolpra98
- Date:
- Thu Apr 16 10:27:29 2015 +0000
- Revision:
- 0:8a695c71f11b
rtc function
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolpra98 | 0:8a695c71f11b | 1 | /*********************************** |
wolpra98 | 0:8a695c71f11b | 2 | name: const.h Version: 0.1 |
wolpra98 | 0:8a695c71f11b | 3 | author: PE HTL BULME |
wolpra98 | 0:8a695c71f11b | 4 | email: pe@bulme.at |
wolpra98 | 0:8a695c71f11b | 5 | description: |
wolpra98 | 0:8a695c71f11b | 6 | Named constants definitions for registers |
wolpra98 | 0:8a695c71f11b | 7 | PCF8563 RTC on HIMBED M0 - LPC11U24 |
wolpra98 | 0:8a695c71f11b | 8 | ***********************************/ |
wolpra98 | 0:8a695c71f11b | 9 | |
wolpra98 | 0:8a695c71f11b | 10 | #ifndef CONST_H |
wolpra98 | 0:8a695c71f11b | 11 | #define CONST_H |
wolpra98 | 0:8a695c71f11b | 12 | |
wolpra98 | 0:8a695c71f11b | 13 | // Address of RTC |
wolpra98 | 0:8a695c71f11b | 14 | const int RTC8563_ADR = 0xA2; |
wolpra98 | 0:8a695c71f11b | 15 | // Control and status |
wolpra98 | 0:8a695c71f11b | 16 | const int CONTROL1 = 0x00; |
wolpra98 | 0:8a695c71f11b | 17 | const int CONTROL2 = 0x01; |
wolpra98 | 0:8a695c71f11b | 18 | // Time and date |
wolpra98 | 0:8a695c71f11b | 19 | const int SECONDS = 0x02; |
wolpra98 | 0:8a695c71f11b | 20 | const int MINUTES = 0x03; |
wolpra98 | 0:8a695c71f11b | 21 | const int HOURS = 0x04; |
wolpra98 | 0:8a695c71f11b | 22 | const int DAYS = 0x05; |
wolpra98 | 0:8a695c71f11b | 23 | const int WEEKDAYS = 0x06; |
wolpra98 | 0:8a695c71f11b | 24 | const int MONTHS = 0x07; |
wolpra98 | 0:8a695c71f11b | 25 | const int YEARS = 0x08; |
wolpra98 | 0:8a695c71f11b | 26 | // Alarm |
wolpra98 | 0:8a695c71f11b | 27 | const int MINUTE_ALARM = 0x09; |
wolpra98 | 0:8a695c71f11b | 28 | const int HOUR_ALARM = 0x0A; |
wolpra98 | 0:8a695c71f11b | 29 | const int DAY_ALARM = 0x0B; |
wolpra98 | 0:8a695c71f11b | 30 | const int WEEKDAY_ALARM = 0x0C; |
wolpra98 | 0:8a695c71f11b | 31 | // Clock and timer |
wolpra98 | 0:8a695c71f11b | 32 | const int CLOCKOUT_FREQ = 0x0D; |
wolpra98 | 0:8a695c71f11b | 33 | const int TIMER_CINTROL = 0x0E; |
wolpra98 | 0:8a695c71f11b | 34 | const int _READ = 0x01; |
wolpra98 | 0:8a695c71f11b | 35 | |
wolpra98 | 0:8a695c71f11b | 36 | #endif |