中级会员
 
- 积分
- 408
- 金钱
- 408
- 注册时间
- 2014-3-9
- 在线时间
- 103 小时
|
某网友移植的库函数版本,编译没有问题
下面是我移植的寄存器版本,一大堆问题,这是为什么呢??
关于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
|
|