|
发表于 2020-7-1 19:53:38
|
显示全部楼层
本帖最后由 hydrosurvey 于 2020-7-1 19:55 编辑
文档中Pin7和Pin8与Pin2和Pin3 复用UART0,代码中:
case UART0_BASE:
//PA13:UART0-RX PA14:UART0-TX
GPIO_InitStruct.Pin = LL_GPIO_PIN_13|LL_GPIO_PIN_14;
GPIO_InitStruct.Mode = LL_GPIO_MODE_DIGITAL;
GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
GPIO_InitStruct.Pull = DISABLE;
GPIO_InitStruct.RemapPin = DISABLE;
LL_GPIO_Init(GPIOA, &GPIO_InitStruct);
定义的是Pin13和Pin14
哪个是正确的?还是有另外的写法?
|
|