aboutsummaryrefslogtreecommitdiff
path: root/interrupts.c
diff options
context:
space:
mode:
Diffstat (limited to 'interrupts.c')
-rw-r--r--interrupts.c10
1 files changed, 5 insertions, 5 deletions
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("<<irq from timer>>");
@@ -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