From: R. Steve McKown Date: Tue, 2 Oct 2012 02:04:06 +0000 (-0600) Subject: Temp fix for ADC_VECTOR undefined for msp430f2x1x X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=cb216ac6294d73dd26a76e4896b8af4413025216 Temp fix for ADC_VECTOR undefined for msp430f2x1x --- 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); }