dm36x: Support passing interrupt vector to ISRs.

This commit is contained in:
Kelvin Lawson
2014-05-31 23:45:14 +01:00
parent f9355b7fb8
commit b645f28985
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);