PX4 / sapog

Sapog - advanced multiplatform ESC firmware
https://kb.zubax.com/x/cYAh
BSD 3-Clause "New" or "Revised" License
204 stars 142 forks source link

On which pin UART2 is? #32

Closed BreederBai closed 6 years ago

BreederBai commented 6 years ago

I want to learn ChibiOS, and “sapog” is a very good example. I want to use USART2, but I can't determine which pin USART2 is on. The data sheet of STM32F105 shows that PA2, PA3, PD5, PD6 can be used for USART2. I think there should be a file that specifies the mapping between pins and USART2. But I am not sure what I think is right.

pavel-kirienko commented 6 years ago

GPIO remappings are configured here: https://github.com/PX4/sapog/blob/master/firmware/src/board/board.cpp#L221-L233

By default, USART2 is not remapped.