libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the Backup RTC More...
Defined Constants and Types for the Backup RTC
LGPL License Terms libopencm3 License
#define BURTC_CMD MMIO32(BURTC_BASE + 0x01C) |
Definition at line 36 of file burtc_common.h.
#define BURTC_CMD_CLRSTATUS (1 << 0) |
Definition at line 132 of file burtc_common.h.
#define BURTC_CNT MMIO32(BURTC_BASE + 0x008) |
Definition at line 31 of file burtc_common.h.
#define BURTC_COMP0 MMIO32(BURTC_BASE + 0x00C) |
Definition at line 32 of file burtc_common.h.
#define BURTC_CTRL MMIO32(BURTC_BASE + 0x000) |
Definition at line 29 of file burtc_common.h.
#define BURTC_CTRL_BUMODETSEN (1 << 14) |
Definition at line 51 of file burtc_common.h.
#define BURTC_CTRL_CLKSEL | ( | v | ) | (((v) << BURTC_CTRL_CLKSEL_SHIFT) & BURTC_CTRL_CLKSEL_MASK) |
Definition at line 55 of file burtc_common.h.
#define BURTC_CTRL_CLKSEL_LFRCO 1 |
Definition at line 58 of file burtc_common.h.
#define BURTC_CTRL_CLKSEL_LFXO 2 |
Definition at line 59 of file burtc_common.h.
#define BURTC_CTRL_CLKSEL_MASK (0x3 << BURTC_CTRL_CLKSEL_SHIFT) |
Definition at line 54 of file burtc_common.h.
#define BURTC_CTRL_CLKSEL_NONE 0 |
Definition at line 57 of file burtc_common.h.
#define BURTC_CTRL_CLKSEL_SHIFT (8) |
Definition at line 53 of file burtc_common.h.
#define BURTC_CTRL_CLKSEL_ULFRCO 3 |
Definition at line 60 of file burtc_common.h.
#define BURTC_CTRL_COMP0TOP (1 << 4) |
Definition at line 90 of file burtc_common.h.
#define BURTC_CTRL_DEBUGRUN (1 << 2) |
Definition at line 92 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC | ( | v | ) | (((v) << BURTC_CTRL_LPCOMPC_SHIFT) & BURTC_CTRL_LPCOMPC_MASK) |
Definition at line 78 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN0LSB 0 |
Definition at line 81 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN1LSB 1 |
Definition at line 82 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN2LSB 2 |
Definition at line 83 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN3LSB 3 |
Definition at line 84 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN4LSB 4 |
Definition at line 85 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN5LSB 5 |
Definition at line 86 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN6LSB 6 |
Definition at line 87 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGN7LSB 7 |
Definition at line 88 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_IGNxLSB | ( | x | ) | BURTC_CTRL_LPCOMPC(x) |
Definition at line 80 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_MASK (0x7 << BURTC_CTRL_LPCOMPC_SHIFT) |
Definition at line 77 of file burtc_common.h.
#define BURTC_CTRL_LPCOMPC_SHIFT (5) |
Definition at line 76 of file burtc_common.h.
#define BURTC_CTRL_MODE | ( | v | ) | (((v) << BURTC_CTRL_MODE_SHIFT) & BURTC_CTRL_MODE_MASK) |
Definition at line 96 of file burtc_common.h.
#define BURTC_CTRL_MODE_DISABLE 0 |
Definition at line 98 of file burtc_common.h.
#define BURTC_CTRL_MODE_EM2EN 1 |
Definition at line 99 of file burtc_common.h.
#define BURTC_CTRL_MODE_EM3EN 2 |
Definition at line 100 of file burtc_common.h.
#define BURTC_CTRL_MODE_EM4EN 3 |
Definition at line 101 of file burtc_common.h.
#define BURTC_CTRL_MODE_MASK (0x3 << BURTC_CTRL_MODE_SHIFT) |
Definition at line 95 of file burtc_common.h.
#define BURTC_CTRL_MODE_SHIFT (0) |
Definition at line 94 of file burtc_common.h.
#define BURTC_CTRL_PRESC | ( | v | ) | (((v) << BURTC_CTRL_PRESC_SHIFT) & BURTC_CTRL_PRESC_MASK) |
Definition at line 64 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV1 0 |
Definition at line 66 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV128 7 |
Definition at line 73 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV16 4 |
Definition at line 70 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV2 1 |
Definition at line 67 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV32 5 |
Definition at line 71 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV4 2 |
Definition at line 68 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV64 6 |
Definition at line 72 of file burtc_common.h.
#define BURTC_CTRL_PRESC_DIV8 3 |
Definition at line 69 of file burtc_common.h.
#define BURTC_CTRL_PRESC_MASK (0x7 << BURTC_CTRL_PRESC_SHIFT) |
Definition at line 63 of file burtc_common.h.
#define BURTC_CTRL_PRESC_NODIV BURTC_CTRL_PRESC_DIV1 |
Definition at line 74 of file burtc_common.h.
#define BURTC_CTRL_PRESC_SHIFT (12) |
Definition at line 62 of file burtc_common.h.
#define BURTC_CTRL_RSTEN (1 << 3) |
Definition at line 91 of file burtc_common.h.
#define BURTC_FREEZE MMIO32(BURTC_BASE + 0x038) |
Definition at line 43 of file burtc_common.h.
#define BURTC_FREEZE_REGFREEZE (1 << 0) |
Definition at line 166 of file burtc_common.h.
#define BURTC_IEN MMIO32(BURTC_BASE + 0x034) |
Definition at line 42 of file burtc_common.h.
#define BURTC_IEN_COMP0 (1 << 1) |
Definition at line 162 of file burtc_common.h.
#define BURTC_IEN_LFXOFAIL (1 << 2) |
Definition at line 161 of file burtc_common.h.
#define BURTC_IEN_OF (1 << 0) |
Definition at line 163 of file burtc_common.h.
#define BURTC_IF MMIO32(BURTC_BASE + 0x028) |
Definition at line 39 of file burtc_common.h.
#define BURTC_IF_COMP0 (1 << 1) |
Definition at line 147 of file burtc_common.h.
#define BURTC_IF_LFXOFAIL (1 << 2) |
Definition at line 146 of file burtc_common.h.
#define BURTC_IF_OF (1 << 0) |
Definition at line 148 of file burtc_common.h.
#define BURTC_IFC MMIO32(BURTC_BASE + 0x030) |
Definition at line 41 of file burtc_common.h.
#define BURTC_IFC_COMP0 (1 << 1) |
Definition at line 157 of file burtc_common.h.
#define BURTC_IFC_LFXOFAIL (1 << 2) |
Definition at line 156 of file burtc_common.h.
#define BURTC_IFC_OF (1 << 0) |
Definition at line 158 of file burtc_common.h.
#define BURTC_IFS MMIO32(BURTC_BASE + 0x02C) |
Definition at line 40 of file burtc_common.h.
#define BURTC_IFS_COMP0 (1 << 1) |
Definition at line 152 of file burtc_common.h.
#define BURTC_IFS_LFXOFAIL (1 << 2) |
Definition at line 151 of file burtc_common.h.
#define BURTC_IFS_OF (1 << 0) |
Definition at line 153 of file burtc_common.h.
#define BURTC_LFXOFDET MMIO32(BURTC_BASE + 0x014) |
Definition at line 34 of file burtc_common.h.
#define BURTC_LFXOFDET_OSC | ( | v | ) | (((v) << BURTC_LFXOFDET_OSC_SHIFT) & BURTC_LFXOFDET_OSC_MASK) |
Definition at line 120 of file burtc_common.h.
#define BURTC_LFXOFDET_OSC_DISABLE 0 |
Definition at line 122 of file burtc_common.h.
#define BURTC_LFXOFDET_OSC_LFRCO 1 |
Definition at line 123 of file burtc_common.h.
#define BURTC_LFXOFDET_OSC_MASK (0x3 << BURTC_LFXOFDET_OSC_SHIFT) |
Definition at line 119 of file burtc_common.h.
#define BURTC_LFXOFDET_OSC_SHIFT (0) |
Definition at line 118 of file burtc_common.h.
#define BURTC_LFXOFDET_OSC_ULFRCO 2 |
Definition at line 124 of file burtc_common.h.
#define BURTC_LFXOFDET_TOP | ( | v | ) | (((v) << BURTC_LFXOFDET_TOP_SHIFT) & BURTC_LFXOFDET_TOP_MASK) |
Definition at line 115 of file burtc_common.h.
#define BURTC_LFXOFDET_TOP_MASK (0xF << BURTC_LFXOFDET_TOP_SHIFT) |
Definition at line 114 of file burtc_common.h.
#define BURTC_LFXOFDET_TOP_SHIFT (4) |
Definition at line 113 of file burtc_common.h.
#define BURTC_LOCK MMIO32(BURTC_BASE + 0x024) |
Definition at line 38 of file burtc_common.h.
#define BURTC_LOCK_LOCKKEY_LOCK (0x0000 << BURTC_LOCK_LOCKKEY_SHIFT) |
Definition at line 142 of file burtc_common.h.
#define BURTC_LOCK_LOCKKEY_LOCKED (0x0001 << BURTC_LOCK_LOCKKEY_SHIFT) |
Definition at line 141 of file burtc_common.h.
#define BURTC_LOCK_LOCKKEY_MASK (0xFFFF << BURTC_LOCK_LOCKKEY_SHIFT) |
Definition at line 139 of file burtc_common.h.
#define BURTC_LOCK_LOCKKEY_SHIFT (0) |
Definition at line 138 of file burtc_common.h.
#define BURTC_LOCK_LOCKKEY_UNLOCK (0xAEE8 << BURTC_LOCK_LOCKKEY_SHIFT) |
Definition at line 143 of file burtc_common.h.
#define BURTC_LOCK_LOCKKEY_UNLOCKED (0x0000 << BURTC_LOCK_LOCKKEY_SHIFT) |
Definition at line 140 of file burtc_common.h.
#define BURTC_LPMODE MMIO32(BURTC_BASE + 0x004) |
Definition at line 30 of file burtc_common.h.
#define BURTC_LPMODE_LPMODE | ( | v | ) | (((v) << BURTC_LPMODE_LPMODE_SHIFT) & BURTC_LPMODE_LPMODE_MASK) |
Definition at line 106 of file burtc_common.h.
#define BURTC_LPMODE_LPMODE_BUEN 2 |
Definition at line 110 of file burtc_common.h.
#define BURTC_LPMODE_LPMODE_DISABLE 0 |
Definition at line 108 of file burtc_common.h.
#define BURTC_LPMODE_LPMODE_ENABLE 1 |
Definition at line 109 of file burtc_common.h.
#define BURTC_LPMODE_LPMODE_MASK (0x3 << BURTC_LPMODE_LPMODE_SHIFT) |
Definition at line 105 of file burtc_common.h.
#define BURTC_LPMODE_LPMODE_SHIFT (0) |
Definition at line 104 of file burtc_common.h.
#define BURTC_POWERDOWN MMIO32(BURTC_BASE + 0x020) |
Definition at line 37 of file burtc_common.h.
#define BURTC_POWERDOWN_RAM (1 << 0) |
Definition at line 135 of file burtc_common.h.
#define BURTC_RETx | ( | x | ) | RETx_REG(x) |
Definition at line 48 of file burtc_common.h.
#define BURTC_STATUS MMIO32(BURTC_BASE + 0x018) |
Definition at line 35 of file burtc_common.h.
#define BURTC_STATUS_BUMODETS (1 << 1) |
Definition at line 128 of file burtc_common.h.
#define BURTC_STATUS_LPMODEACT (1 << 0) |
Definition at line 129 of file burtc_common.h.
#define BURTC_STATUS_RAMWERR (1 << 2) |
Definition at line 127 of file burtc_common.h.
#define BURTC_SYNCBUSY MMIO32(BURTC_BASE + 0x03C) |
Definition at line 44 of file burtc_common.h.
#define BURTC_SYNCBUSY_COMP0 (1 << 1) |
Definition at line 169 of file burtc_common.h.
#define BURTC_SYNCBUSY_LPMODE (1 << 0) |
Definition at line 170 of file burtc_common.h.
#define BURTC_TIMESTAMP MMIO32(BURTC_BASE + 0x010) |
Definition at line 33 of file burtc_common.h.
#define RETx_REG | ( | x | ) | MMIO32(BURTC_BASE + 0x100 + (4 * (x))) |
Definition at line 46 of file burtc_common.h.