Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RTC8564.h
00001 #define RTC8564NB_ADR 0xA2 00002 00003 #define CONTROL1 0x00 00004 #define CONTROL2 0x01 00005 #define SECONDS 0x02 00006 #define MINUTES 0x03 00007 #define HOURS 0x04 00008 #define DAYS 0x05 00009 #define WEEKDAYS 0x06 00010 #define MONTHS 0x07 00011 #define YEARS 0x08 00012 #define MINUTE_ALARM 0x09 00013 #define HOUR_ALARM 0x0A 00014 #define DAY_ALARM 0x0B 00015 #define WEEKDAY_ALARM 0x0C 00016 #define CLOCKOUT_FREQ 0x0D 00017 #define TIMER_CONTROL 0x0E 00018 #define TIMER 0x0F 00019 #define _READ 0x01 00020 00021 00022 void rtc_write(char address, char value); 00023 char rtc_read(char address); 00024 void time_just(); 00025 void rtc_setdaytime(char y[3], char m[3], char d[3], char h[3], char min[3], char s[3], char week_val[2]);
Generated on Fri Jul 15 2022 21:20:48 by
1.7.2