26 lines
406 B
C
26 lines
406 B
C
|
/**
|
|||
|
* 遥控器发送与解码任务
|
|||
|
*/
|
|||
|
#include "TopDefine.h"
|
|||
|
#include "attrTask.h"
|
|||
|
#include "rc_task.h"
|
|||
|
#include "remote_control.h"
|
|||
|
|
|||
|
extern RC_mess_t RC_mess;
|
|||
|
/**
|
|||
|
* \brief 遥控器任务
|
|||
|
*
|
|||
|
* \param argument 未使用
|
|||
|
*/
|
|||
|
void Task_Rc(void *argument)
|
|||
|
{
|
|||
|
(void)argument; /* 未使用argument,消除警告 */
|
|||
|
|
|||
|
RC_init();
|
|||
|
while(1)
|
|||
|
{
|
|||
|
RC_WaitNew();
|
|||
|
RC_rx_analysis();
|
|||
|
}
|
|||
|
}
|