PASII/CandeII_1.4/Taskrun/USCI_Task.c

32 lines
876 B
C

/*****************************************************************
;Project: Light
;MCU:
;Date:
;File:
;Function:
******************************************************************/
#include "USCI_Task.h"
#include "uartdate.h"
#include "tick.h"
/*---------------------------------------------------------------*/
//外部变量调用声明
//extern unsigned char BetteryConnectFlag; //电池与控制连接标志位
///*---------------------------------------------------------------*/
////串口任务
//void USCI_Task(void)
//{
// static unsigned short timer_USCI = 0; //设置指定的时间节点(相当于定时闹钟)
//
// if(BetteryConnectFlag==1)
// {
// if(TimerCheck(timer_USCI,500)) //检查闹钟时间是否到达
// {
// GetSpeedCmd(); //发送获取速度命令
// TimerSet(timer_USCI,500); //--设置一个时间闹钟,设置500ms延时
// }
// }
//
// RxData_Deal(); //接收数据处理
//}