Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM8L-DISCOVERY: enable UART output #279

Merged
merged 1 commit into from
Nov 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions STM8L-DISCOVERY/boardcore.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ BOARDINIT:
; Board I/O initialization
MOV CLK_PCKENR1,#0x21 ; Enable USART1[5] and TIM2[0]
MOV SYSCFG_RMPCR1,#0x10 ; Map USART1 to PA2[TX] and PA3[RX]
BSET PA_DDR,#2 ; Setup PA2[USART1_TX] as output
BSET PA_CR1,#2 ; Setup PA2[USART1_TX] as push-pull output

; Leds init
BSET PE_DDR,#7 ; PE7 LED green
Expand Down