30 #ifndef _SAM3N_MATRIX_COMPONENT_ 31 #define _SAM3N_MATRIX_COMPONENT_ 39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 62 #define MATRIX_MCFG_ULBT_Pos 0 63 #define MATRIX_MCFG_ULBT_Msk (0x7u << MATRIX_MCFG_ULBT_Pos) 64 #define MATRIX_MCFG_ULBT(value) ((MATRIX_MCFG_ULBT_Msk & ((value) << MATRIX_MCFG_ULBT_Pos))) 66 #define MATRIX_SCFG_SLOT_CYCLE_Pos 0 67 #define MATRIX_SCFG_SLOT_CYCLE_Msk (0xffu << MATRIX_SCFG_SLOT_CYCLE_Pos) 68 #define MATRIX_SCFG_SLOT_CYCLE(value) ((MATRIX_SCFG_SLOT_CYCLE_Msk & ((value) << MATRIX_SCFG_SLOT_CYCLE_Pos))) 69 #define MATRIX_SCFG_DEFMSTR_TYPE_Pos 16 70 #define MATRIX_SCFG_DEFMSTR_TYPE_Msk (0x3u << MATRIX_SCFG_DEFMSTR_TYPE_Pos) 71 #define MATRIX_SCFG_DEFMSTR_TYPE(value) ((MATRIX_SCFG_DEFMSTR_TYPE_Msk & ((value) << MATRIX_SCFG_DEFMSTR_TYPE_Pos))) 72 #define MATRIX_SCFG_FIXED_DEFMSTR_Pos 18 73 #define MATRIX_SCFG_FIXED_DEFMSTR_Msk (0x7u << MATRIX_SCFG_FIXED_DEFMSTR_Pos) 74 #define MATRIX_SCFG_FIXED_DEFMSTR(value) ((MATRIX_SCFG_FIXED_DEFMSTR_Msk & ((value) << MATRIX_SCFG_FIXED_DEFMSTR_Pos))) 75 #define MATRIX_SCFG_ARBT_Pos 24 76 #define MATRIX_SCFG_ARBT_Msk (0x3u << MATRIX_SCFG_ARBT_Pos) 77 #define MATRIX_SCFG_ARBT(value) ((MATRIX_SCFG_ARBT_Msk & ((value) << MATRIX_SCFG_ARBT_Pos))) 79 #define MATRIX_PRAS0_M0PR_Pos 0 80 #define MATRIX_PRAS0_M0PR_Msk (0x3u << MATRIX_PRAS0_M0PR_Pos) 81 #define MATRIX_PRAS0_M0PR(value) ((MATRIX_PRAS0_M0PR_Msk & ((value) << MATRIX_PRAS0_M0PR_Pos))) 82 #define MATRIX_PRAS0_M1PR_Pos 4 83 #define MATRIX_PRAS0_M1PR_Msk (0x3u << MATRIX_PRAS0_M1PR_Pos) 84 #define MATRIX_PRAS0_M1PR(value) ((MATRIX_PRAS0_M1PR_Msk & ((value) << MATRIX_PRAS0_M1PR_Pos))) 85 #define MATRIX_PRAS0_M2PR_Pos 8 86 #define MATRIX_PRAS0_M2PR_Msk (0x3u << MATRIX_PRAS0_M2PR_Pos) 87 #define MATRIX_PRAS0_M2PR(value) ((MATRIX_PRAS0_M2PR_Msk & ((value) << MATRIX_PRAS0_M2PR_Pos))) 88 #define MATRIX_PRAS0_M3PR_Pos 12 89 #define MATRIX_PRAS0_M3PR_Msk (0x3u << MATRIX_PRAS0_M3PR_Pos) 90 #define MATRIX_PRAS0_M3PR(value) ((MATRIX_PRAS0_M3PR_Msk & ((value) << MATRIX_PRAS0_M3PR_Pos))) 92 #define MATRIX_PRAS1_M0PR_Pos 0 93 #define MATRIX_PRAS1_M0PR_Msk (0x3u << MATRIX_PRAS1_M0PR_Pos) 94 #define MATRIX_PRAS1_M0PR(value) ((MATRIX_PRAS1_M0PR_Msk & ((value) << MATRIX_PRAS1_M0PR_Pos))) 95 #define MATRIX_PRAS1_M1PR_Pos 4 96 #define MATRIX_PRAS1_M1PR_Msk (0x3u << MATRIX_PRAS1_M1PR_Pos) 97 #define MATRIX_PRAS1_M1PR(value) ((MATRIX_PRAS1_M1PR_Msk & ((value) << MATRIX_PRAS1_M1PR_Pos))) 98 #define MATRIX_PRAS1_M2PR_Pos 8 99 #define MATRIX_PRAS1_M2PR_Msk (0x3u << MATRIX_PRAS1_M2PR_Pos) 100 #define MATRIX_PRAS1_M2PR(value) ((MATRIX_PRAS1_M2PR_Msk & ((value) << MATRIX_PRAS1_M2PR_Pos))) 101 #define MATRIX_PRAS1_M3PR_Pos 12 102 #define MATRIX_PRAS1_M3PR_Msk (0x3u << MATRIX_PRAS1_M3PR_Pos) 103 #define MATRIX_PRAS1_M3PR(value) ((MATRIX_PRAS1_M3PR_Msk & ((value) << MATRIX_PRAS1_M3PR_Pos))) 105 #define MATRIX_PRAS2_M0PR_Pos 0 106 #define MATRIX_PRAS2_M0PR_Msk (0x3u << MATRIX_PRAS2_M0PR_Pos) 107 #define MATRIX_PRAS2_M0PR(value) ((MATRIX_PRAS2_M0PR_Msk & ((value) << MATRIX_PRAS2_M0PR_Pos))) 108 #define MATRIX_PRAS2_M1PR_Pos 4 109 #define MATRIX_PRAS2_M1PR_Msk (0x3u << MATRIX_PRAS2_M1PR_Pos) 110 #define MATRIX_PRAS2_M1PR(value) ((MATRIX_PRAS2_M1PR_Msk & ((value) << MATRIX_PRAS2_M1PR_Pos))) 111 #define MATRIX_PRAS2_M2PR_Pos 8 112 #define MATRIX_PRAS2_M2PR_Msk (0x3u << MATRIX_PRAS2_M2PR_Pos) 113 #define MATRIX_PRAS2_M2PR(value) ((MATRIX_PRAS2_M2PR_Msk & ((value) << MATRIX_PRAS2_M2PR_Pos))) 114 #define MATRIX_PRAS2_M3PR_Pos 12 115 #define MATRIX_PRAS2_M3PR_Msk (0x3u << MATRIX_PRAS2_M3PR_Pos) 116 #define MATRIX_PRAS2_M3PR(value) ((MATRIX_PRAS2_M3PR_Msk & ((value) << MATRIX_PRAS2_M3PR_Pos))) 118 #define MATRIX_PRAS3_M0PR_Pos 0 119 #define MATRIX_PRAS3_M0PR_Msk (0x3u << MATRIX_PRAS3_M0PR_Pos) 120 #define MATRIX_PRAS3_M0PR(value) ((MATRIX_PRAS3_M0PR_Msk & ((value) << MATRIX_PRAS3_M0PR_Pos))) 121 #define MATRIX_PRAS3_M1PR_Pos 4 122 #define MATRIX_PRAS3_M1PR_Msk (0x3u << MATRIX_PRAS3_M1PR_Pos) 123 #define MATRIX_PRAS3_M1PR(value) ((MATRIX_PRAS3_M1PR_Msk & ((value) << MATRIX_PRAS3_M1PR_Pos))) 124 #define MATRIX_PRAS3_M2PR_Pos 8 125 #define MATRIX_PRAS3_M2PR_Msk (0x3u << MATRIX_PRAS3_M2PR_Pos) 126 #define MATRIX_PRAS3_M2PR(value) ((MATRIX_PRAS3_M2PR_Msk & ((value) << MATRIX_PRAS3_M2PR_Pos))) 127 #define MATRIX_PRAS3_M3PR_Pos 12 128 #define MATRIX_PRAS3_M3PR_Msk (0x3u << MATRIX_PRAS3_M3PR_Pos) 129 #define MATRIX_PRAS3_M3PR(value) ((MATRIX_PRAS3_M3PR_Msk & ((value) << MATRIX_PRAS3_M3PR_Pos))) 131 #define CCFG_SYSIO_SYSIO4 (0x1u << 4) 132 #define CCFG_SYSIO_SYSIO5 (0x1u << 5) 133 #define CCFG_SYSIO_SYSIO6 (0x1u << 6) 134 #define CCFG_SYSIO_SYSIO7 (0x1u << 7) 135 #define CCFG_SYSIO_SYSIO12 (0x1u << 12) 137 #define MATRIX_WPMR_WPEN (0x1u << 0) 138 #define MATRIX_WPMR_WPKEY_Pos 8 139 #define MATRIX_WPMR_WPKEY_Msk (0xffffffu << MATRIX_WPMR_WPKEY_Pos) 140 #define MATRIX_WPMR_WPKEY(value) ((MATRIX_WPMR_WPKEY_Msk & ((value) << MATRIX_WPMR_WPKEY_Pos))) 142 #define MATRIX_WPSR_WPVS (0x1u << 0) 143 #define MATRIX_WPSR_WPVSRC_Pos 8 144 #define MATRIX_WPSR_WPVSRC_Msk (0xffffu << MATRIX_WPSR_WPVSRC_Pos) volatile uint32_t RwReg
Definition: sam3n00a.h:54
RwReg MATRIX_WPMR
(Matrix Offset: 0x1E4) Write Protect Mode Register
Definition: component_matrix.h:57
RwReg MATRIX_PRAS2
(Matrix Offset: 0x0090) Priority Register A for Slave 2
Definition: component_matrix.h:50
RoReg MATRIX_WPSR
(Matrix Offset: 0x1E8) Write Protect Status Register
Definition: component_matrix.h:58
RwReg CCFG_SYSIO
(Matrix Offset: 0x0114) System I/O Configuration register
Definition: component_matrix.h:55
volatile const uint32_t RoReg
Definition: sam3n00a.h:49
RwReg MATRIX_PRAS0
(Matrix Offset: 0x0080) Priority Register A for Slave 0
Definition: component_matrix.h:46
RwReg MATRIX_PRAS3
(Matrix Offset: 0x0098) Priority Register A for Slave 3
Definition: component_matrix.h:52
Matrix hardware registers.
Definition: component_matrix.h:41
RwReg MATRIX_PRAS1
(Matrix Offset: 0x0088) Priority Register A for Slave 1
Definition: component_matrix.h:48