X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=modules%2Fhardware%2Ftimer%2Ftimer_definitions.h;h=9beea35a32cf73d65998195a14cfdc59e18c9f9f;hp=6bd1c1f7c9732c5fa36f4c59f2b440047ba95870;hb=8a0b4d5c16a9a304515b42f56ff321c2cdd27eb6;hpb=ccc6954bb046671b9e28c5806db5121c1eef49c0 diff --git a/modules/hardware/timer/timer_definitions.h b/modules/hardware/timer/timer_definitions.h index 6bd1c1f..9beea35 100644 --- a/modules/hardware/timer/timer_definitions.h +++ b/modules/hardware/timer/timer_definitions.h @@ -59,27 +59,27 @@ void timer##x##_set(uint16_t t) \ #define DEFINE_OV_INTR(x) \ SIGNAL(x) \ { \ - if(timer_OV_callback_table[x##_NUM]) \ - timer_OV_callback_table[x##_NUM](); \ + if(timer_callback_table[x##_num]) \ + timer_callback_table[x##_num](); \ } #define DEFINE_OC_INTR(x) \ SIGNAL(x) \ { \ - if(timer_OC_callback_table[x##_NUM]) \ - timer_OC_callback_table[x##_NUM](); \ + if(timer_callback_table[x##_num]) \ + timer_callback_table[x##_num](); \ } -#define DEFINE_REGISTER_OV_INTR(x) \ +#define DEFINE_REGISTER_OV_INTR(x, vector) \ \ void timer##x##_register_OV_intr(void (*func)(void)) \ { \ uint8_t flags; \ \ IRQ_LOCK(flags); \ - timer_OV_callback_table[SIG_OVERFLOW##x##_NUM] = func; \ + timer_callback_table[vector##_num] = func; \ if (func) { \ TOIE##x##_REG |= (1<