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.
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
///@copyright Copyright (c) 2018, 传控科技 All rights reserved.
|
|
|
|
///-------------------------------------------------------------------------
|
|
|
|
/// @file bsp_test.c.c
|
|
|
|
/// @brief bsp @ driver config
|
|
|
|
///-------------------------------------------------------------------------
|
|
|
|
/// @version 1.0
|
|
|
|
/// @author CC
|
|
|
|
/// @date 20180331
|
|
|
|
/// @note cc_AS_stc02
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "app_task_report.h"
|
|
|
|
#include "../msp/uart0.h"
|
|
|
|
//#include "bsp_IRS.h"
|
|
|
|
#include "../app/app_common.h"
|
|
|
|
|
|
|
|
struct _s_task_report_ s_task_report;
|
|
|
|
void L3_task_report_init(void)
|
|
|
|
{
|
|
|
|
L1_task_init(&s_task_report.task);
|
|
|
|
L3_task_s_go(s_task_report,D_task_init);
|
|
|
|
}
|
|
|
|
|
|
|
|
#define TASK_HEARTBEAT_REPORT 0x1
|
|
|
|
void L3_task_report_handle(struct _s_task_report_ *s)
|
|
|
|
{
|
|
|
|
TTSS_Task_init()
|
|
|
|
L2_task_go(TASK_HEARTBEAT_REPORT);
|
|
|
|
|
|
|
|
TTSS_Task_step(TASK_HEARTBEAT_REPORT)
|
|
|
|
if(G.runmode == MODE_RUN)
|
|
|
|
{
|
|
|
|
L2_do_uart_report();
|
|
|
|
}
|
|
|
|
L2_task_go_Tdelay(TASK_HEARTBEAT_REPORT,D_Tdelay_1s);
|
|
|
|
|
|
|
|
TTSS_Task_end();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|