mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-30 17:14:14 +01:00
24 lines
445 B
C
24 lines
445 B
C
#ifndef RTC_H__
|
|
#define RTC_H__
|
|
|
|
|
|
#include "sys.h"
|
|
|
|
|
|
#define RTC_ADDR (0xDE)
|
|
|
|
#define RTC_RTCSEC (0x00)
|
|
#define RTC_RTCSEC_ST (1 << 7)
|
|
#define RTC_RTCMIN (0x01)
|
|
#define RTC_RTCWKDAY (0x03)
|
|
#define RTC_RTCWKDAY_OSCRUN (1 << 5)
|
|
#define RTC_RTCWKDAY_VBAT (1 << 3)
|
|
|
|
|
|
uint8_t rtc_set_time (uint8_t *rtc_data);
|
|
uint8_t rtc_get_time (uint8_t *rtc_data);
|
|
void rtc_init (void);
|
|
|
|
|
|
#endif
|