|
|
@@ -1343,7 +1343,7 @@ static int wdog_is_en(void)
|
|
|
return misc->watchdog;
|
|
|
}
|
|
|
|
|
|
-static int wdog_init(void)
|
|
|
+int sys_wdog_init(void)
|
|
|
{
|
|
|
int r=0;
|
|
|
|
|
|
@@ -1385,7 +1385,7 @@ static int wdog_init(void)
|
|
|
|
|
|
return r;
|
|
|
}
|
|
|
-static int wdog_feed(void)
|
|
|
+int sys_wdog_feed(void)
|
|
|
{
|
|
|
int r=0;
|
|
|
|
|
|
@@ -1420,12 +1420,10 @@ static void sig_init(void)
|
|
|
static void* polling_thread(void *arg)
|
|
|
{
|
|
|
thread_handle_t *h=(thread_handle_t*)arg;
|
|
|
-
|
|
|
- wdog_init();
|
|
|
+
|
|
|
tmp_create();
|
|
|
while(h->quit==0) {
|
|
|
net_check();
|
|
|
- wdog_feed();
|
|
|
mem_check();
|
|
|
send_check();
|
|
|
sleep(1);
|