Tool/software: TI-RTOS
I am having trouble writing to an entire port at once, having to write each pin individually per line of code. To define my pins i use the following:
PIN_Handle BatteryLEDHandle;
PIN_State BatteryLEDState;
PIN_Config LEDPinTable[] = { PIN_ID(10) | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL, PIN_ID(11) | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL, PIN_ID(12) | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, PIN_ID(13) | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, PIN_ID(14) | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, PIN_TERMINATE }; then I assign a handle to the table. BatteryLEDHandle= PIN_open(&BatteryLEDState, LEDPinTable);
However, PIN_setPortOutputValue(BatteryLEDHandle, 0x02) does not turn on or off any LEDs. I have to use the following line to make it work. Which I have to repeat for every
Pin I want to set. PIN_setOutputValue(BatteryLEDHandle, PIN_ID(10), 1);