mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 20:13:40 +00:00
machine/stm32f103xx: implementation of RTC/TIM based timers
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
committed by
Ayke van Laethem
parent
fb8dcde2f9
commit
f71e1bcf03
@@ -137,6 +137,7 @@ func (uart UART) Configure(config UARTConfig) {
|
||||
stm32.USART1.CR1 = stm32.USART_CR1_TE | stm32.USART_CR1_RE | stm32.USART_CR1_RXNEIE | stm32.USART_CR1_UE
|
||||
|
||||
// Enable RX IRQ.
|
||||
arm.SetPriority(stm32.IRQ_USART1, 0xc0)
|
||||
arm.EnableIRQ(stm32.IRQ_USART1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user