STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
systick_reg.h File Reference

SysTick registers: the Armv7-M 24-bit system timer (PM0214, SysTick chapter). More...

#include <stdint.h>
Include dependency graph for systick_reg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SysTickRegisters_t
 SysTick register block. More...

Macros

#define SYSTICK_BASE   (0xE000E010UL)
 SysTick base address (System Control Space).
#define SYSTICK   ((SysTickRegisters_t *)SYSTICK_BASE)
 The SysTick instance.
CTRL - control and status (0x00)
#define SYSTICK_CTRL_ENABLE_Pos   (0U)
 Bit 0.
#define SYSTICK_CTRL_ENABLE   ((uint32_t)1U << SYSTICK_CTRL_ENABLE_Pos)
  rw Counter enable.
#define SYSTICK_CTRL_TICKINT_Pos   (1U)
 Bit 1.
#define SYSTICK_CTRL_TICKINT   ((uint32_t)1U << SYSTICK_CTRL_TICKINT_Pos)
  rw Raise the SysTick exception when the counter reaches 0.
#define SYSTICK_CTRL_CLKSOURCE_Pos   (2U)
 Bit 2.
#define SYSTICK_CTRL_CLKSOURCE   ((uint32_t)1U << SYSTICK_CTRL_CLKSOURCE_Pos)
  rw Clock source: 1 = processor clock (HCLK), 0 = HCLK / 8.
#define SYSTICK_CTRL_COUNTFLAG_Pos   (16U)
 Bit 16.
#define SYSTICK_CTRL_COUNTFLAG   ((uint32_t)1U << SYSTICK_CTRL_COUNTFLAG_Pos)
  ro The counter reached 0 since the last read; reading clears it.
LOAD, VAL - reload and current value (0x04, 0x08)
#define SYSTICK_LOAD_RELOAD_Pos   (0U)
 Bits 23:0.
#define SYSTICK_LOAD_RELOAD_Msk   ((uint32_t)0xFFFFFFU << SYSTICK_LOAD_RELOAD_Pos)
  rw Reload value: the tick period is RELOAD + 1 clocks.
#define SYSTICK_VAL_CURRENT_Pos   (0U)
 Bits 23:0.
#define SYSTICK_VAL_CURRENT_Msk   ((uint32_t)0xFFFFFFU << SYSTICK_VAL_CURRENT_Pos)
  rw Current counter value.
CALIB - calibration (0x0C)
#define SYSTICK_CALIB_TENMS_Pos   (0U)
 Bits 23:0.
#define SYSTICK_CALIB_TENMS_Msk   ((uint32_t)0xFFFFFFU << SYSTICK_CALIB_TENMS_Pos)
  ro Reload value for 10 ms (0 if unknown).
#define SYSTICK_CALIB_SKEW_Pos   (30U)
 Bit 30.
#define SYSTICK_CALIB_SKEW   ((uint32_t)1U << SYSTICK_CALIB_SKEW_Pos)
  ro TENMS is not exactly 10 ms.
#define SYSTICK_CALIB_NOREF_Pos   (31U)
 Bit 31.
#define SYSTICK_CALIB_NOREF   ((uint32_t)1U << SYSTICK_CALIB_NOREF_Pos)
  ro No external reference clock.

Typedefs

typedef struct SysTickRegisters_t SysTickRegisters_t
 SysTick register block.

Detailed Description

SysTick registers: the Armv7-M 24-bit system timer (PM0214, SysTick chapter).

Definition in file systick_reg.h.