[bsp][nxp][mcxa153] update drv_wdt.c && drv_wdt.h file format

This commit is contained in:
hywing 2024-11-26 09:58:55 +08:00 committed by Meco Man
parent e43df5eb9e
commit 5346c87fe2
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2024, RT-Thread Development Team * Copyright (c) 2006-2024 RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -33,7 +33,7 @@ void APP_WDT_IRQ_HANDLER(void)
{ {
uint32_t wdtStatus = WWDT_GetStatusFlags(WWDT); uint32_t wdtStatus = WWDT_GetStatusFlags(WWDT);
//APP_LED_TOGGLE; /*APP_LED_TOGGLE;*/
/* The chip will reset before this happens */ /* The chip will reset before this happens */
if (wdtStatus & kWWDT_TimeoutFlag) if (wdtStatus & kWWDT_TimeoutFlag)
@ -84,7 +84,7 @@ static rt_err_t wdt_init(rt_watchdog_t *wdt)
config.clockFreq_Hz = WDT_CLK_FREQ; config.clockFreq_Hz = WDT_CLK_FREQ;
WWDT_Init(WWDT, &config); WWDT_Init(WWDT, &config);
NVIC_EnableIRQ(APP_WDT_IRQn); NVIC_EnableIRQ(APP_WDT_IRQn);
return RT_EOK; return RT_EOK;
} }
@ -114,7 +114,7 @@ static rt_err_t wdt_control(rt_watchdog_t *wdt, int cmd, void *arg)
return RT_EOK; return RT_EOK;
case RT_DEVICE_CTRL_WDT_KEEPALIVE: case RT_DEVICE_CTRL_WDT_KEEPALIVE:
delayWwdtWindow(); delayWwdtWindow();
WWDT_Refresh(wdt_dev.wdt_base); WWDT_Refresh(wdt_dev.wdt_base);
return RT_EOK; return RT_EOK;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2024, RT-Thread Development Team * Copyright (c) 2006-2024 RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *