NMSIS-Core  Version 1.2.0
NMSIS-Core support for Nuclei processor-based devices
Register Define and Type Definitions Of System Timer

Type definitions and defines for system timer registers. More...

Data Structures

struct  SysTimer_Type
 Structure type to access the System Timer (SysTimer). More...
 

Macros

#define SysTimer_MTIMECTL_TIMESTOP_Pos   0U
 SysTick Timer MTIMECTL: TIMESTOP bit Position. More...
 
#define SysTimer_MTIMECTL_TIMESTOP_Msk   (1UL << SysTimer_MTIMECTL_TIMESTOP_Pos)
 SysTick Timer MTIMECTL: TIMESTOP Mask. More...
 
#define SysTimer_MTIMECTL_CMPCLREN_Pos   1U
 SysTick Timer MTIMECTL: CMPCLREN bit Position. More...
 
#define SysTimer_MTIMECTL_CMPCLREN_Msk   (1UL << SysTimer_MTIMECTL_CMPCLREN_Pos)
 SysTick Timer MTIMECTL: CMPCLREN Mask. More...
 
#define SysTimer_MTIMECTL_CLKSRC_Pos   2U
 SysTick Timer MTIMECTL: CLKSRC bit Position. More...
 
#define SysTimer_MTIMECTL_CLKSRC_Msk   (1UL << SysTimer_MTIMECTL_CLKSRC_Pos)
 SysTick Timer MTIMECTL: CLKSRC Mask. More...
 
#define SysTimer_MSIP_MSIP_Pos   0U
 SysTick Timer MSIP: MSIP bit Position. More...
 
#define SysTimer_MSIP_MSIP_Msk   (1UL << SysTimer_MSIP_MSIP_Pos)
 SysTick Timer MSIP: MSIP Mask. More...
 
#define SysTimer_MTIMER_Msk   (0xFFFFFFFFFFFFFFFFULL)
 SysTick Timer MTIMER value Mask. More...
 
#define SysTimer_MTIMERCMP_Msk   (0xFFFFFFFFFFFFFFFFULL)
 SysTick Timer MTIMERCMP value Mask. More...
 
#define SysTimer_MTIMECTL_Msk   (0xFFFFFFFFUL)
 SysTick Timer MTIMECTL/MSTOP value Mask. More...
 
#define SysTimer_MSIP_Msk   (0xFFFFFFFFUL)
 SysTick Timer MSIP value Mask. More...
 
#define SysTimer_MSFTRST_Msk   (0xFFFFFFFFUL)
 SysTick Timer MSFTRST value Mask. More...
 
#define SysTimer_MSFRST_KEY   (0x80000A5FUL)
 SysTick Timer Software Reset Request Key. More...
 
#define SysTimer_CLINT_MSIP_OFS   (0x1000UL)
 Software interrupt register offset of clint mode in SysTick Timer. More...
 
#define SysTimer_CLINT_MTIMECMP_OFS   (0x5000UL)
 MTIMECMP register offset of clint mode in SysTick Timer. More...
 
#define SysTimer_CLINT_MTIME_OFS   (0xCFF8UL)
 MTIME register offset of clint mode in SysTick Timer. More...
 
#define SysTimer_BASE   __SYSTIMER_BASEADDR
 SysTick Base Address. More...
 
#define SysTimer   ((SysTimer_Type *) SysTimer_BASE)
 SysTick configuration struct. More...
 
#define SysTimer_CLINT_MSIP_BASE(hartid)   (unsigned long)((SysTimer_BASE) + (SysTimer_CLINT_MSIP_OFS) + ((hartid) << 2))
 
#define SysTimer_CLINT_MTIMECMP_BASE(hartid)   (unsigned long)((SysTimer_BASE) + (SysTimer_CLINT_MTIMECMP_OFS) + ((hartid) << 3))
 
#define SysTimer_CLINT_MTIME_BASE   (unsigned long)((SysTimer_BASE) + (SysTimer_CLINT_MTIME_OFS))
 

Detailed Description

Type definitions and defines for system timer registers.

Macro Definition Documentation

◆ SysTimer

#define SysTimer   ((SysTimer_Type *) SysTimer_BASE)

SysTick configuration struct.

Definition at line 94 of file core_feature_timer.h.

◆ SysTimer_BASE

#define SysTimer_BASE   __SYSTIMER_BASEADDR

SysTick Base Address.

Definition at line 93 of file core_feature_timer.h.

◆ SysTimer_CLINT_MSIP_BASE

#define SysTimer_CLINT_MSIP_BASE (   hartid)    (unsigned long)((SysTimer_BASE) + (SysTimer_CLINT_MSIP_OFS) + ((hartid) << 2))

Definition at line 97 of file core_feature_timer.h.

◆ SysTimer_CLINT_MSIP_OFS

#define SysTimer_CLINT_MSIP_OFS   (0x1000UL)

Software interrupt register offset of clint mode in SysTick Timer.

