forked from ccsens_hardware/stc_ttss_868
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
606 B
27 lines
606 B
#include "task_uart.h"
|
|
#include "../bsp/bsp_config.h"
|
|
#include "../app/app_config.h"
|
|
#include "../msp/uart0.h"
|
|
#include "../msp/uart2.h"
|
|
S_TASK_UART_TRA s_task_uart;
|
|
void L3_task_uart_init(void)
|
|
{
|
|
L1_task_init(&s_task_uart.task);
|
|
L3_task_s_go(s_task_uart,D_task_init);
|
|
}
|
|
#define D_task_uart2_send 0x50
|
|
void L3_task_uart_handler(S_TASK_UART_TRA *s)
|
|
{
|
|
TTSS_Task_init()
|
|
L2_task_go(D_task_uart2_send);
|
|
|
|
TTSS_Task_step(D_task_uart2_send)
|
|
if(ts_uart[uNum2].t->reg!=0)
|
|
{
|
|
LED0 ^= 1;
|
|
L0_uart2_sendArray("i",8);
|
|
}
|
|
L2_task_go_Tdelay(D_task_uart2_send,D_Tdelay_Msec(100)); //??100ms
|
|
TTSS_Task_end();
|
|
|
|
}
|