Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could someone explain what I should do in this C function? (a) Delete the #include statement. (b) Rewrite the C function TerminalPrint() so that the

image text in transcribedimage text in transcribed

Could someone explain what I should do in this C function?

(a) Delete the #include statement. (b) Rewrite the C function TerminalPrint() so that the body of the function outputs its argu- ulation (DRM) I/O to the JTAG UART memory mapped erface registers, instead of relying on the convenient printf() function. (c) Do not forget to double-check the reference manuals, especially Tables 5-2,5-3, and 5-4 for the JTAG UART register map. (d) Add an additional argument to the function, which is a pointer to the base address of the JTAG UART (which is also the data register). (e) Check the WSPACE field of the JTAG UART Control Register before sending a character. (f) Declare all I/O port pointers as volatile. void TerminalPrintString(altu8* strptr) // Keep reading characters until we see the NULL char while (strPtr != 0x00) // Print out the current character printf("%c", *stretr); // Move the pointer to the next char. strPtr++; // Append the newline at the end of the string. printf(" "); (a) Delete the #include statement. (b) Rewrite the C function TerminalPrint() so that the body of the function outputs its argu- ulation (DRM) I/O to the JTAG UART memory mapped erface registers, instead of relying on the convenient printf() function. (c) Do not forget to double-check the reference manuals, especially Tables 5-2,5-3, and 5-4 for the JTAG UART register map. (d) Add an additional argument to the function, which is a pointer to the base address of the JTAG UART (which is also the data register). (e) Check the WSPACE field of the JTAG UART Control Register before sending a character. (f) Declare all I/O port pointers as volatile. void TerminalPrintString(altu8* strptr) // Keep reading characters until we see the NULL char while (strPtr != 0x00) // Print out the current character printf("%c", *stretr); // Move the pointer to the next char. strPtr++; // Append the newline at the end of the string. printf(" ")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

What is the fighting words doctrine?

Answered: 1 week ago

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago