@@ -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);
|
||||
|
Reference in New Issue
Block a user