File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
bsp/stm32/libraries/HAL_Drivers/nano Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -35,30 +35,36 @@ void rt_hw_console_init(void)
3535 console_uart .Instance = USART3 ;
3636 }
3737#endif /* USART3 */
38- #ifdef USART4
38+ #ifdef UART4
3939 else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart4 ") == 0 )
4040 {
41- console_uart .Instance = USART4 ;
41+ console_uart .Instance = UART4 ;
4242 }
43- #endif /* USART4 */
44- #ifdef USART5
43+ #endif /* UART4 */
44+ #ifdef UART5
4545 else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart5 ") == 0 )
4646 {
47- console_uart .Instance = USART5 ;
47+ console_uart .Instance = UART5 ;
4848 }
49- #endif /* USART5 */
49+ #endif /* UART5 */
5050#ifdef USART6
5151 else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart6 ") == 0 )
5252 {
5353 console_uart .Instance = USART6 ;
5454 }
5555#endif /* USART6 */
56- #ifdef USART7
56+ #ifdef UART7
5757 else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart7 ") == 0 )
5858 {
59- console_uart .Instance = USART7 ;
59+ console_uart .Instance = UART7 ;
6060 }
6161#endif /* USART7 */
62+ #ifdef UART8
63+ else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart8 ") == 0 )
64+ {
65+ console_uart .Instance = UART8 ;
66+ }
67+ #endif /* USART8 */
6268 else
6369 {
6470 RT_ASSERT (0 );
You can’t perform that action at this time.
0 commit comments