Actions

EmSys

Tm4clib-systick-defines

From EdWiki

Revision as of 06:43, 29 December 2018 by Jshankar (Talk | contribs) (STK_CSR_CLKSOURCE)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SysTick Macros

Defined Constants and Types for the Cortex SysTick

STK_CALIB

#define STK_CALIB MMIO32(SYS_TICK_BASE + 0x0C)

STK_CALIB_NOREF

#define STK_CALIB_NOREF (1 << 31)

STK_CALIB_SKEW

#define STK_CALIB_SKEW (1 << 30)

STK_CALIB_TENMS

#define STK_CALIB_TENMS 0x00FFFFFF

STK_CSR

#define STK_CSR MMIO32(SYS_TICK_BASE + 0x00)

STK_CSR_CLKSOURCE

#define STK_CSR_CLKSOURCE (1 << STK_CSR_CLKSOURCE_LSB)
#define STK_CSR_CLKSOURCE_AHB (1 << STK_CSR_CLKSOURCE_LSB)

STK_CSR_CLKSOURCE_LSB

#define STK_CSR_CLKSOURCE_LSB 2

STK_CSR_COUNTFLAG

#define STK_CSR_COUNTFLAG (1 << 16)

STK_CSR_ENABLE

#define STK_CSR_ENABLE (1 << 0)

STK_CSR_TICKINT

#define STK_CSR_TICKINT (1 << 1)

STK_CVR

#define STK_CVR MMIO32(SYS_TICK_BASE + 0x08)

STK_CVR_CURRENT

#define STK_CVR_CURRENT 0x00FFFFFF

STK_RVR

#define STK_RVR MMIO32(SYS_TICK_BASE + 0x04)

STK_RVR_RELOAD

#define STK_RVR_RELOAD 0x00FFFFFF