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

What does "CMSDK_GPIO1->ALTFUNCSET = (1<<5);" do?

Dear All,

I came across initial function as the below,

void UartStdOutInit(void)
{
CMSDK_UART2->BAUDDIV = 16;
CMSDK_UART2->CTRL = 0x41; // High speed test mode, TX only
CMSDK_GPIO1->ALTFUNCSET = (1<<5);
return;

}

At the first time this function is called for initializing uart port.

But I can't understand what CMSDK_GPIO1->ALTFUNCSET = (1<<5); instruction do ?

Parents Reply Children