machine/stm32f103xx: implementation of RTC/TIM based timers

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2018-12-27 07:57:26 +01:00
committed by Ayke van Laethem
parent fb8dcde2f9
commit f71e1bcf03
3 changed files with 158 additions and 8 deletions
+1
View File
@@ -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)
}