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.

求助有关TM4C123的库函数问题

Other Parts Discussed in Thread: TM4C123FH6PM

你好!我用的芯片是TM4C123FH6PM,请问:

void
GPIOPinWrite(uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val)
{

ASSERT(_GPIOBaseValid(ui32Port));

HWREG(ui32Port + (GPIO_O_DATA + (ui8Pins << 2))) = ui8Val;
}

的最后一句中问什么要将ui8Pins 左移2位?