TDT4160/o3/systick.h

16 lines
313 B
C
Raw Permalink Normal View History

2022-08-27 16:26:13 +02:00
#ifndef SYSTICK_H
#define SYSTICK_H
// Sys-Tick adresse
#define SYSTICK_BASE 0xE000E010
// Antall klokkesignaler per sekund
#define FREQUENCY 14000000
// CTRL-register-masker
#define SysTick_CTRL_CLKSOURCE_Msk 0b100
#define SysTick_CTRL_TICKINT_Msk 0b010
#define SysTick_CTRL_ENABLE_Msk 0b001
#endif