+/* Set if you want RTC support and have an RTC on ports 0xB0-0xBC */
+#define CONFIG_RTC
+
+
+
/* Enable to make ^Z dump the inode table for debug */
#undef CONFIG_IDUMP
/* Enable to make ^A drop back into the monitor */
pagemap_add(0x63); /* Mode 3, U64K low 32K mapped as low 32K */
pagemap_add(0x73); /* Mode 3, U64K high 32K mapped as low 32K */
}
+
+#ifdef CONFIG_RTC
+
+__sfr __at 0xB0 rtc_secl;
+__sfr __at 0xB1 rtc_sech;
+
+uint8_t rtc_secs(void)
+{
+ /* BCD encoded */
+ return rtc_secl + 10 * rtc_sech;
+}
+
+#endif