Question: [100 pts] Assignment 1. Implement the following functions: void UART initialize (int baudRate) Configures UCI to work in the UART mode at the specified baud
[100 pts] Assignment 1. Implement the following functions: void UART initialize (int baudRate) Configures UCI to work in the UART mode at the specified baud rate Sends a character via UART Waits for a character from UART and returns it. void UART sendCharacter (char c); char UART_getCharacter (); void UART_sendString (char string) Sends a string via UART using void UART_receiveLine (char buffer, Receives characters via UART using sendCharacter (char c) UART_ getCharacter () until it finds the new line character or until the limit of characters is exceeded. Writes that string to the buffer. Terminates the string by the null character. int limit); Need a".c" file Test them to make sure that they work properly and none of them writes or reads non- allocated memory. Make sure that UART_receiveLine () inserts the null character at the end of your string, and does not exceed the limit, including the null character
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
