libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the Memory Systems Controller More...
Defined Constants and Types for the Memory Systems Controller
LGPL License Terms libopencm3 License
Definition at line 33 of file msc_common.h.
Definition at line 42 of file msc_common.h.
Definition at line 43 of file msc_common.h.
Definition at line 41 of file msc_common.h.
#define MSC_CMD_INVCACHE (1 << 0) |
Definition at line 138 of file msc_common.h.
#define MSC_CMD_STARTPC (1 << 1) |
Definition at line 137 of file msc_common.h.
#define MSC_CMD_STOPPC (1 << 2) |
Definition at line 136 of file msc_common.h.
Definition at line 29 of file msc_common.h.
#define MSC_CTRL_BUSFAULT (1 << 0) |
Definition at line 48 of file msc_common.h.
Definition at line 39 of file msc_common.h.
#define MSC_IEN_CHOF (1 << 2) |
Definition at line 123 of file msc_common.h.
#define MSC_IEN_CMOF (1 << 3) |
Definition at line 122 of file msc_common.h.
#define MSC_IEN_ERASE (1 << 0) |
Definition at line 125 of file msc_common.h.
#define MSC_IEN_WRITE (1 << 1) |
Definition at line 124 of file msc_common.h.
Definition at line 36 of file msc_common.h.
#define MSC_IF_CHOF (1 << 2) |
Definition at line 105 of file msc_common.h.
#define MSC_IF_CMOF (1 << 3) |
Definition at line 104 of file msc_common.h.
#define MSC_IF_ERASE (1 << 0) |
Definition at line 107 of file msc_common.h.
#define MSC_IF_WRITE (1 << 1) |
Definition at line 106 of file msc_common.h.
Definition at line 38 of file msc_common.h.
#define MSC_IFC_CHOF (1 << 2) |
Definition at line 117 of file msc_common.h.
#define MSC_IFC_CMOF (1 << 3) |
Definition at line 116 of file msc_common.h.
#define MSC_IFC_ERASE (1 << 0) |
Definition at line 119 of file msc_common.h.
#define MSC_IFC_WRITE (1 << 1) |
Definition at line 118 of file msc_common.h.
Definition at line 37 of file msc_common.h.
#define MSC_IFS_CHOF (1 << 2) |
Definition at line 111 of file msc_common.h.
#define MSC_IFS_CMOF (1 << 3) |
Definition at line 110 of file msc_common.h.
#define MSC_IFS_ERASE (1 << 0) |
Definition at line 113 of file msc_common.h.
#define MSC_IFS_WRITE (1 << 1) |
Definition at line 112 of file msc_common.h.
Definition at line 40 of file msc_common.h.
#define MSC_LOCK_LOCKKEY | ( | v | ) | ((v) << MSC_LOCK_LOCKKEY_SHIFT) |
Definition at line 129 of file msc_common.h.
#define MSC_LOCK_LOCKKEY_LOCK MSC_LOCK_LOCKKEY(0) |
Definition at line 132 of file msc_common.h.
#define MSC_LOCK_LOCKKEY_LOCKED MSC_LOCK_LOCKKEY(1) |
Definition at line 131 of file msc_common.h.
#define MSC_LOCK_LOCKKEY_SHIFT (0) |
Definition at line 128 of file msc_common.h.
#define MSC_LOCK_LOCKKEY_UNLOCK MSC_LOCK_LOCKKEY(0x1B71) |
Definition at line 133 of file msc_common.h.
#define MSC_LOCK_LOCKKEY_UNLOCKED MSC_LOCK_LOCKKEY(0) |
Definition at line 130 of file msc_common.h.
Definition at line 45 of file msc_common.h.
#define MSC_MASSLOCK_LOCKKEY | ( | v | ) | ((v) << MSC_MASSLOCK_LOCKKEY_SHIFT) |
Definition at line 150 of file msc_common.h.
#define MSC_MASSLOCK_LOCKKEY_LOCK MSC_MASSLOCK_LOCKKEY(0) |
Definition at line 153 of file msc_common.h.
#define MSC_MASSLOCK_LOCKKEY_LOCKED MSC_MASSLOCK_LOCKKEY(1) |
Definition at line 152 of file msc_common.h.
#define MSC_MASSLOCK_LOCKKEY_SHIFT (0) |
Definition at line 149 of file msc_common.h.
#define MSC_MASSLOCK_LOCKKEY_UNLOCK MSC_MASSLOCK_LOCKKEY(0x631A) |
Definition at line 154 of file msc_common.h.
#define MSC_MASSLOCK_LOCKKEY_UNLOCKED MSC_MASSLOCK_LOCKKEY(0) |
Definition at line 151 of file msc_common.h.
Definition at line 30 of file msc_common.h.
#define MSC_READCTRL_AIDIS (1 << 4) |
Definition at line 66 of file msc_common.h.
#define MSC_READCTRL_BUSSTRATEGY | ( | v | ) |
Definition at line 54 of file msc_common.h.
#define MSC_READCTRL_BUSSTRATEGY_CPU MSC_READCTRL_BUSSTRATEGY(0) |
Definition at line 58 of file msc_common.h.
#define MSC_READCTRL_BUSSTRATEGY_DMA MSC_READCTRL_BUSSTRATEGY(1) |
Definition at line 59 of file msc_common.h.
#define MSC_READCTRL_BUSSTRATEGY_DMAEM1 MSC_READCTRL_BUSSTRATEGY(2) |
Definition at line 60 of file msc_common.h.
#define MSC_READCTRL_BUSSTRATEGY_MASK (0x3 << MSC_READCTRL_BUSSTRATEGY_SHIFT) |
Definition at line 52 of file msc_common.h.
#define MSC_READCTRL_BUSSTRATEGY_NONE MSC_READCTRL_BUSSTRATEGY(3) |
Definition at line 61 of file msc_common.h.
#define MSC_READCTRL_BUSSTRATEGY_SHIFT (16) |
Definition at line 51 of file msc_common.h.
#define MSC_READCTRL_EBICDIS (1 << 6) |
Definition at line 64 of file msc_common.h.
#define MSC_READCTRL_ICCDIS (1 << 5) |
Definition at line 65 of file msc_common.h.
#define MSC_READCTRL_IFCDIS (1 << 3) |
Definition at line 67 of file msc_common.h.
#define MSC_READCTRL_MODE | ( | v | ) | (((v) << MSC_READCTRL_MODE_SHIFT) & MSC_READCTRL_MODE_MASK) |
Definition at line 71 of file msc_common.h.
#define MSC_READCTRL_MODE_MASK (0x7 << MSC_READCTRL_MODE_SHIFT) |
Definition at line 70 of file msc_common.h.
#define MSC_READCTRL_MODE_SHIFT (0) |
Definition at line 69 of file msc_common.h.
#define MSC_READCTRL_MODE_WS0 0 |
Definition at line 73 of file msc_common.h.
#define MSC_READCTRL_MODE_WS0SCBTP 2 |
Definition at line 75 of file msc_common.h.
#define MSC_READCTRL_MODE_WS1 1 |
Definition at line 74 of file msc_common.h.
#define MSC_READCTRL_MODE_WS1SCBTP 3 |
Definition at line 76 of file msc_common.h.
#define MSC_READCTRL_MODE_WS2 4 |
Definition at line 77 of file msc_common.h.
#define MSC_READCTRL_MODE_WS2SCBTP 5 |
Definition at line 78 of file msc_common.h.
#define MSC_READCTRL_RAMCEN (1 << 7) |
Definition at line 63 of file msc_common.h.
Definition at line 35 of file msc_common.h.
#define MSC_STATUS_BUSY (1 << 0) |
Definition at line 101 of file msc_common.h.
#define MSC_STATUS_ERASEABORTED (1 << 5) |
Definition at line 96 of file msc_common.h.
#define MSC_STATUS_INVADDR (1 << 2) |
Definition at line 99 of file msc_common.h.
#define MSC_STATUS_LOCKED (1 << 1) |
Definition at line 100 of file msc_common.h.
#define MSC_STATUS_PCRUNNING (1 << 6) |
Definition at line 95 of file msc_common.h.
#define MSC_STATUS_WDATAREADY (1 << 3) |
Definition at line 98 of file msc_common.h.
#define MSC_STATUS_WORDTIMEOUT (1 << 4) |
Definition at line 97 of file msc_common.h.
Definition at line 44 of file msc_common.h.
#define MSC_TIMEBASE_BASE | ( | v | ) | (((v) << MSC_TIMEBASE_BASE_SHIFT) & MSC_TIMEBASE_BASE_MASK) |
Definition at line 145 of file msc_common.h.
#define MSC_TIMEBASE_BASE_MASK (0x3F << MSC_TIMEBASE_BASE_SHIFT) |
Definition at line 144 of file msc_common.h.
#define MSC_TIMEBASE_BASE_SHIFT (0) |
Definition at line 143 of file msc_common.h.
#define MSC_TIMEBASE_PERIOD (1 << 16) |
Definition at line 141 of file msc_common.h.
Definition at line 34 of file msc_common.h.
Definition at line 32 of file msc_common.h.
#define MSC_WRITECMD_CLEARWDATA (1 << 12) |
Definition at line 85 of file msc_common.h.
#define MSC_WRITECMD_ERASEABORT (1 << 5) |
Definition at line 87 of file msc_common.h.
#define MSC_WRITECMD_ERASEMAIN0 (1 << 8) |
Definition at line 86 of file msc_common.h.
#define MSC_WRITECMD_ERASEPAGE (1 << 1) |
Definition at line 91 of file msc_common.h.
#define MSC_WRITECMD_LADDRIM (1 << 0) |
Definition at line 92 of file msc_common.h.
#define MSC_WRITECMD_WRITEEND (1 << 2) |
Definition at line 90 of file msc_common.h.
#define MSC_WRITECMD_WRITEONCE (1 << 3) |
Definition at line 89 of file msc_common.h.
#define MSC_WRITECMD_WRITETRIG (1 << 4) |
Definition at line 88 of file msc_common.h.
Definition at line 31 of file msc_common.h.
#define MSC_WRITECTRL_IRQERASEABORT (1 << 1) |
Definition at line 81 of file msc_common.h.
#define MSC_WRITECTRL_WREN (1 << 0) |
Definition at line 82 of file msc_common.h.