Skip to content

Commit 5346c87

Browse files
hywingmysterywolf
authored andcommitted
[bsp][nxp][mcxa153] update drv_wdt.c && drv_wdt.h file format
1 parent e43df5e commit 5346c87

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bsp/nxp/mcx/mcxa/Libraries/drivers/drv_wdt.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2024, RT-Thread Development Team
2+
* Copyright (c) 2006-2024 RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -33,7 +33,7 @@ void APP_WDT_IRQ_HANDLER(void)
3333
{
3434
uint32_t wdtStatus = WWDT_GetStatusFlags(WWDT);
3535

36-
//APP_LED_TOGGLE;
36+
/*APP_LED_TOGGLE;*/
3737

3838
/* The chip will reset before this happens */
3939
if (wdtStatus & kWWDT_TimeoutFlag)
@@ -82,9 +82,9 @@ static rt_err_t wdt_init(rt_watchdog_t *wdt)
8282
config.enableWatchdogReset = true;
8383
/* Setup watchdog clock frequency(Hz). */
8484
config.clockFreq_Hz = WDT_CLK_FREQ;
85-
85+
8686
WWDT_Init(WWDT, &config);
87-
NVIC_EnableIRQ(APP_WDT_IRQn);
87+
NVIC_EnableIRQ(APP_WDT_IRQn);
8888

8989
return RT_EOK;
9090
}
@@ -114,7 +114,7 @@ static rt_err_t wdt_control(rt_watchdog_t *wdt, int cmd, void *arg)
114114
return RT_EOK;
115115

116116
case RT_DEVICE_CTRL_WDT_KEEPALIVE:
117-
delayWwdtWindow();
117+
delayWwdtWindow();
118118
WWDT_Refresh(wdt_dev.wdt_base);
119119
return RT_EOK;
120120

bsp/nxp/mcx/mcxa/Libraries/drivers/drv_wdt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2024, RT-Thread Development Team
2+
* Copyright (c) 2006-2024 RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

0 commit comments

Comments
 (0)