HC32F4A0_DDL_Rev2.2.0\projects\ev_hc32f4a0_lqfp176\examples\adc\adc_awd\source\main.c文件中:
请问代码
static void AdcAwdConfig(void)
{
stc_adc_awd_config_t stcAwd;
stcAwd.u16WatchdogMode = ADC_AWD_MD;
stcAwd.u16LowThreshold = ADC_AWD_LOW_THRESHOLD_VAL;
stcAwd.u16HighThreshold = ADC_AWD_HIGH_THRESHOLD_VAL;
(void)ADC_AWD_Config(ADC_UNIT, AWD_UNIT, ADC_AWD_CH, &stcAwd);
ADC_AWD_Cmd(ADC_UNIT, AWD_UNIT, ENABLE);
}
在XHCODE如何设置才能生成? |