From cb216ac6294d73dd26a76e4896b8af4413025216 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Mon, 1 Oct 2012 20:04:06 -0600 Subject: [PATCH] Temp fix for ADC_VECTOR undefined for msp430f2x1x --- tos/chips/msp430/adc12/HplAdc12P.nc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tos/chips/msp430/adc12/HplAdc12P.nc b/tos/chips/msp430/adc12/HplAdc12P.nc index b8ba9d0d..a6c5e1ed 100644 --- a/tos/chips/msp430/adc12/HplAdc12P.nc +++ b/tos/chips/msp430/adc12/HplAdc12P.nc @@ -117,6 +117,14 @@ implementation async command bool HplAdc12.isBusy(){ return (ADC12CTL1 & ADC12BUSY); } +/* TI headers for the msp430f2x1x parts do not define ADC_VECTOR. In these + * cases, the vector is ADC12_VECTOR. Below is a temporary work-around that + * will effectively be a null operation once the headers are fixed. + */ +#ifndef ADC_VECTOR +#define ADC_VECTOR ADC12_VECTOR +#endif + TOSH_SIGNAL(ADC_VECTOR) { signal HplAdc12.conversionDone(ADC12IV); } -- 2.39.2