RTC: Fix threshold/irq_threshold initialization
Also throw some newlines in the kernel print messages.
This commit is contained in:
@@ -51,19 +51,19 @@ RTC_CONTROL = $30
|
|||||||
lda #$00
|
lda #$00
|
||||||
sta RTC_DAT
|
sta RTC_DAT
|
||||||
|
|
||||||
lda #RTC_THRESHOLD+0 ; Set irq threshold to 50 ($32)
|
lda #RTC_IRQ_THRESHOLD+0 ; Set irq threshold to 50 ($32)
|
||||||
sta RTC_CMD
|
sta RTC_CMD
|
||||||
lda #$32
|
lda #$32
|
||||||
sta RTC_DAT
|
sta RTC_DAT
|
||||||
lda #RTC_THRESHOLD+1
|
lda #RTC_IRQ_THRESHOLD+1
|
||||||
sta RTC_CMD
|
sta RTC_CMD
|
||||||
lda #$00
|
lda #$00
|
||||||
sta RTC_DAT
|
sta RTC_DAT
|
||||||
lda #RTC_THRESHOLD+2
|
lda #RTC_IRQ_THRESHOLD+2
|
||||||
sta RTC_CMD
|
sta RTC_CMD
|
||||||
lda #$00
|
lda #$00
|
||||||
sta RTC_DAT
|
sta RTC_DAT
|
||||||
lda #RTC_THRESHOLD+3
|
lda #RTC_IRQ_THRESHOLD+3
|
||||||
sta RTC_CMD
|
sta RTC_CMD
|
||||||
lda #$00
|
lda #$00
|
||||||
sta RTC_DAT
|
sta RTC_DAT
|
||||||
|
|||||||
@@ -7,19 +7,19 @@ int main() {
|
|||||||
|
|
||||||
cputs("Kernel\n");
|
cputs("Kernel\n");
|
||||||
|
|
||||||
// cputs("Init Paging")
|
// cputs("Init Paging\n")
|
||||||
// init_paging()
|
// init_paging()
|
||||||
|
|
||||||
// cputs("Initialize Interrupts");
|
// cputs("Initialize Interrupts\n");
|
||||||
// init_interrupts();
|
// init_interrupts();
|
||||||
|
|
||||||
cputs("Initialize Interrupt Controller");
|
cputs("Initialize Interrupt Controller\n");
|
||||||
init_interrupt_controller();
|
init_interrupt_controller();
|
||||||
|
|
||||||
cputs("Initialize RTC");
|
cputs("Initialize RTC\n");
|
||||||
init_rtc();
|
init_rtc();
|
||||||
|
|
||||||
// cputs("Initialize Serial");
|
// cputs("Initialize Serial\n");
|
||||||
// // init_serial();
|
// // init_serial();
|
||||||
// enable_irq(2, IRQ_EDGE);
|
// enable_irq(2, IRQ_EDGE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user