helos1/driver/irq/pic/rtc/rtc.h

25 lines
410 B
C
Raw Normal View History

2021-11-07 23:07:47 +08:00
#pragma once
#include <stdint.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
extern bool pic_rtc_Enabled;
// Init installs the required interrupt handlers.
void pic_rtc_Init();
// SetHandler sets the interrupt handler for RTC interrupts.
//
// The handler is jumped to, so it must use IRET and save registers is uses.
void pic_rtc_SetHandler(void *handler);
#ifdef __cplusplus
}
#endif