Question
STM32L100RBT6 USART1 RAMAP PB6-7
Posted on June 23, 2014 at 11:21
Hello,
I have problem with USART1. Unfortunately I can't use dedicated pins (PA9-10). Since few days I'm trying to find some information about pin remapping in STM32L There is no MAPR register like in STM32F1. How can I resolve this problem? Where can I found more information? I use Std library. Here is my USART1 initialization code below:USART_InitTypeDef USART_InitStruct;
RCC->AHBENR|=RCC_AHBENR_GPIOBEN;
RCC->APB2ENR|=RCC_APB2ENR_USART1EN;
gpio_pin_cfg(GPIOB, 6 , GPIO_AF7_PP_10MHz);
//USART1 Tx
gpio_pin_cfg(GPIOB, 7 , GPIO_AF7_PP_10MHz);
//USART1 Rx
USART_InitStruct.USART_BaudRate=9600;
USART_InitStruct.USART_HardwareFlowControl=USART_HardwareFlowControl_None;
USART_InitStruct.USART_Mode=USART_Mode_Tx;
USART_InitStruct.USART_WordLength = USART_WordLength_8b;
USART_InitStruct.USART_StopBits = USART_StopBits_1;
USART_InitStruct.USART_Parity = USART_Parity_No ;
USART_Init(USART1, &USART_InitStruct);
USART_Cmd(USART1, ENABLE);
#stm32l100-uart-remap