Skip to content

Instantly share code, notes, and snippets.

View ryan4yin's full-sized avatar
📖
coding

Ryan Yin ryan4yin

📖
coding
View GitHub Profile
@glegrain
glegrain / uart.c
Last active March 26, 2024 23:29
STM32 printf retarget to UART
/*# 1- Identify the UART interface, GPIO pins and Alternate Function #########*/
/* For example:
* B-L475E-IOT01A:
* PB6 ------> USART1_TX
* PB7 ------> USART1_RX
*
* NUCLEO-L476RG:
* PA2 ------> USART2_TX
* PA3 ------> USART2_RX
*