This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Question about bit-banding for Tiva M4 core

Hi,

I read example projects of Tiva-C 1294. There are many similar uses '    GPIOPinWrite(GPIO_PORTH_BASE, GPIO_PIN_2, GPIO_PIN_2);'

The prototype is :

extern void GPIOPinWrite(uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val);

The last parameter is a value, not a pin. I have asked the question on TI forum. I know that it is bit-banding, but that answer lacks detail on why it is bit-banding, it is set to '1' or clear to '0'?

Could you tell me more the line on GPIO_PIN_2?

Thanks,

void EK_TM4C1294XL_initWiFi(void)

{

    /* Configure EN & CS pins to disable CC3100 */

    GPIOPinTypeGPIOOutput(GPIO_PORTH_BASE, GPIO_PIN_2);

    GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE, GPIO_PIN_6);

    GPIOPinWrite(GPIO_PORTH_BASE, GPIO_PIN_2, GPIO_PIN_2);

    GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_6, 0);