/**
* @brief ADC Ip Config for the ADC0 configuration variant .
*/
const Adc_Ip_ConfigType AdcHwUnit_0 =
{
ADC_IP_CLK_FULL_BUS, /* ClockDivide */
ADC_IP_CLK_EIGHTH_BUS, /* CalibrationClockDivide */
ADC_IP_CLK_ALT_1, /* InputClock */
1U, /* SampleTime */
(boolean)FALSE, /* AvgEn */
ADC_IP_AVG_4_CONV, /* AvgSel */
ADC_IP_RESOLUTION_12BIT, /* Resolution */
ADC_IP_TRIGGER_SOFTWARE, /* TriggerMode */
#if (ADC_IP_ENABLE_SIM_SOURCE_SELECTION == STD_ON)
ADC_IP_PRETRIGGER_SEL_PDB, /* PretriggerSel */
ADC_IP_TRIGGER_SEL_PDB, /* TriggerSel */
#endif /* (ADC_IP_ENABLE_SIM_SOURCE_SELECTION == STD_ON) */
(boolean)FALSE, /* DmaEnable */
ADC_IP_VOLTAGEREF_VREF, /* VoltageRef */
(boolean)FALSE, /* ContinuousConvEnable */
#if (ADC_IP_SUPPLY_MONITORING_ENABLED == STD_ON)
(boolean)FALSE, /* SupplyMonitoringEnable */
#endif /* (ADC_IP_SUPPLY_MONITORING_ENABLED == STD_ON) */
(boolean)FALSE, /* CompareEnable */
(boolean)FALSE, /* CompareGreaterThanEnable */
(boolean)FALSE, /* CompareRangeFuncEnable */
0U, /* CompVal1 */
0U, /* CompVal2 */
4U, /* UsrGain */
0U, /* UsrOffset */
1U, /* NumChannels */
AdcIpChansConfig_0, /* ChannelConfigs */
#if (ADC_IP_AIEN_INTERRUPT_ENABLE == STD_ON)
&NULL_PTR /* ConversionCompleteNotification */
#endif /* (ADC_IP_AIEN_INTERRUPT_ENABLE == STD_ON) */
};
(The line that fails to compile: &NULL_PTR)
The compiler (correctly) fails to compile this code with error:
lvalue required as unary '&' operand
Is this an user error on my part? If not, is a fix available or will become available?
Thanks
Durga Choudhury