5f47bafc6a
This patch adds a driver for Real-Time Clock (RTC). The RTC timer is suitable to implement some operating system features such as the system clock. Actually, the RTC will be used to implement the system clock in galileo platform. The driver introduced by this patch programs the RTC to generate interrupt periodically. The interrupt frequency can be configured by the user. On each RTC interrupt, a callback configured by the user is called. As expected, that callback is executed in interrupt context so the user should be aware of what it is not supposed to do (e.g. to call blocking functions). This patch also adds the inb() helper function to helpers.h. The helpers is a wrapper for assembly 'in' instruction. |
||
---|---|---|
.. | ||
drivers | ||
cpu.c | ||
cpu.h | ||
gdt.c | ||
gdt.h | ||
helpers.h | ||
helpers.S | ||
idt.c | ||
idt.h | ||
interrupt.h | ||
Makefile.x86 | ||
mtarch.c | ||
mtarch.h |