希望大神帮忙看看,用的单片机是PIC18F4520
时间:10-02
整理:3721RD
点击:
void Second_AT_Command(const char *b,const char *d, char wait_time)
{
char i;
char c;
c = *b; //保存字符串地址到c
clear_ReBuffer();
i = 0;
while(i == 0)
{
if(!Find(d)) //判断缓存中是否含有指定的字符串
{
if(Timer0_start == 0)
{
b = c; //将字符串地址给b
Uart1Sends(b);
Times = 0;
shijian = wait_time;
Timer0_start = 1;
}
}
else
{
i = 1;
Timer0_start = 0;
}
}
Second_AT_Command("ATE0","OK",3);
函数是用来发送AT命令的,但是这个步骤执行不过去,望大神帮忙解决下PIC指针的问题 谢谢
{
char i;
char c;
c = *b; //保存字符串地址到c
clear_ReBuffer();
i = 0;
while(i == 0)
{
if(!Find(d)) //判断缓存中是否含有指定的字符串
{
if(Timer0_start == 0)
{
b = c; //将字符串地址给b
Uart1Sends(b);
Times = 0;
shijian = wait_time;
Timer0_start = 1;
}
}
else
{
i = 1;
Timer0_start = 0;
}
}
Second_AT_Command("ATE0","OK",3);
函数是用来发送AT命令的,但是这个步骤执行不过去,望大神帮忙解决下PIC指针的问题 谢谢