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

Defined Constants and Types for the NRF52xx Clock control More...

Collaboration diagram for CLOCK Defines:

Macros

#define CLOCK_TASK_HFCLKSTART   MMIO32(CLOCK_BASE + 0x000)
 
#define CLOCK_TASK_HFCLKSTOP   MMIO32(CLOCK_BASE + 0x004)
 
#define CLOCK_TASK_LFCLKSTART   MMIO32(CLOCK_BASE + 0x008)
 
#define CLOCK_TASK_LFCLKSTOP   MMIO32(CLOCK_BASE + 0x00C)
 
#define CLOCK_TASK_CAL   MMIO32(CLOCK_BASE + 0x010)
 
#define CLOCK_TASK_CTSTART   MMIO32(CLOCK_BASE + 0x014)
 
#define CLOCK_TASK_CTSTOP   MMIO32(CLOCK_BASE + 0x018)
 
#define CLOCK_EVENT_HFCLKSTARTED   MMIO32(CLOCK_BASE + 0x100)
 
#define CLOCK_EVENT_LFCLKSTARTED   MMIO32(CLOCK_BASE + 0x104)
 
#define CLOCK_EVENT_DONE   MMIO32(CLOCK_BASE + 0x10C)
 
#define CLOCK_EVENT_CTTO   MMIO32(CLOCK_BASE + 0x110)
 
#define CLOCK_INTENSET   MMIO32(CLOCK_BASE + 0x304)
 
#define CLOCK_INTENCLR   MMIO32(CLOCK_BASE + 0x308)
 
#define CLOCK_HFCLKRUN   MMIO32(CLOCK_BASE + 0x408)
 
#define CLOCK_HFCLKSTAT   MMIO32(CLOCK_BASE + 0x40C)
 
#define CLOCK_LFCLKRUN   MMIO32(CLOCK_BASE + 0x414)
 
#define CLOCK_LFCLKSTAT   MMIO32(CLOCK_BASE + 0x418)
 
#define CLOCK_LFCLKSRCCOPY   MMIO32(CLOCK_BASE + 0x41C)
 
#define CLOCK_LFCLKSRC   MMIO32(CLOCK_BASE + 0x518)
 
#define CLOCK_CTIV   MMIO32(CLOCK_BASE + 0x538)
 
#define CLOCK_INTEN_HFCLKSTARTED   (1 << 0)
 
#define CLOCK_INTEN_LFCLKSTARTED   (1 << 1)
 
#define CLOCK_INTEN_DONE   (1 << 3)
 
#define CLOCK_INTEN_CTTO   (1 << 4)
 
#define CLOCK_HFCLKRUN_STATUS   (1 << 0)
 
#define CLOCK_HFCLKSTAT_SRC   (1 << 0)
 
#define CLOCK_HFCLKSTAT_STATE   (1 << 16)
 
#define CLOCK_LFCLKRUN_STATUS   (1 << 0)
 
#define CLOCK_LFCLK_SRC_SHIFT   (0)
 
#define CLOCK_LFCLK_SRC_MASK   (3 << CLOCK_LFCLKSTAT_SRC_SHIFT)
 
#define CLOCK_LFCLK_SRC_MASKED(V)   (((V) << CLOCK_LFCLKSTAT_SRC_SHIFT) & CLOCK_LFCLKSTAT_SRC_MASK)
 
#define CLOCK_LFCLKSTAT_STATE   (1 << 16)
 

Enumerations

enum  clock_lfclk_src { CLOCK_LFCLK_SRC_RC , CLOCK_LFCLK_SRC_XTAL , CLOCK_LFCLK_SRC_SYNTH }
 

Detailed Description

Defined Constants and Types for the NRF52xx Clock control

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>

Macro Definition Documentation

◆ CLOCK_CTIV

#define CLOCK_CTIV   MMIO32(CLOCK_BASE + 0x538)

Definition at line 60 of file common/clock.h.

◆ CLOCK_EVENT_CTTO

#define CLOCK_EVENT_CTTO   MMIO32(CLOCK_BASE + 0x110)

Definition at line 49 of file common/clock.h.

◆ CLOCK_EVENT_DONE

#define CLOCK_EVENT_DONE   MMIO32(CLOCK_BASE + 0x10C)

Definition at line 48 of file common/clock.h.

◆ CLOCK_EVENT_HFCLKSTARTED

#define CLOCK_EVENT_HFCLKSTARTED   MMIO32(CLOCK_BASE + 0x100)

Definition at line 46 of file common/clock.h.

◆ CLOCK_EVENT_LFCLKSTARTED

#define CLOCK_EVENT_LFCLKSTARTED   MMIO32(CLOCK_BASE + 0x104)

Definition at line 47 of file common/clock.h.

◆ CLOCK_HFCLKRUN

#define CLOCK_HFCLKRUN   MMIO32(CLOCK_BASE + 0x408)

Definition at line 54 of file common/clock.h.

◆ CLOCK_HFCLKRUN_STATUS

#define CLOCK_HFCLKRUN_STATUS   (1 << 0)

Definition at line 68 of file common/clock.h.

◆ CLOCK_HFCLKSTAT

