Question: Problem 2 (30 points) - Develop an init() function that performs the one-time configuration of GPIO registers on the MSP432 needed to create the proper

Problem 2 (30 points) - Develop an init() function that performs the one-time configuration of GPIO registers on the MSP432 needed to create the proper button and LED setup for the following scenario (two inputs and two outputs). This system will use interrupts to detect button events. You must use only calls to the proper Driverlib function to configure the GPIO port. Output LED's should be on when the init() function returns. Pins Configuration Input - External SPST N/O switch connected between pin of MSP432 and Gnd P2.1 Input - External SPST N/O switch connected between pin of MSP432 and vec P2.6, P1.2 Output - External pin connected through resistor and LED to Gnd P2.2 void init(void) { Problem 2 (30 points) - Develop an init() function that performs the one-time configuration of GPIO registers on the MSP432 needed to create the proper button and LED setup for the following scenario (two inputs and two outputs). This system will use interrupts to detect button events. You must use only calls to the proper Driverlib function to configure the GPIO port. Output LED's should be on when the init() function returns. Pins Configuration Input - External SPST N/O switch connected between pin of MSP432 and Gnd P2.1 Input - External SPST N/O switch connected between pin of MSP432 and vec P2.6, P1.2 Output - External pin connected through resistor and LED to Gnd P2.2 void init(void) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
