libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.

Unless otherwise specified, these registers are RW. More...

Collaboration diagram for GP Timer registers:

Macros

#define GPTMCFG(tim_base)   MMIO32((tim_base) + 0)
 Configuration. More...
 
#define GPTMTAMR(tim_base)   MMIO32((tim_base) + 0x4)
 Timer A mode. More...
 
#define GPTMTBMR(tim_base)   MMIO32((tim_base) + 0x8)
 Timer B mode. More...
 
#define GPTMCTL(tim_base)   MMIO32((tim_base) + 0xc)
 Control. More...
 
#define GPTMSYNC(tim_base)   MMIO32((tim_base) + 0x10)
 Synchronize. More...
 
#define GPTMIMR(tim_base)   MMIO32((tim_base) + 0x18)
 Interrupt mask. More...
 
#define GPTMRIS(tim_base)   MMIO32((tim_base) + 0x1c)
 Raw interrupt status (RO) More...
 
#define GPTMMIS(tim_base)   MMIO32((tim_base) + 0x20)
 Masked interrupt status (RO) More...
 
#define GPTMICR(tim_base)   MMIO32((tim_base) + 0x24)
 Interrupt clear (W1C) More...
 
#define GPTMTAILR(tim_base)   MMIO32((tim_base) + 0x28)
 Timer A Interval load. More...
 
#define GPTMTBILR(tim_base)   MMIO32((tim_base) + 0x2c)
 Timer B Interval load. More...
 
#define GPTMTAMATCHR(tim_base)   MMIO32((tim_base) + 0x30)
 Timer A match. More...
 
#define GPTMTBMATCHR(tim_base)   MMIO32((tim_base) + 0x34)
 Timer B match. More...
 
#define GPTMTAPR(tim_base)   MMIO32((tim_base) + 0x38)
 Timer A prescale. More...
 
#define GPTMTBPR(tim_base)   MMIO32((tim_base) + 0x3c)
 Timer B prescale. More...
 
#define GPTMTAPMR(tim_base)   MMIO32((tim_base) + 0x40)
 Timer A prescale match. More...
 
#define GPTMTBPMR(tim_base)   MMIO32((tim_base) + 0x44)
 Timer A prescale match. More...
 
#define GPTMTAR(tim_base)   MMIO32((tim_base) + 0x48)
 
#define GPTMTBR(tim_base)   MMIO32((tim_base) + 0x4c)
 
#define GPTMTAV(tim_base)   MMIO32((tim_base) + 0x50)
 
#define GPTMTBV(tim_base)   MMIO32((tim_base) + 0x54)
 
#define GPTMRTCPD(tim_base)   MMIO32((tim_base) + 0x58)
 RTC Predivide (RO) More...
 
#define GPTMTAPS(tim_base)   MMIO32((tim_base) + 0x5c)
 Timer A prescale snapshot (RO) More...
 
#define GPTMTBPS(tim_base)   MMIO32((tim_base) + 0x60)
 Timer B prescale snapshot (RO) More...
 
#define GPTMTAPV(tim_base)   MMIO32((tim_base) + 0x64)
 Timer A prescale value (RO) More...
 
#define GPTMTBPV(tim_base)   MMIO32((tim_base) + 0x68)
 Timer B prescale value (RO) More...
 
#define GPTMPP(tim_base)   MMIO32((tim_base) + 0xfc0)
 Peripheral properties (RO) More...
 

Detailed Description

Unless otherwise specified, these registers are RW.

Macro Definition Documentation

◆ GPTMCFG

#define GPTMCFG (   tim_base)    MMIO32((tim_base) + 0)

Configuration.

Definition at line 43 of file timer.h.

◆ GPTMCTL

#define GPTMCTL (   tim_base)    MMIO32((tim_base) + 0xc)

Control.

Definition at line 49 of file timer.h.

◆ GPTMICR

#define GPTMICR (   tim_base)    MMIO32((tim_base) + 0x24)

Interrupt clear (W1C)

Definition at line 59 of file timer.h.

◆ GPTMIMR

#define GPTMIMR (   tim_base)    MMIO32((tim_base) + 0x18)

Interrupt mask.

Definition at line 53 of file timer.h.

◆ GPTMMIS

