File tree 1 file changed +14
-8
lines changed
bsp/stm32/libraries/HAL_Drivers/nano
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)
35
35
console_uart .Instance = USART3 ;
36
36
}
37
37
#endif /* USART3 */
38
- #ifdef USART4
38
+ #ifdef UART4
39
39
else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart4 ") == 0 )
40
40
{
41
- console_uart .Instance = USART4 ;
41
+ console_uart .Instance = UART4 ;
42
42
}
43
- #endif /* USART4 */
44
- #ifdef USART5
43
+ #endif /* UART4 */
44
+ #ifdef UART5
45
45
else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart5 ") == 0 )
46
46
{
47
- console_uart .Instance = USART5 ;
47
+ console_uart .Instance = UART5 ;
48
48
}
49
- #endif /* USART5 */
49
+ #endif /* UART5 */
50
50
#ifdef USART6
51
51
else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart6 ") == 0 )
52
52
{
53
53
console_uart .Instance = USART6 ;
54
54
}
55
55
#endif /* USART6 */
56
- #ifdef USART7
56
+ #ifdef UART7
57
57
else if (rt_strcmp (RT_CONSOLE_DEVICE_NAME , "uart7 ") == 0 )
58
58
{
59
- console_uart .Instance = USART7 ;
59
+ console_uart .Instance = UART7 ;
60
60
}
61
61
#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 */
62
68
else
63
69
{
64
70
RT_ASSERT (0 );
You can’t perform that action at this time.
0 commit comments