STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
Loading...
Searching...
No Matches
systick_reg.h
Go to the documentation of this file.
1
5
#ifndef SYSTICK_REG_H
6
#define SYSTICK_REG_H
7
8
#include <stdint.h>
9
14
15
#define SYSTICK_BASE (0xE000E010UL)
16
18
typedef
struct
SysTickRegisters_t
19
{
20
volatile
uint32_t
CTRL
;
21
volatile
uint32_t
LOAD
;
22
volatile
uint32_t
VAL
;
23
volatile
const
uint32_t
CALIB
;
24
}
SysTickRegisters_t
;
25
26
#define SYSTICK ((SysTickRegisters_t *)SYSTICK_BASE)
27
30
#define SYSTICK_CTRL_ENABLE_Pos (0U)
32
#define SYSTICK_CTRL_ENABLE ((uint32_t)1U << SYSTICK_CTRL_ENABLE_Pos)
33
#define SYSTICK_CTRL_TICKINT_Pos (1U)
35
#define SYSTICK_CTRL_TICKINT ((uint32_t)1U << SYSTICK_CTRL_TICKINT_Pos)
36
#define SYSTICK_CTRL_CLKSOURCE_Pos (2U)
38
#define SYSTICK_CTRL_CLKSOURCE ((uint32_t)1U << SYSTICK_CTRL_CLKSOURCE_Pos)
39
#define SYSTICK_CTRL_COUNTFLAG_Pos (16U)
41
#define SYSTICK_CTRL_COUNTFLAG ((uint32_t)1U << SYSTICK_CTRL_COUNTFLAG_Pos)
43
46
#define SYSTICK_LOAD_RELOAD_Pos (0U)
48
#define SYSTICK_LOAD_RELOAD_Msk ((uint32_t)0xFFFFFFU << SYSTICK_LOAD_RELOAD_Pos)
49
#define SYSTICK_VAL_CURRENT_Pos (0U)
51
#define SYSTICK_VAL_CURRENT_Msk ((uint32_t)0xFFFFFFU << SYSTICK_VAL_CURRENT_Pos)
53
56
#define SYSTICK_CALIB_TENMS_Pos (0U)
58
#define SYSTICK_CALIB_TENMS_Msk ((uint32_t)0xFFFFFFU << SYSTICK_CALIB_TENMS_Pos)
59
#define SYSTICK_CALIB_SKEW_Pos (30U)
61
#define SYSTICK_CALIB_SKEW ((uint32_t)1U << SYSTICK_CALIB_SKEW_Pos)
62
#define SYSTICK_CALIB_NOREF_Pos (31U)
64
#define SYSTICK_CALIB_NOREF ((uint32_t)1U << SYSTICK_CALIB_NOREF_Pos)
66
68
69
#endif
/* SYSTICK_REG_H */
SysTickRegisters_t
SysTick register block.
Definition
systick_reg.h:19
SysTickRegisters_t::CALIB
volatile const uint32_t CALIB
0x0C: calibration, <span class="regaccess">ro</span>
Definition
systick_reg.h:23
SysTickRegisters_t::CTRL
volatile uint32_t CTRL
0x00: control and status
Definition
systick_reg.h:20
SysTickRegisters_t::LOAD
volatile uint32_t LOAD
0x04: reload value
Definition
systick_reg.h:21
SysTickRegisters_t::VAL
volatile uint32_t VAL
0x08: current value; any write clears it
Definition
systick_reg.h:22
arch
cortex-m4
inc
systick_reg.h
Generated by
1.18.0