libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
Collaboration diagram for Timer Registers:

Modules

 Timer Register Values
 

Macros

#define TIMER_CTRL(x)   MMIO32(x + 0x0)
 Timer control register. More...
 
#define TIMER_TARVAL(x)   MMIO32(x + 0x4)
 The target value(s). More...
 
#define TIMER_CURVAL(x)   MMIO32(x + 0x8)
 Current count value in modes 0, 2, and 3. More...
 
#define TIMER_CAPW(x)   MMIO32(x + 0xC)
 Cycle width in mode 3. More...
 
#define TIMER_CAPLH(x)   MMIO32(x + 0x10)
 Pulse width in modes 2 and 3. More...
 
#define TIMER_MOD2LF(x)   MMIO32(x + 0x14)
 PWM state in mode 1. More...
 
#define TIMER_OUTPVAL(x)   MMIO32(x + 0x80)
 Timer output pin value. More...
 
#define TIMER_INTCTL(x)   MMIO32(x + 0x84)
 Interrupt enable and mask. More...
 
#define TIMER_INTSTAT(x)   MMIO32(x + 0x88)
 Interrupt status before masking. More...
 
#define TIMER_INTMSKSTAT(x)   MMIO32(x + 0x8C)
 Interrupt status after masking. More...
 
#define TIMER_INTFLAG(x)   MMIO32(x + 0x90)
 Interrupt overflow; 1 if interrupt occurs again without being cleared. More...
 

Detailed Description

Macro Definition Documentation

◆ TIMER_CAPLH

#define TIMER_CAPLH (   x)    MMIO32(x + 0x10)

Pulse width in modes 2 and 3.

Definition at line 108 of file timer.h.

◆ TIMER_CAPW

#define TIMER_CAPW (   x)    MMIO32(x + 0xC)

Cycle width in mode 3.

Definition at line 106 of file timer.h.

◆ TIMER_CTRL

#define TIMER_CTRL (   x)    MMIO32(x + 0x0)

Timer control register.

Definition at line 99 of file timer.h.

◆ TIMER_CURVAL

#define TIMER_CURVAL (   x)    MMIO32(x + 0x8)

Current count value in modes 0, 2, and 3.

Definition at line 104 of file timer.h.

◆ TIMER_INTCTL

#define TIMER_INTCTL (   x)    MMIO32(x + 0x84)

Interrupt enable and mask.

Definition at line 114 of file timer.h.

◆ TIMER_INTFLAG

#define TIMER_INTFLAG (   x)    MMIO32(x + 0x90)

Interrupt overflow; 1 if interrupt occurs again without being cleared.

Definition at line 120 of file timer.h.

◆ TIMER_INTMSKSTAT

#define TIMER_INTMSKSTAT (   x)    MMIO32(x + 0x8C)

Interrupt status after masking.

Definition at line 118 of file timer.h.

◆ TIMER_INTSTAT

#define TIMER_INTSTAT (   x)    MMIO32(x + 0x88)

Interrupt status before masking.

Definition at line 116 of file timer.h.

◆ TIMER_MOD2LF

#define TIMER_MOD2LF (   x)    MMIO32(x + 0x14)

PWM state in mode 1.

Definition at line 110 of file timer.h.

◆ TIMER_OUTPVAL

#define TIMER_OUTPVAL (   x)    MMIO32(x + 0x80)

Timer output pin value.

Definition at line 112 of file timer.h.

◆ TIMER_TARVAL

#define TIMER_TARVAL (   x)    MMIO32(x + 0x4)

The target value(s).

Treated as uint32_t in counter mode (0), and as 2 uint16_t values in PWM mode (1)

Definition at line 102 of file timer.h.