#define GPTMMIS (   tim_base)    MMIO32((tim_base) + 0x20)

Masked interrupt status (RO)

Definition at line 57 of file timer.h.

◆ GPTMPP

#define GPTMPP (   tim_base)    MMIO32((tim_base) + 0xfc0)

Peripheral properties (RO)

Definition at line 95 of file timer.h.

◆ GPTMRIS

#define GPTMRIS (   tim_base)    MMIO32((tim_base) + 0x1c)

Raw interrupt status (RO)

Definition at line 55 of file timer.h.

◆ GPTMRTCPD

#define GPTMRTCPD (   tim_base)    MMIO32((tim_base) + 0x58)

RTC Predivide (RO)

Definition at line 85 of file timer.h.

◆ GPTMSYNC

#define GPTMSYNC (   tim_base)    MMIO32((tim_base) + 0x10)

Synchronize.

Definition at line 51 of file timer.h.

◆ GPTMTAILR

#define GPTMTAILR (   tim_base)    MMIO32((tim_base) + 0x28)

Timer A Interval load.

Definition at line 61 of file timer.h.

◆ GPTMTAMATCHR

#define GPTMTAMATCHR (   tim_base)    MMIO32((tim_base) + 0x30)

Timer A match.

Definition at line 65 of file timer.h.

◆ GPTMTAMR

#define GPTMTAMR (   tim_base)    MMIO32((tim_base) + 0x4)

Timer A mode.

Definition at line 45 of file timer.h.

◆ GPTMTAPMR

#define GPTMTAPMR (   tim_base)    MMIO32((tim_base) + 0x40)

Timer A prescale match.

Definition at line 73 of file timer.h.

◆ GPTMTAPR

#define GPTMTAPR (   tim_base)    MMIO32((tim_base) + 0x38)

Timer A prescale.

Definition at line 69 of file timer.h.

◆ GPTMTAPS

#define GPTMTAPS (   tim_base)    MMIO32((tim_base) + 0x5c)

Timer A prescale snapshot (RO)

Definition at line 87 of file timer.h.

◆ GPTMTAPV

#define GPTMTAPV (   tim_base)    MMIO32((tim_base) + 0x64)

Timer A prescale value (RO)

Definition at line 91 of file timer.h.

◆ GPTMTAR

#define GPTMTAR (   tim_base)    MMIO32((tim_base) + 0x48)

Definition at line 77 of file timer.h.

◆ GPTMTAV

#define GPTMTAV (   tim_base)    MMIO32((tim_base) + 0x50)

Definition at line 81 of file timer.h.

◆ GPTMTBILR

#define GPTMTBILR (   tim_base)    MMIO32((tim_base) + 0x2c)

Timer B Interval load.

Definition at line 63 of file timer.h.

◆ GPTMTBMATCHR

#define GPTMTBMATCHR (   tim_base)    MMIO32((tim_base) + 0x34)

Timer B match.

Definition at line 67 of file timer.h.

◆ GPTMTBMR

#define GPTMTBMR (   tim_base)    MMIO32((tim_base) + 0x8)

Timer B mode.

Definition at line 47 of file timer.h.

◆ GPTMTBPMR

#define GPTMTBPMR (   tim_base)    MMIO32((tim_base) + 0x44)

Timer A prescale match.

Definition at line 75 of file timer.h.

◆ GPTMTBPR

#define GPTMTBPR (   tim_base)    MMIO32((tim_base) + 0x3c)

Timer B prescale.

Definition at line 71 of file timer.h.

◆ GPTMTBPS

#define GPTMTBPS (   tim_base)    MMIO32((tim_base) + 0x60)

Timer B prescale snapshot (RO)

Definition at line 89 of file timer.h.

◆ GPTMTBPV

#define GPTMTBPV (   tim_base)    MMIO32((tim_base) + 0x68)

Timer B prescale value (RO)

Definition at line 93 of file timer.h.

◆ GPTMTBR

#define GPTMTBR (   tim_base)    MMIO32((tim_base) + 0x4c)

Definition at line 79 of file timer.h.

◆ GPTMTBV

#define GPTMTBV (   tim_base)    MMIO32((tim_base) + 0x54)

Definition at line 83 of file timer.h.