Skip to content

Instantly share code, notes, and snippets.

View ryan4yin's full-sized avatar
📖
coding

Ryan Yin ryan4yin

📖
coding
View GitHub Profile
@ryan4yin
ryan4yin / uart.c
Created February 21, 2023 16:38 — forked from glegrain/uart.c
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
*