This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: Issue with the ADC code

Part Number: LAUNCHXL-F28379D

Tool/software:

HI 

I am working on the ADC code. I am getting this error that "ADC_RES_12BIT" not defined, also "ADC_SINGLE_ENDED" is not define which are the basic functions through which you can control the adc resolution. I already added all the header files as seen in the pictures but still getting this error. Can someone help what I am missing here.

Kind Regards

  • Hi Sana,

    It appears you're include options are not configured properly for this macro. Can you add the driverlib headers to be included in your project? 

    You can refer to our existing driverlib examples on ADC to see how these parameters get used.

    Best,

    Ryan Ma

  • HI Ryan, 

    Thank you for your reply, I solve the issue, The issue is that I am not calling the macros within the ADCSetMode. I should be using ADC_RESOLUTION_12BIT instead of ADC_RES_12BIT. 

    Kind Regards

    Sana