查看了一下stm32f10x_dac.h,里面有下面定义:
#if defined (STM32F10X_LD_VL) || defined (STM32F10X_MD_VL) || defined (STM32F10X_HD_VL)
void DAC_ITConfig(uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState);
#endif
主程序加入了#include "stm32f10x_dac.h"
#define STM32F10X_HD_VL
芯片型号选的是stm32f103ze6,main函数中调用DAC_ITConfig,编译是会提示main.c(72): warning: #223-D: function "DAC_GetITStatus" declared implicitly,不是已经定义了DAC_ITConfig吗,为什编译提示未定义 |