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.

TMS320F28375S: _DUAL_HEADERS problem in C2000Ware_1_00_03_00

Part Number: TMS320F28375S
Other Parts Discussed in Thread: TMS320F28377S, C2000WARE

Hi,

I did as recommended in

F2837xS_DEV_USER_GUIDE.pdf:

  2.3 Project: Adding Bitfield or Driverlib Support
  When combining bitfield and driverlib support, add a pre-defined symbol
  within the project properties called "_DUAL_HEADERS".

My project failes to compile if _DUAL_HEADERS is defined:

device_support/f2837xs/common/source/F2837xS_Adc.c", line 94: error #20: identifier "ADC_RESOLUTION_12BIT" is undefined

Reason:

 - device_support\f2837xs\common\include\F2837xS_Adc_defines.h
    #ifndef _DUAL_HEADERS
    #define ADC_RESOLUTION_12BIT 0
    #define ADC_RESOLUTION_16BIT 1
    #else
    #define ADC_BITRESOLUTION_12BIT 0
    #define ADC_BITRESOLUTION_16BIT 1
    #endif
- device_support\f2837xs\common\source\F2837xS_Adc.c:
  uses ADC_RESOLUTION_12BIT


Compiles if ADC_RESOLUTION_12BIT is changed to  ADC_BITRESOLUTION_12BIT

Without _DUAL_HEADERS all is OK.

May be this should be racefully pread roof.

Regards,

Frank