IAR中使用printf()函数和允许位定义的方法
⑴使用printf()函数:
①包含<stdio.h>头文件
②编写putchar函数
示例:
int putchar(int c)
{
while (!(UCSRA &0x20))
return (UDR=c)
}
③设置
Option
想请教一下是怎么解决的,我的情况是,函数能调用,但无法计算出数据。A = atan((0.2/1.20))*57.2958f
set_pitch = A*sin(2*3.14159*5/1700)
这两个变量的输出值一直为零。
#include "math.h"#include <math.h&gt
#include <math.h>
maybe version will affect it ,should not be less than 2.0
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)