#define CLOCK_HFCLKSTAT   MMIO32(CLOCK_BASE + 0x40C)

Definition at line 55 of file common/clock.h.

◆ CLOCK_HFCLKSTAT_SRC

#define CLOCK_HFCLKSTAT_SRC   (1 << 0)

Definition at line 70 of file common/clock.h.

◆ CLOCK_HFCLKSTAT_STATE

#define CLOCK_HFCLKSTAT_STATE   (1 << 16)

Definition at line 71 of file common/clock.h.

◆ CLOCK_INTEN_CTTO

#define CLOCK_INTEN_CTTO   (1 << 4)

Definition at line 66 of file common/clock.h.

◆ CLOCK_INTEN_DONE

#define CLOCK_INTEN_DONE   (1 << 3)

Definition at line 65 of file common/clock.h.

◆ CLOCK_INTEN_HFCLKSTARTED

#define CLOCK_INTEN_HFCLKSTARTED   (1 << 0)

Definition at line 63 of file common/clock.h.

◆ CLOCK_INTEN_LFCLKSTARTED

#define CLOCK_INTEN_LFCLKSTARTED   (1 << 1)

Definition at line 64 of file common/clock.h.

◆ CLOCK_INTENCLR

#define CLOCK_INTENCLR   MMIO32(CLOCK_BASE + 0x308)

Definition at line 53 of file common/clock.h.

◆ CLOCK_INTENSET

#define CLOCK_INTENSET   MMIO32(CLOCK_BASE + 0x304)

Definition at line 52 of file common/clock.h.

◆ CLOCK_LFCLK_SRC_MASK

#define CLOCK_LFCLK_SRC_MASK   (3 << CLOCK_LFCLKSTAT_SRC_SHIFT)

Definition at line 76 of file common/clock.h.

◆ CLOCK_LFCLK_SRC_MASKED

#define CLOCK_LFCLK_SRC_MASKED (   V)    (((V) << CLOCK_LFCLKSTAT_SRC_SHIFT) & CLOCK_LFCLKSTAT_SRC_MASK)

Definition at line 77 of file common/clock.h.

◆ CLOCK_LFCLK_SRC_SHIFT

#define CLOCK_LFCLK_SRC_SHIFT   (0)

Definition at line 75 of file common/clock.h.

◆ CLOCK_LFCLKRUN

#define CLOCK_LFCLKRUN   MMIO32(CLOCK_BASE + 0x414)

Definition at line 56 of file common/clock.h.

◆ CLOCK_LFCLKRUN_STATUS

#define CLOCK_LFCLKRUN_STATUS   (1 << 0)

Definition at line 73 of file common/clock.h.

◆ CLOCK_LFCLKSRC

#define CLOCK_LFCLKSRC   MMIO32(CLOCK_BASE + 0x518)

Definition at line 59 of file common/clock.h.

◆ CLOCK_LFCLKSRCCOPY

#define CLOCK_LFCLKSRCCOPY   MMIO32(CLOCK_BASE + 0x41C)

Definition at line 58 of file common/clock.h.

◆ CLOCK_LFCLKSTAT

#define CLOCK_LFCLKSTAT   MMIO32(CLOCK_BASE + 0x418)

Definition at line 57 of file common/clock.h.

◆ CLOCK_LFCLKSTAT_STATE

#define CLOCK_LFCLKSTAT_STATE   (1 << 16)

Definition at line 79 of file common/clock.h.

◆ CLOCK_TASK_CAL

#define CLOCK_TASK_CAL   MMIO32(CLOCK_BASE + 0x010)

Definition at line 41 of file common/clock.h.

◆ CLOCK_TASK_CTSTART

#define CLOCK_TASK_CTSTART   MMIO32(CLOCK_BASE + 0x014)

Definition at line 42 of file common/clock.h.

◆ CLOCK_TASK_CTSTOP

#define CLOCK_TASK_CTSTOP   MMIO32(CLOCK_BASE + 0x018)

Definition at line 43 of file common/clock.h.

◆ CLOCK_TASK_HFCLKSTART

#define CLOCK_TASK_HFCLKSTART   MMIO32(CLOCK_BASE + 0x000)

Definition at line 37 of file common/clock.h.

◆ CLOCK_TASK_HFCLKSTOP

#define CLOCK_TASK_HFCLKSTOP   MMIO32(CLOCK_BASE + 0x004)

Definition at line 38 of file common/clock.h.

◆ CLOCK_TASK_LFCLKSTART

#define CLOCK_TASK_LFCLKSTART   MMIO32(CLOCK_BASE + 0x008)

Definition at line 39 of file common/clock.h.

◆ CLOCK_TASK_LFCLKSTOP

#define CLOCK_TASK_LFCLKSTOP   MMIO32(CLOCK_BASE + 0x00C)

Definition at line 40 of file common/clock.h.

Enumeration Type Documentation

◆ clock_lfclk_src

Enumerator
CLOCK_LFCLK_SRC_RC 
CLOCK_LFCLK_SRC_XTAL 
CLOCK_LFCLK_SRC_SYNTH 

Definition at line 81 of file common/clock.h.