Documentation ¶
Overview ¶
Package systick gives an access to System Timer registers.
Detailed description of all registers covered by this package can be found in "Cortex-M[0-4] Devices Generic User Guide", chapter 4 "Cortex-M[0-4] Peripherals".
Peripheral: SYSTICK_Periph Cortex-M 24-bit system timer. Instances:
SYSTICK 0xE000E010
Registers:
0x00 32 CSR Control and Status Register (any read clears COUNTFLAG) 0x04 32 RVR Reload Value Register. 0x08 32 CVR Current Value Register. 0x0C 32 CALIB Calibration Value Register.
Index ¶
- Variables
- type CALIB
- type CSR
- type CVR
- type RCALIB
- func (r *RCALIB) AtomicClearBits(mask CALIB)
- func (r *RCALIB) AtomicSetBits(mask CALIB)
- func (r *RCALIB) AtomicStoreBits(mask, b CALIB)
- func (r *RCALIB) Bits(mask CALIB) CALIB
- func (r *RCALIB) ClearBits(mask CALIB)
- func (r *RCALIB) Load() CALIB
- func (r *RCALIB) SetBits(mask CALIB)
- func (r *RCALIB) Store(b CALIB)
- func (r *RCALIB) StoreBits(mask, b CALIB)
- type RCSR
- func (r *RCSR) AtomicClearBits(mask CSR)
- func (r *RCSR) AtomicSetBits(mask CSR)
- func (r *RCSR) AtomicStoreBits(mask, b CSR)
- func (r *RCSR) Bits(mask CSR) CSR
- func (r *RCSR) ClearBits(mask CSR)
- func (r *RCSR) Load() CSR
- func (r *RCSR) SetBits(mask CSR)
- func (r *RCSR) Store(b CSR)
- func (r *RCSR) StoreBits(mask, b CSR)
- type RCVR
- func (r *RCVR) AtomicClearBits(mask CVR)
- func (r *RCVR) AtomicSetBits(mask CVR)
- func (r *RCVR) AtomicStoreBits(mask, b CVR)
- func (r *RCVR) Bits(mask CVR) CVR
- func (r *RCVR) ClearBits(mask CVR)
- func (r *RCVR) Load() CVR
- func (r *RCVR) SetBits(mask CVR)
- func (r *RCVR) Store(b CVR)
- func (r *RCVR) StoreBits(mask, b CVR)
- type RMCALIB
- type RMCSR
- type RMCVR
- type RMRVR
- type RRVR
- func (r *RRVR) AtomicClearBits(mask RVR)
- func (r *RRVR) AtomicSetBits(mask RVR)
- func (r *RRVR) AtomicStoreBits(mask, b RVR)
- func (r *RRVR) Bits(mask RVR) RVR
- func (r *RRVR) ClearBits(mask RVR)
- func (r *RRVR) Load() RVR
- func (r *RRVR) SetBits(mask RVR)
- func (r *RRVR) Store(b RVR)
- func (r *RRVR) StoreBits(mask, b RVR)
- type RVR
- type SYSTICK_Periph
- func (p *SYSTICK_Periph) BaseAddr() uintptr
- func (p *SYSTICK_Periph) CLKSOURCE() RMCSR
- func (p *SYSTICK_Periph) COUNTFLAG() RMCSR
- func (p *SYSTICK_Periph) CURRENT() RMCVR
- func (p *SYSTICK_Periph) ENABLE() RMCSR
- func (p *SYSTICK_Periph) NOREF() RMCALIB
- func (p *SYSTICK_Periph) RELOAD() RMRVR
- func (p *SYSTICK_Periph) SKEW() RMCALIB
- func (p *SYSTICK_Periph) TENMS() RMCALIB
- func (p *SYSTICK_Periph) TICKINT() RMCSR
Constants ¶
This section is empty.
Variables ¶
View Source
var SYSTICK = (*SYSTICK_Periph)(unsafe.Pointer(uintptr(0xE000E010)))
Functions ¶
This section is empty.
Types ¶
type CVR ¶
type CVR uint32
const (
CURRENT CVR = 1<<24 - 1 //+ Read: couter value. Write: clears to zero.
)
type RCALIB ¶
func (*RCALIB) AtomicClearBits ¶
func (*RCALIB) AtomicSetBits ¶
func (*RCALIB) AtomicStoreBits ¶
type RCSR ¶
func (*RCSR) AtomicClearBits ¶
func (*RCSR) AtomicSetBits ¶
func (*RCSR) AtomicStoreBits ¶
type RCVR ¶
func (*RCVR) AtomicClearBits ¶
func (*RCVR) AtomicSetBits ¶
func (*RCVR) AtomicStoreBits ¶
type RRVR ¶
func (*RRVR) AtomicClearBits ¶
func (*RRVR) AtomicSetBits ¶
func (*RRVR) AtomicStoreBits ¶
type RVR ¶
type RVR uint32
const (
RELOAD RVR = 1<<24 - 1 //+ Loaded into CVR when the counter reaches 0.
)
type SYSTICK_Periph ¶
func (*SYSTICK_Periph) BaseAddr ¶
func (p *SYSTICK_Periph) BaseAddr() uintptr
func (*SYSTICK_Periph) CLKSOURCE ¶
func (p *SYSTICK_Periph) CLKSOURCE() RMCSR
func (*SYSTICK_Periph) COUNTFLAG ¶
func (p *SYSTICK_Periph) COUNTFLAG() RMCSR
func (*SYSTICK_Periph) CURRENT ¶
func (p *SYSTICK_Periph) CURRENT() RMCVR
func (*SYSTICK_Periph) ENABLE ¶
func (p *SYSTICK_Periph) ENABLE() RMCSR
func (*SYSTICK_Periph) NOREF ¶
func (p *SYSTICK_Periph) NOREF() RMCALIB
func (*SYSTICK_Periph) RELOAD ¶
func (p *SYSTICK_Periph) RELOAD() RMRVR
func (*SYSTICK_Periph) SKEW ¶
func (p *SYSTICK_Periph) SKEW() RMCALIB
func (*SYSTICK_Periph) TENMS ¶
func (p *SYSTICK_Periph) TENMS() RMCALIB
func (*SYSTICK_Periph) TICKINT ¶
func (p *SYSTICK_Periph) TICKINT() RMCSR
Click to show internal directories.
Click to hide internal directories.