This commit is contained in:
刘可亮
2024-01-27 08:47:24 +08:00
parent d3bd993b5f
commit 9f7ba67007
2345 changed files with 74421 additions and 76616 deletions

View File

@@ -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