Your firmware project includes two different UART drivers:
Both drivers provide a function named send().
send()
To avoid a name conflict, place each driver in its own nested namespace:
Boot::UART
App::UART
Each send() function must print a different message:
"BOOT UART"
"APP UART"
In main():
main()
mode
1
Boot::UART::send()
2
App::UART::send()
Example 1
Input:
Output:
BOOT UART
Example 2
APP UART
Constraints:
Test Cases
Test Results
Input
Expected Output