Question: Homework 2 1. Enter the code in C that enables GPIO port A, B, and E and clocks in the AHB2 bus. 2. Enter the
Homework 2 1. Enter the code in C that enables GPIO port A, B, and E and clocks in the AHB2 bus. 2. Enter the C code that sets the GPIO port A, pin 0 to input mode. 3. Enter the C code that sets the GPIO port E, pin 8 to input mode. 4. Enter the C code that enables the GPIO port A. pin 0 to pull up mode. 5. Enter the C code that enables the GPIO port E, pin 8 to pull up mode. 6. Enter the code in C that set GPIOA pins 5, 1,2, and 3 to output mode. 7. Enter the code in C that set GPIOA pins 5, 1, 2, and 3 to output push-pull mode. 8. Enter the code in C that set GPIOA pins 5, 1, 2, and 3 to output a 1 (high). 9. Enter the code in C that set GPIOA pins 5 to output a 0 (low) and pins 1,2, and 3 to output a 1 (high) 10. Enter the code in C that reads the input state of GPIO port A and E pins
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
