提交 67b6177d 编写于 作者: B bigmagic

code format

上级 7043451e
...@@ -114,13 +114,9 @@ int rt_hw_wdt_init(void) ...@@ -114,13 +114,9 @@ int rt_hw_wdt_init(void)
rt_hw_watchdog_register(&raspi_wdg, "wdg", 0, RT_NULL); rt_hw_watchdog_register(&raspi_wdg, "wdg", 0, RT_NULL);
return RT_EOK; return RT_EOK;
} }
INIT_DEVICE_EXPORT(rt_hw_wdt_init); INIT_DEVICE_EXPORT(rt_hw_wdt_init);
/** void reboot(void)
* Reboot
*/
int reboot(void)
{ {
unsigned int r; unsigned int r;
...@@ -134,8 +130,6 @@ int reboot(void) ...@@ -134,8 +130,6 @@ int reboot(void)
PM_RSTC |= (PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET); PM_RSTC |= (PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET);
while (1); while (1);
return 0;
} }
MSH_CMD_EXPORT(reboot,reboot system...); MSH_CMD_EXPORT(reboot,reboot system...);
#endif /*BSP_USING_WDT */ #endif /*BSP_USING_WDT */
...@@ -22,4 +22,4 @@ struct raspi_wdt_driver ...@@ -22,4 +22,4 @@ struct raspi_wdt_driver
int rt_hw_wdt_init(void); int rt_hw_wdt_init(void);
#endif #endif
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册