Use longer rtc interval

This commit is contained in:
Byron Lathi
2023-11-22 20:57:49 -08:00
parent 63d3b12636
commit 9ce5b7592f
2 changed files with 7 additions and 5 deletions

View File

@@ -15,13 +15,13 @@ RTC_OUTPUT = $30
RTC_CONTROL = $30
THRESHOLD_0 = $a0
; THRESHOLD_1 = $0f
THRESHOLD_1 = $00
THRESHOLD_1 = $0f
; THRESHOLD_1 = $00
THRESHOLD_2 = $00
THRESHOLD_3 = $00
; IRQ_THRESHOLD_0 = $32
IRQ_THRESHOLD_0 = $10
IRQ_THRESHOLD_0 = $32
; IRQ_THRESHOLD_0 = $10
IRQ_THRESHOLD_1 = $00
IRQ_THRESHOLD_2 = $00
IRQ_THRESHOLD_3 = $00

View File

@@ -6,7 +6,9 @@
void handle_rtc_interrupt() {
cputs("In IRQ interrupt!\n");
// cputs("In IRQ interrupt!\n");
cputc('A');
send_eoi();
asm volatile ("rti");
}