Documentation ¶
Overview ¶
Package syscfg provides interface to SysTem Configuration.
Peripheral: SYSCFG_Periph SysTem Configuration. Instances:
SYSCFG mmap.SYSCFG_BASE
Registers:
0x00 32 MEMRMP Memory remap register. 0x04 32 PMC Peripheral mode configuration register. 0x08 32 EXTICR[4] External interrupt configuration registers.
Import:
stm32/o/l1xx_md/mmap
Index ¶
- Constants
- Variables
- type EXTICR
- type MEMRMP
- type PMC
- type REXTICR
- func (r *REXTICR) AtomicClearBits(mask EXTICR)
- func (r *REXTICR) AtomicSetBits(mask EXTICR)
- func (r *REXTICR) AtomicStoreBits(mask, b EXTICR)
- func (r *REXTICR) Bits(mask EXTICR) EXTICR
- func (r *REXTICR) ClearBits(mask EXTICR)
- func (r *REXTICR) Load() EXTICR
- func (r *REXTICR) SetBits(mask EXTICR)
- func (r *REXTICR) Store(b EXTICR)
- func (r *REXTICR) StoreBits(mask, b EXTICR)
- type RMEMRMP
- func (r *RMEMRMP) AtomicClearBits(mask MEMRMP)
- func (r *RMEMRMP) AtomicSetBits(mask MEMRMP)
- func (r *RMEMRMP) AtomicStoreBits(mask, b MEMRMP)
- func (r *RMEMRMP) Bits(mask MEMRMP) MEMRMP
- func (r *RMEMRMP) ClearBits(mask MEMRMP)
- func (r *RMEMRMP) Load() MEMRMP
- func (r *RMEMRMP) SetBits(mask MEMRMP)
- func (r *RMEMRMP) Store(b MEMRMP)
- func (r *RMEMRMP) StoreBits(mask, b MEMRMP)
- type RMEXTICR
- type RMMEMRMP
- type RMPMC
- type RPMC
- func (r *RPMC) AtomicClearBits(mask PMC)
- func (r *RPMC) AtomicSetBits(mask PMC)
- func (r *RPMC) AtomicStoreBits(mask, b PMC)
- func (r *RPMC) Bits(mask PMC) PMC
- func (r *RPMC) ClearBits(mask PMC)
- func (r *RPMC) Load() PMC
- func (r *RPMC) SetBits(mask PMC)
- func (r *RPMC) Store(b PMC)
- func (r *RPMC) StoreBits(mask, b PMC)
- type SYSCFG_Periph
- func (p *SYSCFG_Periph) BOOT_MODE() RMMEMRMP
- func (p *SYSCFG_Periph) BaseAddr() uintptr
- func (p *SYSCFG_Periph) EXTI0(n int) RMEXTICR
- func (p *SYSCFG_Periph) EXTI1(n int) RMEXTICR
- func (p *SYSCFG_Periph) EXTI2(n int) RMEXTICR
- func (p *SYSCFG_Periph) EXTI3(n int) RMEXTICR
- func (p *SYSCFG_Periph) MEM_MODE() RMMEMRMP
- func (p *SYSCFG_Periph) USB_PU() RMPMC
Constants ¶
View Source
const ( MEM_MODEn = 0 BOOT_MODEn = 8 )
View Source
const ( EXTI0n = 0 EXTI1n = 4 EXTI2n = 8 EXTI3n = 12 )
View Source
const (
USB_PUn = 0
)
Variables ¶
View Source
var SYSCFG = (*SYSCFG_Periph)(unsafe.Pointer(uintptr(mmap.SYSCFG_BASE)))
Functions ¶
This section is empty.
Types ¶
type EXTICR ¶
type EXTICR uint32
const ( EXTI0 EXTICR = 0x0F << 0 //+ EXTI 0 configuration. EXTI1 EXTICR = 0x0F << 4 //+ EXTI 1 configuration. EXTI2 EXTICR = 0x0F << 8 //+ EXTI 2 configuration. EXTI3 EXTICR = 0x0F << 12 //+ EXTI 3 configuration. EXTI0_PA EXTICR = 0x00 << 12 // PA[0] pin. EXTI0_PB EXTICR = 0x01 << 0 // PB[0] pin. EXTI0_PC EXTICR = 0x02 << 0 // PC[0] pin. EXTI0_PD EXTICR = 0x03 << 0 // PD[0] pin. EXTI0_PE EXTICR = 0x04 << 0 // PE[0] pin. EXTI0_PH EXTICR = 0x05 << 0 // PH[0] pin. EXTI0_PF EXTICR = 0x06 << 0 // PF[0] pin. EXTI0_PG EXTICR = 0x07 << 0 // PG[0] pin. EXTI1_PA EXTICR = 0x00 << 12 // PA[1] pin. EXTI1_PB EXTICR = 0x01 << 4 // PB[1] pin. EXTI1_PC EXTICR = 0x02 << 4 // PC[1] pin. EXTI1_PD EXTICR = 0x03 << 4 // PD[1] pin. EXTI1_PE EXTICR = 0x04 << 4 // PE[1] pin. EXTI1_PH EXTICR = 0x05 << 4 // PH[1] pin. EXTI1_PF EXTICR = 0x06 << 4 // PF[1] pin. EXTI1_PG EXTICR = 0x07 << 4 // PG[1] pin. EXTI2_PA EXTICR = 0x00 << 12 // PA[2] pin. EXTI2_PB EXTICR = 0x01 << 8 // PB[2] pin. EXTI2_PC EXTICR = 0x02 << 8 // PC[2] pin. EXTI2_PD EXTICR = 0x03 << 8 // PD[2] pin. EXTI2_PE EXTICR = 0x04 << 8 // PE[2] pin. EXTI2_PH EXTICR = 0x05 << 8 // PH[2] pin. EXTI2_PF EXTICR = 0x06 << 8 // PF[2] pin. EXTI2_PG EXTICR = 0x07 << 8 // PG[2] pin. EXTI3_PA EXTICR = 0x00 << 12 // PA[3] pin. EXTI3_PB EXTICR = 0x01 << 12 // PB[3] pin. EXTI3_PC EXTICR = 0x02 << 12 // PC[3] pin. EXTI3_PD EXTICR = 0x03 << 12 // PD[3] pin. EXTI3_PE EXTICR = 0x04 << 12 // PE[3] pin. EXTI3_PF EXTICR = 0x03 << 12 // PF[3] pin. EXTI3_PG EXTICR = 0x04 << 12 // PG[3] pin. )
type REXTICR ¶
func (*REXTICR) AtomicClearBits ¶
func (*REXTICR) AtomicSetBits ¶
func (*REXTICR) AtomicStoreBits ¶
type RMEMRMP ¶
func (*RMEMRMP) AtomicClearBits ¶
func (*RMEMRMP) AtomicSetBits ¶
func (*RMEMRMP) AtomicStoreBits ¶
type RPMC ¶
func (*RPMC) AtomicClearBits ¶
func (*RPMC) AtomicSetBits ¶
func (*RPMC) AtomicStoreBits ¶
type SYSCFG_Periph ¶
func (*SYSCFG_Periph) BOOT_MODE ¶
func (p *SYSCFG_Periph) BOOT_MODE() RMMEMRMP
func (*SYSCFG_Periph) BaseAddr ¶
func (p *SYSCFG_Periph) BaseAddr() uintptr
func (*SYSCFG_Periph) EXTI0 ¶
func (p *SYSCFG_Periph) EXTI0(n int) RMEXTICR
func (*SYSCFG_Periph) EXTI1 ¶
func (p *SYSCFG_Periph) EXTI1(n int) RMEXTICR
func (*SYSCFG_Periph) EXTI2 ¶
func (p *SYSCFG_Periph) EXTI2(n int) RMEXTICR
func (*SYSCFG_Periph) EXTI3 ¶
func (p *SYSCFG_Periph) EXTI3(n int) RMEXTICR
func (*SYSCFG_Periph) MEM_MODE ¶
func (p *SYSCFG_Periph) MEM_MODE() RMMEMRMP
func (*SYSCFG_Periph) USB_PU ¶
func (p *SYSCFG_Periph) USB_PU() RMPMC
Click to show internal directories.
Click to hide internal directories.