Hi,
I am attempting to use the onboard 16 bit ADC on the LPC5504 processor. I am basing my code off of the sample project. However, when I import the ADC sample for the 5504, it seems to actually be using the LPC55S06_features.h header file to define the chip features.
When I use the latest version of the LPC5504_features.h header file that I can find, I am not able to compile the fsl_lpacd driver files. At least the following 3 defines seem to be missing from the 5504 header (as compared to the 55S06 header):
#define FSL_FEATURE_LPADC_HAS_B_SIDE_CHANNELS 1U
#define FSL_FEATURE_ANACTRL_HAS_AUX_BIAS_REG 1U
#define FSL_FEATURE_LPADC_HAS_CFG_PWRSEL 1U
Without these defines, I am not able to build fsl_lpadc.c/h. I get errors in various spots due to apparently missing header guards, such as this one in LPADC_SetCalibrationValue:
#if (defined(FSL_FEATURE_LPADC_FIFO_COUNT) && (FSL_FEATURE_LPADC_FIFO_COUNT == 2U))
*(((volatile uint32_t *)(&(base->CAL_GBR[0]))) + i) = ptrCalibrationValue->generalCalibrationValueB[i];
This will not compile because there is no guard checking for channel B support around this use of the field. Without the other defines, other sections of the driver fail to compile.
Are these features actually not supported by the 5504, or are they simply not defined in the header for some reason? Should I be using a different header file?
Thanks for any help you can provide.