How to use devpack DP0-DP3 pins as an output?
PIN_Config ledPinTable[] = {
Board_LED0 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
Board_LED1 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
Board_DP0 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
PIN_TERMINATE
};
PIN_setOutputValue(ledPinHandle, Board_DP0, 1);
I want to drive a lad with using DP0 pin on the devpack but it doesnt work this code. I measured the voltage between DP0 and Vdd. It has no output voltage.
these part of my code are enough to configure DP0 pin as an output for driving a led?