This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
/* DriverLib Includes */
#include <ti/devices/msp432p4xx/driverlib/driverlib.h>
/* Standard Includes */
#include <stdint.h>
#include <stdbool.h>
//![Simple GPIO Config]
int main(void)
{
volatile uint32_t ii;
/* Halting the Watchdog */
MAP_WDT_A_holdTimer();
/* Configuring as output */
MAP_GPIO_setAsOutputPin(GPIO_PORT_P5, GPIO_PIN1 | GPIO_PIN3 | GPIO_PIN4);
while (1)
{
/* Delay Loop */
for(ii=0;ii<500000;ii++)
{
}
MAP_GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN1 | GPIO_PIN3 | GPIO_PIN4);
}
}
//![Simple GPIO Config]
Hi, we try to enable the GPIO PORT 5.1, 5.3, 5.4, the signals on this pin is not toggling, please help to resolve this issue.
If you have any code to toggle GPIO of MSP432P401R, kindly attach.
> MAP_GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN1 | GPIO_PIN3 | GPIO_PIN4);
This sets the pin(s) high (forever). Did you mean
> MAP_GPIO_toggleOutputOnPin((GPIO_PORT_P5, GPIO_PIN1 | GPIO_PIN3 | GPIO_PIN4);