}
/* define CONFIG_RTC in platform's config.h to hook this into timer.c */
-uint8_t rtc_secs(void)
+uint8_t platform_rtc_secs(void)
{
uint8_t buffer;
ds1302_read_clock(&buffer, 1); /* read out only the seconds value */
/* public interface */
void ds1302_init(void);
-uint8_t rtc_secs(void);
+uint8_t platform_rtc_secs(void);
#ifdef _DS1302_PRIVATE
/* consult the DS1302 datasheet for data format;
inittod();
}
-uint8_t rtc_secs(void)
+uint8_t platform_rtc_secs(void)
{
return clkd;
}
/* Called every every so often from updatetod from timer.c */
-uint16_t rtc_secs(void)
+uint8_t platform_rtc_secs(void)
{
uint8_t t[6];
/* poll dw time and return it */
RTC_DATA = value;
}
-uint8_t rtc_secs(void)
+uint8_t platform_rtc_secs(void)
{
return rp5c01_rtc_secs();
}
__sfr __at 0xD1 rtc_sech;
__sfr __at 0xDD rtc_page;
-uint8_t rtc_secs(void)
+uint8_t platform_rtc_secs(void)
{
uint8_t sl, rv;
/* Make sure we are seeing the seconds not NVRAM */
__sfr __at 0xB0 rtc_secl;
__sfr __at 0xB1 rtc_sech;
-uint8_t rtc_secs(void)
+uint8_t platform_rtc_secs(void)
{
uint8_t sl, rv;
/* BCD encoded */
__sfr __at 0x04 cmos_reg;
__sfr __at 0x07 cmos_read;
-uint8_t rtc_secs(void)
+uint8_t platform_rtc_secs(void)
{
cmos_reg = 0x00;
return cmos_read;
tod_deci = 0;
#endif
- rtcnew = rtc_secs(); /* platform function */
+ rtcnew = platform_rtc_secs(); /* platform function */
if (rtcnew == rtcsec)
return;
void inittod(void)
{
- rtcsec = rtc_secs();
+ rtcsec = platform_rtc_secs();
}
#endif /* NO_RTC */