调整 con 波特率为460800

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2023-02-13 09:31:53 +08:00
parent a8e6be3cfe
commit e75971d084
3 changed files with 17 additions and 2 deletions

View File

@@ -197,6 +197,12 @@ void rt_hw_board_init(void)
rt_hw_usart_init();
#endif
struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT;
config.baud_rate = BAUD_RATE_460800;
rt_device_t dev = rt_device_find(RT_CONSOLE_DEVICE_NAME);
RT_ASSERT(dev);
rt_device_control(dev, RT_DEVICE_CTRL_CONFIG, &config);
/* Set the shell console output device */
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);