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
src/Drivers/rtc.h
- Committer:
- davidjhoward
- Date:
- 2016-09-14
- Revision:
- 59:c68c5bc9d077
File content as of revision 59:c68c5bc9d077:
#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_