OpenEdv-开源电子网

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

MPU9250移植到F103产生一堆错误

[复制链接]

23

主题

114

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
408
金钱
408
注册时间
2014-3-9
在线时间
103 小时
发表于 2017-4-14 17:15:20 | 显示全部楼层 |阅读模式
某网友移植的库函数版本,编译没有问题

下面是我移植的寄存器版本,一大堆问题,这是为什么呢??
关于IIC是驱动我都改成寄存器版本了,还要改哪里吗

Build target 'Target 1'
compiling inv_mpu.c...
......... 字数限制 中间省略一万多字..................
..\DMP\mllite\start_manager.c: 1 warning, 2 errors
compiling storage_manager.c...
..\DMP\driver\include\log.h(339): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\DMP\driver\include\log.h(339): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\DMP\mllite\ml_math_func.h(32): warning:  #12-D: parsing restarts here after previous syntax error
      }inv_biquad_filter_t;
..\DMP\mllite\ml_math_func.h(34): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline float inv_q30_to_float(long q30)
..\DMP\mllite\ml_math_func.h(34): error:  #65: expected a ";"
      static inline float inv_q30_to_float(long q30)
..\DMP\mllite\ml_math_func.h(57): warning:  #12-D: parsing restarts here after previous syntax error
      long inv_q29_mult(long a, long b);
..\DMP\mllite\ml_math_func.h(108): warning:  #260-D: explicit type is missing ("int" assumed)
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\DMP\mllite\ml_math_func.h(108): error:  #65: expected a ";"
      static inline long inv_delta_time_ms(inv_time_t t1, inv_time_t t2)
..\DMP\mllite\ml_math_func.h(119): warning:  #12-D: parsing restarts here after previous syntax error
      double quaternion_to_rotation_angle(const long *quat);
..\DMP\mllite\ml_math_func.h(122): error:  #20: identifier "inv_biquad_filter_t" is undefined
      void inv_init_biquad_filter(inv_biquad_filter_t *pFilter, float *pBiquadCoeff);
..\DMP\mllite\ml_math_func.h(123): error:  #20: identifier "inv_biquad_filter_t" is undefined
      float inv_biquad_filter_process(inv_biquad_filter_t *pFilter, float input);
..\DMP\mllite\ml_math_func.h(124): error:  #20: identifier "inv_biquad_filter_t" is undefined
      void inv_calc_state_to_match_output(inv_biquad_filter_t *pFilter, float input);
..\DMP\mllite\storage_manager.c: 6 warnings, 6 errors
"..\OBJ\TEST.axf" - 106 Error(s), 56 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03
魔法王子
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

2

主题

10

帖子

0

精华

初级会员

Rank: 2

积分
114
金钱
114
注册时间
2018-2-26
在线时间
22 小时
发表于 2018-6-13 11:53:58 | 显示全部楼层
楼主   你的问题解决了没有   我刚移植完成也像你一样   报了90多个错误。。。
回复 支持 反对

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-5-26 12:57

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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