Is it possible to change the interrupt vector table dynamically?
For example, say I have a file Vector.s with the vector table (5282 processor):
VECTOR_TABLE:_VECTOR_TABLE:INITSP: .long ___SP_AFTER_RESET INITPC: .long _start //… etc etc...vector4D: .long _asm_isr_handler //… etc etc...
I would like to call a function InitialiseUART0(). Within this function, I would like to replace the vector entry with my ISR.
vector4D: .long _asm_isr_handle
vector4D: .long _uart0_isr
Is it possible? How?