armOS  0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
timer.h File Reference

Definition of System Timer registers addresses. More...

#include <peripherals/base.h>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TIMER_CLK_HZ   1000000
 
#define TIMER_CLK_1000_HZ   1000
 

Enumerations

enum  {
  TIMER_BASE = (MMIO_BASE + 0x3000),
  TIMER_CS = (TIMER_BASE + 0x00),
  TIMER_CLO = (TIMER_BASE + 0x04),
  TIMER_CHI = (TIMER_BASE + 0x08),
  TIMER_C0 = (TIMER_BASE + 0x0c),
  TIMER_C1 = (TIMER_BASE + 0x10),
  TIMER_C2 = (TIMER_BASE + 0x14),
  TIMER_C3 = (TIMER_BASE + 0x18),
  TIMER_CS_M0 = (1 << 0),
  TIMER_CS_M1 = (1 << 1),
  TIMER_CS_M2 = (1 << 2),
  TIMER_CS_M3 = (1 << 3)
}
 

Detailed Description

Definition of System Timer registers addresses.