ECE347_HW10_C_language
ECE347 - Extra HW on C language
1. Write a C language main function that multiplies two integers a and b, with the result being
stored in a long integer. Use some a
itrary numbers for testing.
2. Re-write the above problem such that the main function initializes a and b, then calls a
function that uses a and b as input parameters, performs the multiplication, and returns the long
esult.
3. What is the Code Wa
ior name used to identify the data direction register, bit 6, on port P?
4. Write a simple C language function that initializes the GPIO bits on port B, such that bit 7 is
an input with pullup enabled, bit 6 is an output, and no other bits are manipulated.