X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=modules%2Fhardware%2Fadc%2Fadc.c;fp=modules%2Fhardware%2Fadc%2Fadc.c;h=bc4c12291d60c424cfb167081e20071dabba44d7;hp=ba0971c5da37683a029306178994f64e96b01a93;hb=0c1213d8f51ac18ea8d42d9018e9ffe2f9bf24c2;hpb=658496af89393f0de090f10ebe773d00a49a5f9d diff --git a/modules/hardware/adc/adc.c b/modules/hardware/adc/adc.c index ba0971c..bc4c122 100644 --- a/modules/hardware/adc/adc.c +++ b/modules/hardware/adc/adc.c @@ -82,7 +82,12 @@ void adc_register_event(void (*f)(int16_t)) * Interrupt function, other interrupts are disabled during its * execution. */ -SIGNAL(SIG_ADC) +#ifndef ADC_vect +#if defined(SIG_ADC) +#define ADC_vect SIG_ADC +#endif +#endif +SIGNAL(ADC_vect) { int16_t result;