X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fadc12%2FHplAdc12P.nc;h=a6c5e1ed4ccd5e71634e427e925f8b0abe822b7e;hb=cb216ac6294d73dd26a76e4896b8af4413025216;hp=b8ba9d0dd42c3e1757467f88d8e3476089e576ab;hpb=f54b823a562c351f3b064fe24e234d7c8310702b;p=tinyos-2.x.git 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); }