mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
machine/stm32: add support for stm32f103xx UART
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
committed by
Ayke van Laethem
parent
a830451426
commit
47b667a4b8
@@ -0,0 +1,44 @@
|
||||
// Hand created file. DO NOT DELETE.
|
||||
// STM32F103XX bitfield definitions that are not auto-generated by gen-device-svd.py
|
||||
|
||||
// +build stm32,stm32f103xx
|
||||
|
||||
package stm32
|
||||
|
||||
const (
|
||||
// Flash Access Control Register flag values.
|
||||
FLASH_ACR_LATENCY_0 = 0x00000001
|
||||
FLASH_ACR_LATENCY_1 = 0x00000002
|
||||
FLASH_ACR_LATENCY_2 = 0x00000004
|
||||
|
||||
// Reset and Clock Control Control Register flag values.
|
||||
RCC_CFGR_SW_HSI = 0
|
||||
RCC_CFGR_SW_HSE = 1
|
||||
RCC_CFGR_SW_PLL = 2
|
||||
|
||||
RCC_CFGR_SWS_HSI = 0x00000000
|
||||
RCC_CFGR_SWS_HSE = 0x00000004
|
||||
RCC_CFGR_SWS_PLL = 0x00000008
|
||||
|
||||
RCC_CFGR_PPRE1_DIV_NONE = 0x00000000
|
||||
RCC_CFGR_PPRE1_DIV_2 = 0x00000400
|
||||
RCC_CFGR_PPRE1_DIV_4 = 0x00000500
|
||||
RCC_CFGR_PPRE1_DIV_8 = 0x00000600
|
||||
RCC_CFGR_PPRE1_DIV_16 = 0x00000700
|
||||
|
||||
RCC_CFGR_PLLMUL_2 = 0x00000000
|
||||
RCC_CFGR_PLLMUL_3 = 0x00040000
|
||||
RCC_CFGR_PLLMUL_4 = 0x00080000
|
||||
RCC_CFGR_PLLMUL_5 = 0x000C0000
|
||||
RCC_CFGR_PLLMUL_6 = 0x00100000
|
||||
RCC_CFGR_PLLMUL_7 = 0x00140000
|
||||
RCC_CFGR_PLLMUL_8 = 0x00180000
|
||||
RCC_CFGR_PLLMUL_9 = 0x001C0000
|
||||
RCC_CFGR_PLLMUL_10 = 0x00200000
|
||||
RCC_CFGR_PLLMUL_11 = 0x00240000
|
||||
RCC_CFGR_PLLMUL_12 = 0x00280000
|
||||
RCC_CFGR_PLLMUL_13 = 0x002C0000
|
||||
RCC_CFGR_PLLMUL_14 = 0x00300000
|
||||
RCC_CFGR_PLLMUL_15 = 0x00340000
|
||||
RCC_CFGR_PLLMUL_16 = 0x00380000
|
||||
)
|
||||
Reference in New Issue
Block a user