mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 19:08:54 +00:00
v1.0.3
This commit is contained in:
@@ -46,6 +46,7 @@ static void usage(char * program)
|
||||
void test_wdt(int argc, char **argv)
|
||||
{
|
||||
int opt;
|
||||
__unused int status;
|
||||
int timeout = 0;
|
||||
rt_device_t wdt_dev = RT_NULL;
|
||||
|
||||
@@ -82,7 +83,7 @@ void test_wdt(int argc, char **argv)
|
||||
break;
|
||||
case 'r':
|
||||
#ifdef AIC_WDT_DRV_V11
|
||||
int status = rt_device_control(wdt_dev, RT_DEVICE_CTRL_WDT_GET_RST_EN, RT_NULL);
|
||||
status = rt_device_control(wdt_dev, RT_DEVICE_CTRL_WDT_GET_RST_EN, RT_NULL);
|
||||
if (status)
|
||||
rt_device_control(wdt_dev, RT_DEVICE_CTRL_WDT_SET_RST_SYS, RT_NULL);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user