libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
Collaboration diagram for STK_CSR Values:

Modules

 Clock source selection
 

Macros

#define STK_CSR_COUNTFLAG   (1 << 16)
 COUNTFLAG Indicates whether the counter has counted to 0 since the last read of this register: 0 = Timer has not counted to 0 1 = Timer has counted to 0. More...
 
#define STK_CSR_CLKSOURCE_LSB   2
 
#define STK_CSR_CLKSOURCE   (1 << STK_CSR_CLKSOURCE_LSB)
 CLKSOURCE: Clock source selection for 0, SysTick uses the IMPLEMENTATION DEFINED external reference clock. More...
 
#define STK_CSR_TICKINT   (1 << 1)
 TICKINT: SysTick exception request enable. More...
 
#define STK_CSR_ENABLE   (1 << 0)
 ENABLE: Counter enable. More...
 

Detailed Description

Macro Definition Documentation

◆ STK_CSR_CLKSOURCE

#define STK_CSR_CLKSOURCE   (1 << STK_CSR_CLKSOURCE_LSB)

CLKSOURCE: Clock source selection for 0, SysTick uses the IMPLEMENTATION DEFINED external reference clock.

for 1, SysTick uses the processor clock. If no external clock is provided, this bit reads as 1 and ignores writes.

Definition at line 109 of file systick.h.

◆ STK_CSR_CLKSOURCE_LSB

#define STK_CSR_CLKSOURCE_LSB   2

Definition at line 103 of file systick.h.

◆ STK_CSR_COUNTFLAG

#define STK_CSR_COUNTFLAG   (1 << 16)

COUNTFLAG Indicates whether the counter has counted to 0 since the last read of this register: 0 = Timer has not counted to 0 1 = Timer has counted to 0.

Definition at line 101 of file systick.h.

◆ STK_CSR_ENABLE

#define STK_CSR_ENABLE   (1 << 0)

ENABLE: Counter enable.

Definition at line 127 of file systick.h.

◆ STK_CSR_TICKINT

#define STK_CSR_TICKINT   (1 << 1)

TICKINT: SysTick exception request enable.

Definition at line 125 of file systick.h.