Definition at line 84 of file core_feature_timer.h.

◆ SysTimer_CLINT_MTIME_BASE

#define SysTimer_CLINT_MTIME_BASE   (unsigned long)((SysTimer_BASE) + (SysTimer_CLINT_MTIME_OFS))

Definition at line 99 of file core_feature_timer.h.

◆ SysTimer_CLINT_MTIME_OFS

#define SysTimer_CLINT_MTIME_OFS   (0xCFF8UL)

MTIME register offset of clint mode in SysTick Timer.

Definition at line 86 of file core_feature_timer.h.

◆ SysTimer_CLINT_MTIMECMP_BASE

#define SysTimer_CLINT_MTIMECMP_BASE (   hartid)    (unsigned long)((SysTimer_BASE) + (SysTimer_CLINT_MTIMECMP_OFS) + ((hartid) << 3))

Definition at line 98 of file core_feature_timer.h.

◆ SysTimer_CLINT_MTIMECMP_OFS

#define SysTimer_CLINT_MTIMECMP_OFS   (0x5000UL)

MTIMECMP register offset of clint mode in SysTick Timer.

Definition at line 85 of file core_feature_timer.h.

◆ SysTimer_MSFRST_KEY

#define SysTimer_MSFRST_KEY   (0x80000A5FUL)

SysTick Timer Software Reset Request Key.

Definition at line 82 of file core_feature_timer.h.

◆ SysTimer_MSFTRST_Msk

#define SysTimer_MSFTRST_Msk   (0xFFFFFFFFUL)

SysTick Timer MSFTRST value Mask.

Definition at line 80 of file core_feature_timer.h.

◆ SysTimer_MSIP_MSIP_Msk

#define SysTimer_MSIP_MSIP_Msk   (1UL << SysTimer_MSIP_MSIP_Pos)

SysTick Timer MSIP: MSIP Mask.

Definition at line 74 of file core_feature_timer.h.

◆ SysTimer_MSIP_MSIP_Pos

#define SysTimer_MSIP_MSIP_Pos   0U

SysTick Timer MSIP: MSIP bit Position.

Definition at line 73 of file core_feature_timer.h.

◆ SysTimer_MSIP_Msk

#define SysTimer_MSIP_Msk   (0xFFFFFFFFUL)

SysTick Timer MSIP value Mask.

Definition at line 79 of file core_feature_timer.h.

◆ SysTimer_MTIMECTL_CLKSRC_Msk

#define SysTimer_MTIMECTL_CLKSRC_Msk   (1UL << SysTimer_MTIMECTL_CLKSRC_Pos)

SysTick Timer MTIMECTL: CLKSRC Mask.

Definition at line 71 of file core_feature_timer.h.

◆ SysTimer_MTIMECTL_CLKSRC_Pos

#define SysTimer_MTIMECTL_CLKSRC_Pos   2U

SysTick Timer MTIMECTL: CLKSRC bit Position.

Definition at line 70 of file core_feature_timer.h.

◆ SysTimer_MTIMECTL_CMPCLREN_Msk

#define SysTimer_MTIMECTL_CMPCLREN_Msk   (1UL << SysTimer_MTIMECTL_CMPCLREN_Pos)

SysTick Timer MTIMECTL: CMPCLREN Mask.

Definition at line 69 of file core_feature_timer.h.

◆ SysTimer_MTIMECTL_CMPCLREN_Pos

#define SysTimer_MTIMECTL_CMPCLREN_Pos   1U

SysTick Timer MTIMECTL: CMPCLREN bit Position.

Definition at line 68 of file core_feature_timer.h.

◆ SysTimer_MTIMECTL_Msk

#define SysTimer_MTIMECTL_Msk   (0xFFFFFFFFUL)

SysTick Timer MTIMECTL/MSTOP value Mask.

Definition at line 78 of file core_feature_timer.h.

◆ SysTimer_MTIMECTL_TIMESTOP_Msk

#define SysTimer_MTIMECTL_TIMESTOP_Msk   (1UL << SysTimer_MTIMECTL_TIMESTOP_Pos)

SysTick Timer MTIMECTL: TIMESTOP Mask.

Definition at line 67 of file core_feature_timer.h.

◆ SysTimer_MTIMECTL_TIMESTOP_Pos

#define SysTimer_MTIMECTL_TIMESTOP_Pos   0U

SysTick Timer MTIMECTL: TIMESTOP bit Position.

Definition at line 66 of file core_feature_timer.h.

◆ SysTimer_MTIMER_Msk

#define SysTimer_MTIMER_Msk   (0xFFFFFFFFFFFFFFFFULL)

SysTick Timer MTIMER value Mask.

Definition at line 76 of file core_feature_timer.h.

◆ SysTimer_MTIMERCMP_Msk

#define SysTimer_MTIMERCMP_Msk   (0xFFFFFFFFFFFFFFFFULL)

SysTick Timer MTIMERCMP value Mask.

Definition at line 77 of file core_feature_timer.h.