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.
34 lines
637 B
34 lines
637 B
#include "app_task_wdt.h"
|
|
#include "../bsp/bsp_wdt.h"
|
|
#include "../msp/uart0.h"
|
|
#include "app_common.h"
|
|
|
|
struct _s_task_wdt s_task_wdt;
|
|
|
|
void L3_task_wdt_init(void)
|
|
{
|
|
L1_task_init(&s_task_wdt.task);
|
|
L3_task_s_go(s_task_wdt,D_task_init);
|
|
L0_wdt_init();
|
|
}
|
|
|
|
#define TTSS_TASK_WDT_STP_01 0x1
|
|
|
|
void L3_task_wdt_handle(struct _s_task_wdt *s)
|
|
{
|
|
TTSS_Task_init()
|
|
L2_task_go(TTSS_TASK_WDT_STP_01);
|
|
TTSS_Task_step(TTSS_TASK_WDT_STP_01)
|
|
if(G.reset == 0)
|
|
{
|
|
L0_wdt_feed();
|
|
}
|
|
else
|
|
{
|
|
L0_uart0_uc('E');
|
|
}
|
|
L2_task_go(TTSS_TASK_WDT_STP_01);
|
|
L1_task_Tdelay(D_Tdelay_1s);
|
|
TTSS_Task_end();
|
|
}
|
|
|
|
|