初级会员

- 积分
- 183
- 金钱
- 183
- 注册时间
- 2013-7-17
- 在线时间
- 30 小时
|

楼主 |
发表于 2014-10-28 14:55:38
|
显示全部楼层
da.c(7): error: #20: identifier "DAC_InitTypeDef" is undefined
da.c: DAC_InitTypeDef DAC_InitType;
da.c: ^
da.c(18): error: #20: identifier "DAC_Trigger_None" is undefined
da.c: DAC_InitType.DAC_Trigger=DAC_Trigger_None; //不使用触发功能 TEN1=0
da.c: ^
da.c(19): error: #20: identifier "DAC_WaveGeneration_None" is undefined
da.c: DAC_InitType.DAC_WaveGeneration=DAC_WaveGeneration_None;//不使用波形发生
da.c: ^
da.c(20): error: #20: identifier "DAC_LFSRUnmask_Bit0" is undefined
da.c: DAC_InitType.DAC_LFSRUnmask_TriangleAmplitude=DAC_LFSRUnmask_Bit0;//屏蔽、幅值设置
da.c: ^
da.c(21): error: #20: identifier "DAC_OutputBuffer_Disable" is undefined
da.c: DAC_InitType.DAC_OutputBuffer=DAC_OutputBuffer_Disable ; //DAC1输出缓存关闭 BOFF1=1
da.c: ^
da.c(22): warning: #223-D: function "DAC_Init" declared implicitly
da.c: DAC_Init(DAC_Channel_1,&DAC_InitType); //初始化DAC通道1
da.c: ^
da.c(22): error: #20: identifier "DAC_Channel_1" is undefined
da.c: DAC_Init(DAC_Channel_1,&DAC_InitType); //初始化DAC通道1
da.c: ^
da.c(24): warning: #223-D: function "DAC_Cmd" declared implicitly
da.c: DAC_Cmd(DAC_Channel_1, ENABLE); //使能DAC1
da.c: ^
da.c(26): warning: #223-D: function "DAC_SetChannel1Data" declared implicitly
da.c: DAC_SetChannel1Data(DAC_Align_12b_R, 0); //12位右对齐数据格式设置DAC值
da.c: ^
da.c(26): error: #20: identifier "DAC_Align_12b_R" is undefined
da.c: DAC_SetChannel1Data(DAC_Align_12b_R, 0); //12位右对齐数据格式设置DAC值
da.c: ^
da.c(37): warning: #223-D: function "DAC_SetChannel1Data" declared implicitly
da.c: DAC_SetChannel1Data(DAC_Align_12b_R,temp);//12位右对齐数据格式设置DAC值
da.c: ^
da.c(37): error: #20: identifier "DAC_Align_12b_R" is undefined
da.c: DAC_SetChannel1Data(DAC_Align_12b_R,temp);//12位右对齐数据格式设置DAC值 |
|