Version 0.3

Revision:
0:6b91b76ec6c3
Child:
1:43c0cae8d6b0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/const.h	Fri Mar 11 19:28:18 2016 +0000
@@ -0,0 +1,40 @@
+/***********************************
+name:   const.h    Version: 0.3
+author: PE HTL BULME
+email:  pe@bulme.at
+description:
+  Named constants definitions for registers 
+  PCF8563 RTC on HIMBED M0 - LPC11U24 
+***********************************/
+ 
+#ifndef CONST_H
+#define CONST_H
+ 
+// Address of RTC
+const uint8_t RTC8563_ADR_WR = 0xA2;
+const uint8_t RTC8563_ADR_RD = 0xA3;
+// Control and status
+const uint8_t CONTROL1 = 0x00;
+const uint8_t CONTROL2 = 0x01;
+// Time and date
+const uint8_t SECONDS = 0x02;   
+const uint8_t MINUTES = 0x03;
+const uint8_t HOURS = 0x04;
+const uint8_t DAYS = 0x05;
+const uint8_t WEEKDAYS = 0x06;
+const uint8_t MONTHS = 0x07;
+const uint8_t YEARS = 0x08;
+// Alarm
+const uint8_t MINUTE_ALARM = 0x09;
+const uint8_t HOUR_ALARM = 0x0A;
+const uint8_t DAY_ALARM = 0x0B;
+const uint8_t WEEKDAY_ALARM = 0x0C;
+// Clock and timer
+const uint8_t CLOCKOUT_FREQ = 0x0D;
+const uint8_t TIMER_CINTROL = 0x0E;
+
+// Alternativ addressing: base + next address
+//const uint8_t RTC8563_ADR = 0xA2;
+//const uint8_t _READ = 0x01;
+ 
+#endif
\ No newline at end of file