Question: 3. (10) Write a C function, named TerminalRead() using memory-mapped accesses to the JTAG UART interface in the style of TerminalPrint in Problem 1 (No

3. (10) Write a C function, named TerminalRead() using memory-mapped accesses to the JTAG UART interface in the style of TerminalPrint in Problem 1 (No EIA, just C). This function must: Receive two pointers as arguments. The first is the base address of the JTAG UART. The second is an argument to a buffer in memory reserved for an input ASCII character string. Read a LF-terminated ASCII character string in from the JTAG UART port and store it as a NULL-terminated string in the buffer provided in the argument. 3. (10) Write a C function, named TerminalRead() using memory-mapped accesses to the JTAG UART interface in the style of TerminalPrint in Problem 1 (No EIA, just C). This function must: Receive two pointers as arguments. The first is the base address of the JTAG UART. The second is an argument to a buffer in memory reserved for an input ASCII character string. Read a LF-terminated ASCII character string in from the JTAG UART port and store it as a NULL-terminated string in the buffer provided in the argument
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
