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.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/Drivers/rtc.h
- Revision:
- 59:c68c5bc9d077
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Drivers/rtc.h Wed Sep 14 22:26:43 2016 +0000 @@ -0,0 +1,26 @@ +#ifndef _RTC_H_ +#define _RTC_H_ + +// ------------------------------------------------------------------------------------------------- +// globals + +#define RTC_ADDR 0xDE // control byte: 0b1101111(R/W) -> U9 MCP7940N + +extern int rtc_verbose; + +// ------------------------------------------------------------------------------------------------- +// function prototypes + +void rtc_init(void); +void rtc_regs(void); + +void rtc_print(void); + +void rtc_get_time(int* iyr, int* imo, int* idy, int* ihr, int* imn, int* isc); +void rtc_set_time(int iyr, int imo, int idy, int ihr, int imn, int isc); + +void rtc_set(const char* s); + +// ------------------------------------------------------------------------------------------------- + +#endif // _RTC_H_