Defined Constants and Types for the NRF52xx Timer
More...
Defined Constants and Types for the NRF52xx Timer
- Version
- 1.0.0
- Date
- Nov 2021
LGPL License Terms libopencm3 License
- Author
- © 2016 Maxim Sloyko maxim.nosp@m.s@go.nosp@m.ogle..nosp@m.com
-
© 2021 Eduard Drusa <ventyl86 at netkosice dot sk>
◆ TIMER_BITMODE
#define TIMER_BITMODE |
( |
|
T | ) |
MMIO32((T) + 0x508) |
◆ TIMER_CC
#define TIMER_CC |
( |
|
T, |
|
|
|
C |
|
) |
| MMIO32((T) + 0x540 + 0x4 * (C)) |
◆ TIMER_EVENT_COMPARE
#define TIMER_EVENT_COMPARE |
( |
|
T, |
|
|
|
C |
|
) |
| MMIO32((T) + 0x140 + (uint32_t)(0x4 * (C))) |
◆ TIMER_INTEN_COMPARE
#define TIMER_INTEN_COMPARE |
( |
|
C | ) |
(1 << (16 + (C))) |
◆ TIMER_INTENCLR
◆ TIMER_INTENSET
◆ TIMER_MODE
#define TIMER_MODE |
( |
|
T | ) |
MMIO32((T) + 0x504) |
◆ TIMER_MODE_SELECT
#define TIMER_MODE_SELECT (1 << 0) |
◆ TIMER_PRESCALER
#define TIMER_PRESCALER |
( |
|
T | ) |
MMIO32((T) + 0x510) |
◆ TIMER_PRESCALER_MASK
#define TIMER_PRESCALER_MASK (0xf) |
◆ TIMER_SHORTS
◆ TIMER_TASK_CAPTURE
#define TIMER_TASK_CAPTURE |
( |
|
T, |
|
|
|
C |
|
) |
| MMIO32((T) + 0x040 + (uint32_t)(0x4 * (C))) |
◆ TIMER_TASK_CLEAR
#define TIMER_TASK_CLEAR |
( |
|
T | ) |
MMIO32((T) + 0x00C) |
◆ TIMER_TASK_COUNT
#define TIMER_TASK_COUNT |
( |
|
T | ) |
MMIO32((T) + 0x008) |
◆ TIMER_TASK_SHUTDOWN
#define TIMER_TASK_SHUTDOWN |
( |
|
T | ) |
MMIO32((T) + 0x010) |
◆ TIMER_TASK_START
#define TIMER_TASK_START |
( |
|
T | ) |
MMIO32((T) + 0x000) |
◆ TIMER_TASK_STOP
#define TIMER_TASK_STOP |
( |
|
T | ) |
MMIO32((T) + 0x004) |
◆ timer_bitmode
Enumerator |
---|
TIMER_BITMODE_16BIT | |
TIMER_BITMODE_08BIT | |
TIMER_BITMODE_24BIT | |
TIMER_BITMODE_32BIT | |
Definition at line 96 of file common/timer.h.
◆ timer_mode
Enumerator |
---|
TIMER_MODE_TIMER | |
TIMER_MODE_COUNTER | |
Definition at line 91 of file common/timer.h.