How can I set up the ARM interrupt vector table branches in C or inline assembly?
What would be an example of how to set up an ARM9 interrupt vector table using C or inline assembly in a bare-metal environment without any RTOS or Linux OS? Specifically, how can I use inline assembly or C to set branches to my IRQ interrupt handler ISR coded in C? /// timer1 64-bit mode interrupt handler connected to TINT2 interrupt=#34 /// \todo I think I need to ACK it once I get working interrupt void interruptHandlerTimer1(void) { printf("\n [* ISR *] \n"); // ACK TINT2 interrupt #34 AINTC ->IRQ1 = 1 << (34 - 32); } void main(void) { TIMER1 ->TCR = 0x00000000; // TGCR: TIMMODE=0 64-bit G
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.