[STM32L0] 为什么显示库文件中的结构体没有定义

woniu2211 2016-11-02 07:50:26
stm32l0xx_ll_comp.h

__STATIC_INLINE void LL_COMP_SetCommonWindowMode(COMP_Common_TypeDef *COMPxy_COMMON, uint32_t WindowMode)
{
MODIFY_REG(COMPxy_COMMON->CSR, COMP_CSR_COMP1WM, WindowMode);
}

错误:Error[Pe020]: identifier "COMP_Common_TypeDef" is undefined
...全文
457 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
woniu2211 2016-11-11
  • 打赏
  • 举报
回复
我已放弃使用固件库,觉得固件库不完善,改使用标准库了
woniu2211 2016-11-03
  • 打赏
  • 举报
回复
前面有包含语句,我写的这个是文件stm32l0xx_ll_comp.h里面报的错,stm32l0xx_ll_comp.h 文件最前面的语句是: #ifndef __STM32L0xx_LL_COMP_H #define __STM32L0xx_LL_COMP_H
dceacho 2016-11-02
  • 打赏
  • 举报
回复
#include "stm32l0xx_ll_comp.h"
前应该还少一个#include

27,373

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 单片机/工控
社区管理员
  • 单片机/工控社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