30 #ifndef _SAM4S_SMC_COMPONENT_ 31 #define _SAM4S_SMC_COMPONENT_ 39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 48 #define SMCCS_NUMBER_NUMBER 5 61 #define SMC_SETUP_NWE_SETUP_Pos 0 62 #define SMC_SETUP_NWE_SETUP_Msk (0x3fu << SMC_SETUP_NWE_SETUP_Pos) 63 #define SMC_SETUP_NWE_SETUP(value) ((SMC_SETUP_NWE_SETUP_Msk & ((value) << SMC_SETUP_NWE_SETUP_Pos))) 64 #define SMC_SETUP_NCS_WR_SETUP_Pos 8 65 #define SMC_SETUP_NCS_WR_SETUP_Msk (0x3fu << SMC_SETUP_NCS_WR_SETUP_Pos) 66 #define SMC_SETUP_NCS_WR_SETUP(value) ((SMC_SETUP_NCS_WR_SETUP_Msk & ((value) << SMC_SETUP_NCS_WR_SETUP_Pos))) 67 #define SMC_SETUP_NRD_SETUP_Pos 16 68 #define SMC_SETUP_NRD_SETUP_Msk (0x3fu << SMC_SETUP_NRD_SETUP_Pos) 69 #define SMC_SETUP_NRD_SETUP(value) ((SMC_SETUP_NRD_SETUP_Msk & ((value) << SMC_SETUP_NRD_SETUP_Pos))) 70 #define SMC_SETUP_NCS_RD_SETUP_Pos 24 71 #define SMC_SETUP_NCS_RD_SETUP_Msk (0x3fu << SMC_SETUP_NCS_RD_SETUP_Pos) 72 #define SMC_SETUP_NCS_RD_SETUP(value) ((SMC_SETUP_NCS_RD_SETUP_Msk & ((value) << SMC_SETUP_NCS_RD_SETUP_Pos))) 74 #define SMC_PULSE_NWE_PULSE_Pos 0 75 #define SMC_PULSE_NWE_PULSE_Msk (0x7fu << SMC_PULSE_NWE_PULSE_Pos) 76 #define SMC_PULSE_NWE_PULSE(value) ((SMC_PULSE_NWE_PULSE_Msk & ((value) << SMC_PULSE_NWE_PULSE_Pos))) 77 #define SMC_PULSE_NCS_WR_PULSE_Pos 8 78 #define SMC_PULSE_NCS_WR_PULSE_Msk (0x7fu << SMC_PULSE_NCS_WR_PULSE_Pos) 79 #define SMC_PULSE_NCS_WR_PULSE(value) ((SMC_PULSE_NCS_WR_PULSE_Msk & ((value) << SMC_PULSE_NCS_WR_PULSE_Pos))) 80 #define SMC_PULSE_NRD_PULSE_Pos 16 81 #define SMC_PULSE_NRD_PULSE_Msk (0x7fu << SMC_PULSE_NRD_PULSE_Pos) 82 #define SMC_PULSE_NRD_PULSE(value) ((SMC_PULSE_NRD_PULSE_Msk & ((value) << SMC_PULSE_NRD_PULSE_Pos))) 83 #define SMC_PULSE_NCS_RD_PULSE_Pos 24 84 #define SMC_PULSE_NCS_RD_PULSE_Msk (0x7fu << SMC_PULSE_NCS_RD_PULSE_Pos) 85 #define SMC_PULSE_NCS_RD_PULSE(value) ((SMC_PULSE_NCS_RD_PULSE_Msk & ((value) << SMC_PULSE_NCS_RD_PULSE_Pos))) 87 #define SMC_CYCLE_NWE_CYCLE_Pos 0 88 #define SMC_CYCLE_NWE_CYCLE_Msk (0x1ffu << SMC_CYCLE_NWE_CYCLE_Pos) 89 #define SMC_CYCLE_NWE_CYCLE(value) ((SMC_CYCLE_NWE_CYCLE_Msk & ((value) << SMC_CYCLE_NWE_CYCLE_Pos))) 90 #define SMC_CYCLE_NRD_CYCLE_Pos 16 91 #define SMC_CYCLE_NRD_CYCLE_Msk (0x1ffu << SMC_CYCLE_NRD_CYCLE_Pos) 92 #define SMC_CYCLE_NRD_CYCLE(value) ((SMC_CYCLE_NRD_CYCLE_Msk & ((value) << SMC_CYCLE_NRD_CYCLE_Pos))) 94 #define SMC_MODE_READ_MODE (0x1u << 0) 95 #define SMC_MODE_WRITE_MODE (0x1u << 1) 96 #define SMC_MODE_EXNW_MODE_Pos 4 97 #define SMC_MODE_EXNW_MODE_Msk (0x3u << SMC_MODE_EXNW_MODE_Pos) 98 #define SMC_MODE_EXNW_MODE_DISABLED (0x0u << 4) 99 #define SMC_MODE_EXNW_MODE_FROZEN (0x2u << 4) 100 #define SMC_MODE_EXNW_MODE_READY (0x3u << 4) 101 #define SMC_MODE_DBW_Pos 12 102 #define SMC_MODE_DBW_Msk (0x3u << SMC_MODE_DBW_Pos) 103 #define SMC_MODE_DBW_8_BIT (0x0u << 12) 104 #define SMC_MODE_DBW_16_BIT (0x1u << 12) 105 #define SMC_MODE_DBW_32_BIT (0x2u << 12) 106 #define SMC_MODE_TDF_CYCLES_Pos 16 107 #define SMC_MODE_TDF_CYCLES_Msk (0xfu << SMC_MODE_TDF_CYCLES_Pos) 108 #define SMC_MODE_TDF_CYCLES(value) ((SMC_MODE_TDF_CYCLES_Msk & ((value) << SMC_MODE_TDF_CYCLES_Pos))) 109 #define SMC_MODE_TDF_MODE (0x1u << 20) 110 #define SMC_MODE_PMEN (0x1u << 24) 111 #define SMC_MODE_PS_Pos 28 112 #define SMC_MODE_PS_Msk (0x3u << SMC_MODE_PS_Pos) 113 #define SMC_MODE_PS_4_BYTE (0x0u << 28) 114 #define SMC_MODE_PS_8_BYTE (0x1u << 28) 115 #define SMC_MODE_PS_16_BYTE (0x2u << 28) 116 #define SMC_MODE_PS_32_BYTE (0x3u << 28) 118 #define SMC_OCMS_SMSE (0x1u << 0) 119 #define SMC_OCMS_CS0SE (0x1u << 16) 120 #define SMC_OCMS_CS1SE (0x1u << 17) 121 #define SMC_OCMS_CS2SE (0x1u << 18) 122 #define SMC_OCMS_CS3SE (0x1u << 19) 124 #define SMC_KEY1_KEY1_Pos 0 125 #define SMC_KEY1_KEY1_Msk (0xffffffffu << SMC_KEY1_KEY1_Pos) 126 #define SMC_KEY1_KEY1(value) ((SMC_KEY1_KEY1_Msk & ((value) << SMC_KEY1_KEY1_Pos))) 128 #define SMC_KEY2_KEY2_Pos 0 129 #define SMC_KEY2_KEY2_Msk (0xffffffffu << SMC_KEY2_KEY2_Pos) 130 #define SMC_KEY2_KEY2(value) ((SMC_KEY2_KEY2_Msk & ((value) << SMC_KEY2_KEY2_Pos))) 132 #define SMC_WPMR_WPEN (0x1u << 0) 133 #define SMC_WPMR_WPKEY_Pos 8 134 #define SMC_WPMR_WPKEY_Msk (0xffffffu << SMC_WPMR_WPKEY_Pos) 135 #define SMC_WPMR_WPKEY(value) ((SMC_WPMR_WPKEY_Msk & ((value) << SMC_WPMR_WPKEY_Pos))) 137 #define SMC_WPSR_WPVS (0x1u << 0) 138 #define SMC_WPSR_WPVSRC_Pos 8 139 #define SMC_WPSR_WPVSRC_Msk (0xffffu << SMC_WPSR_WPVSRC_Pos) volatile uint32_t RwReg
Definition: sam3n00a.h:54
Definition: component_smc.h:49
volatile uint32_t WoReg
Definition: sam3n00a.h:53
#define SMCCS_NUMBER_NUMBER
Smc hardware registers.
Definition: component_smc.h:48
volatile const uint32_t RoReg
Definition: sam3n00a.h:49
SmcCs_number hardware registers.
Definition: component_smc.h:41