Skip to content

Commit 67b6177

Browse files
committed
code format
1 parent 7043451 commit 67b6177

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

bsp/raspberry-pi/raspi4-32/driver/drv_wdt.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,9 @@ int rt_hw_wdt_init(void)
114114
rt_hw_watchdog_register(&raspi_wdg, "wdg", 0, RT_NULL);
115115
return RT_EOK;
116116
}
117-
118117
INIT_DEVICE_EXPORT(rt_hw_wdt_init);
119118

120-
/**
121-
* Reboot
122-
*/
123-
int reboot(void)
119+
void reboot(void)
124120
{
125121
unsigned int r;
126122

@@ -134,8 +130,6 @@ int reboot(void)
134130
PM_RSTC |= (PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET);
135131

136132
while (1);
137-
138-
return 0;
139133
}
140134
MSH_CMD_EXPORT(reboot,reboot system...);
141135
#endif /*BSP_USING_WDT */

bsp/raspberry-pi/raspi4-32/driver/drv_wdt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ struct raspi_wdt_driver
2222

2323
int rt_hw_wdt_init(void);
2424

25-
#endif
25+
#endif

0 commit comments

Comments
 (0)