git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: fix test programs using old uart API
[aversive.git]
/
modules
/
hardware
/
adc
/
adc.c
diff --git
a/modules/hardware/adc/adc.c
b/modules/hardware/adc/adc.c
index
ba0971c
..
bc4c122
100644
(file)
--- 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;