From 2d31012739a11724844701d07db12e6e1307925e Mon Sep 17 00:00:00 2001 From: vetch Date: Fri, 3 Jan 2020 10:57:33 +0100 Subject: update --- interrupts.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'interrupts.c') diff --git a/interrupts.c b/interrupts.c index 2dd7fbd..ff26eba 100644 --- a/interrupts.c +++ b/interrupts.c @@ -63,9 +63,9 @@ void generic_handler(void) void irq_handler(void) { - uart_puts("nwm\r\n"); +// uart_puts("nwm\r\n"); - system_reentry_point(); +// system_reentry_point(); if (armclk_irq_pending()) { puts("<>"); @@ -90,9 +90,9 @@ void fiq_handler(void) void __attribute__((interrupt("IRQ"))) __attribute__((section(".interrupt_vectors.text"))) -irq_handler(void) { +irq_handler2(void) { /* You code goes here */ - uart_puts("GOT INTERRUPT!\r\n"); +// uart_puts("GOT INTERRUPT!\r\n"); local_timer_clr_reload_reg_t temp = { .IntClear = 1, .Reload = 1 }; QA7->TimerClearReload = temp; // Clear interrupt & reload @@ -109,6 +109,6 @@ int enable_timer(void) { QA7->TimerClearReload.Reload = 1; // Reload now QA7->Core0TimerIntControl.nCNTPNSIRQ_IRQ = 1; // We are in NS EL1 so enable IRQ to core0 that level QA7->Core0TimerIntControl.nCNTPNSIRQ_FIQ = 0; // Make sure FIQ is zero - uart_puts("Enabled Timer\r\n"); +// uart_puts("Enabled Timer\r\n"); return(0); } \ No newline at end of file -- cgit v1.2.3