mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-15 04:13:15 +01:00
dm36x: Support passing interrupt vector to ISRs.
This commit is contained in:
@@ -61,7 +61,7 @@ extern int32_t archUsecDiff (int32_t start_time);
|
||||
/**
|
||||
* ISR handler registration (optional, not available on all ports)
|
||||
*/
|
||||
typedef void (*ISR_FUNC)(void);
|
||||
typedef void (*ISR_FUNC)(int int_vector);
|
||||
extern int archIntInstallISR (int int_vector, ISR_FUNC isr_func);
|
||||
extern int archIntEnable (int int_vector, int enable);
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ static ISR_FUNC isr_handlers[DM36X_INTC_MAX_VEC + 1] =
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
atomTimerTick, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
(void *)atomTimerTick, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };
|
||||
@@ -276,7 +276,7 @@ __interrupt_dispatcher (void)
|
||||
atomIntEnter();
|
||||
|
||||
/* Call the registered ISR */
|
||||
isr_handlers[vector]();
|
||||
isr_handlers[vector](vector);
|
||||
|
||||
/* Call the interrupt exit routine */
|
||||
atomIntExit(TRUE);
|
||||
|
||||
Reference in New Issue
Block a user