OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 10797|回复: 3

stm32中pwm调试问题,怎么解决

[复制链接]

1

主题

1

帖子

0

精华

新手入门

积分
25
金钱
25
注册时间
2012-3-15
在线时间
0 小时
发表于 2012-3-15 11:36:49 | 显示全部楼层 |阅读模式
PWM.C(57): error:  #136: struct "<unnamed>" has no field "TIM_OutputState"
PWM.C(58): error:  #136: struct "<unnamed>" has no field "TIM_Pulse"
PWM.C(59): warning:  #223-D: function "TIM_OC4Init" declared implicitly
PWM.C(60): warning:  #223-D: function "TIM_OC4PreloadConfig" declared implicitly
PWM.C(62): warning:  #223-D: function "TIM_ARRPreloadConfig" declared implicitly
PWM.C(63): warning:  #223-D: function "TIM_Cmd" declared implicitly
PWM.C(69): warning:  #223-D: function "TIM_SetCompare4" declared implicitly
PWM.C(79): warning:  #223-D: function "RCC_APB1PeriphClockCmd" declared implicitly
PWM.C(79): error:  #20: identifier "RCC_APB1Periph_TIM3" is undefined
PWM.C(80): warning:  #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly
PWM.C(80): error:  #20: identifier "RCC_APB2Periph_GPIOA" is undefined
PWM.C(80): error:  #20: identifier "RCC_APB2Periph_GPIOB" is undefined
PWM.C(81): error:  #20: identifier "RCC_APB2Periph_GPIOC" is undefined
PWM.C(81): error:  #20: identifier "RCC_APB2Periph_AFIO" is undefined
PWM.C(88): error:  #20: identifier "GPIO_InitTypeDef" is undefined
PWM.C(89): error:  #20: identifier "GPIO_Pin_6" is undefined
PWM.C(89): error:  #20: identifier "GPIO_Pin_7" is undefined
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

36

主题

1105

帖子

5

精华

论坛大神

Rank: 7Rank: 7Rank: 7

积分
2196
金钱
2196
注册时间
2012-2-8
在线时间
35 小时
发表于 2012-3-15 11:54:56 | 显示全部楼层
这个是PWM.c里没有包含相应的头文件吧?
https://github.com/roxma
回复 支持 反对

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165377
金钱
165377
注册时间
2010-12-1
在线时间
2111 小时
发表于 2012-3-15 12:38:25 | 显示全部楼层
又一个用库函数的....
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复 支持 反对

使用道具 举报

18

主题

69

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
284
金钱
284
注册时间
2012-9-13
在线时间
32 小时
发表于 2012-10-12 11:27:51 | 显示全部楼层
混合编写..  不会遭鄙视吧..  ^_^..
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-28 05:07

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表