0 Members and 1 Guest are viewing this topic.
attachInterrupt(0x900D0000, incrementTimer);...void incrementTimer(void){ timing++;}
volatile int timing = 0;static void __attribute__((interrupt("IRQ"))) irq_handler(){ timing++; TIMER_REG(0xc)=1;}
__asm__ volatile("mrs r0, cpsr;" "bic r0, r0, #0x80;" "msr cpsr_c, r0;" ::: "r0");
I guess 0x38 is a pointer called on interruption, but where the hell did you get that value from >_< the rest really I have no clue on.
The things you'll have to do won't change, just what you have to write to which address.
About interrupts, I already know ... nothing.