Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 21927

MSP432P4111: TI Drivers Project Zero - error in ADC example

$
0
0

Part Number:MSP432P4111

The example concerning the ADC :

ADC_Handle adc;
ADC_Params params;
ADC_Params_init(&params);
adc = ADC_open(Board_ADC0, &params);
if (adc != NULL) {
 ADC_close(adc);
}


doesn't work for me. The return value check should probably be:

if (adc == NULL) {
 ADC_close(adc);
}

Thanks
Peter

Viewing all articles
Browse latest Browse all 21927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>