text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
*/ #define GPIO_FUNC27_OUT_SEL 0x000001FFU #define GPIO_FUNC27_OUT_SEL_M (GPIO_FUNC27_OUT_SEL_V link. */ #define GPIO_FUNC28_OUT_SEL 0x000001FFU #define GPIO_FUNC28_OUT_SEL_M (GPIO_FUNC28_OUT_SEL_V link. */ #define GPIO_FUNC29_OUT_SEL 0x000001FFU #define GPIO_FUNC29_OUT_SEL_M (GPIO_FUNC29_OUT_SEL_V link...
1,120
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif /* ESP32C5 Root Clock Source */ // TODO: [ESP32C5] IDF-8642 (inherit from C6) /* With the default value of FOSC_DFREQ = 100, RC_FAST clock frequency is 17.5 MHz +/- 7% */ #define SOC_CLK_RC_FAST_FREQ_APPROX 17500000 /*!...
1,121
< PLL_F160M_CLK is derived from PLL (clock gating + fixed divider of 3), it has a fixed frequency of 160MHz */ SOC_MOD_CLK_PLL_F240M, /*!< PLL_F240M_CLK is derived from PLL (clock gating + fixed divider of 2), it has a fixed frequency of 240MHz */ SOC_MOD_CLK_SPLL, /...
1,121
< Indication of the end of the available module clock sources */ } soc_module_clk_t; //////////////////////////////////////////////////SYSTIMER////////////////////////////////////////////////////////////// /** */ typedef enum { // TODO: [ESP32C5] IDF-8676 (inherit from C6) SYSTIMER_CLK_SRC_XTAL = SOC_MOD_CLK_XT...
1,121
< Select XTAL as the source clock */ GPTIMER_CLK_SRC_DEFAULT = SOC_MOD_CLK_PLL_F80M, /*!< Select PLL_F80M as the default choice */ } soc_periph_gptimer_clk_src_t; /** */ typedef enum { TIMER_SRC_CLK_PLL_F80M = SOC_MOD_CLK_PLL_F80M, /*!< Timer group clock source is PLL_F80M */ TIMER_SRC_CLK_XTAL = SOC...
1,121
< Select XTAL as the source clock */ RMT_CLK_SRC_DEFAULT = SOC_MOD_CLK_PLL_F80M, /*!< Select PLL_F80M as the default choice */ } soc_periph_rmt_clk_src_t; /** */ typedef enum { // TODO: [ESP32C5] IDF-8726 (inherit from C6) RMT_BASECLK_PLL_F80M = SOC_MOD_CLK_PLL_F80M, /*!< RMT source clock is PLL_F80M */ ...
1,121
< Select XTAL as the default choice */ } soc_periph_temperature_sensor_clk_src_t; ///////////////////////////////////////////////////UART///////////////////////////////////////////////////////////////// /** */ typedef enum { // TODO: [ESP32C5] IDF-8722 (inherit from C6) UART_SCLK_PLL_F80M = SOC_MOD_CLK_PLL_F80M...
1,121
< LP_UART source clock default choice is LP(RTC)_FAST */ } soc_periph_lp_uart_clk_src_t; //////////////////////////////////////////////////MCPWM///////////////////////////////////////////////////////////////// /** */ #define SOC_MCPWM_TIMER_CLKS {SOC_MOD_CLK_PLL_F160M, SOC_MOD_CLK_XTAL} /** */ typedef enum { // T...
1,121
< Select XTAL as the source clock */ MCPWM_CAPTURE_CLK_SRC_DEFAULT = SOC_MOD_CLK_PLL_F160M, /*!< Select PLL_F160M as the default clock choice */ } soc_periph_mcpwm_capture_clk_src_t; /** */ #define SOC_MCPWM_CARRIER_CLKS {SOC_MOD_CLK_PLL_F160M, SOC_MOD_CLK_XTAL} /** */ typedef enum { // TODO: [ESP32C5] IDF-870...
1,121
< Select PLL_F160M as the default source clock */ I2S_CLK_SRC_PLL_160M = SOC_MOD_CLK_PLL_F160M, /*!< Select PLL_F160M as the source clock */ I2S_CLK_SRC_XTAL = SOC_MOD_CLK_XTAL, /*!< Select XTAL as the source clock */ I2S_CLK_SRC_EXTERNAL = -1, ...
1,121
< LP_I2C source clock is RTC_FAST */ LP_I2C_SCLK_XTAL_D2 = SOC_MOD_CLK_XTAL_D2, /*!< LP_I2C source clock is XTAL_D2 */ LP_I2C_SCLK_DEFAULT = SOC_MOD_CLK_RTC_FAST, /*!< LP_I2C source clock default choice is RTC_FAST */ } soc_periph_lp_i2c_clk_src_t; /////////////////////////////...
1,121
< Select XTAL clock as the source clock */ SDM_CLK_SRC_PLL_F80M = SOC_MOD_CLK_PLL_F80M, /*!< Select PLL_F80M clock as the source clock */ SDM_CLK_SRC_DEFAULT = SOC_MOD_CLK_PLL_F80M, /*!< Select PLL_F80M clock as the default clock choice */ } soc_periph_sdm_clk_src_t; //////////////////////////////////////////...
1,121
< Select XTAL as the source clock */ TWAI_CLK_SRC_DEFAULT = SOC_MOD_CLK_XTAL, /*!< Select XTAL as the default clock choice */ } soc_periph_twai_clk_src_t; //////////////////////////////////////////////////ADC/////////////////////////////////////////////////////////////////// /** */ #define SOC_ADC_DIGI_CLKS {SOC...
1,121
< Select XTAL as the source clock */ MWDT_CLK_SRC_PLL_F80M = SOC_MOD_CLK_PLL_F80M, /*!< Select PLL fixed 80 MHz as the source clock */ MWDT_CLK_SRC_RC_FAST = SOC_MOD_CLK_RC_FAST, /*!< Select RTC fast as the source clock */ MWDT_CLK_SRC_DEFAULT = SOC_MOD_CLK_XTAL, /*!< Select PLL fixed 80 MHz as...
1,121
< Select XTAL as the source clock */ LEDC_USE_RTC8M_CLK __attribute__((deprecated("please use 'LEDC_USE_RC_FAST_CLK' instead"))) = LEDC_USE_RC_FAST_CLK, /*!< Alias of 'LEDC_USE_RC_FAST_CLK' */ } soc_periph_ledc_clk_src_legacy_t; //////////////////////////////////////////////////PARLIO///////////////////////////...
1,121
< Select XTAL as the source clock */ MSPI_CLK_SRC_RC_FAST = SOC_MOD_CLK_RC_FAST, /*!< Select RC_FAST as the source clock */ MSPI_CLK_SRC_SPLL = SOC_MOD_CLK_SPLL, /*!< Select SPLL as the source clock */ MSPI_CLK_SRC_ROM_DEFAULT = SOC_MOD_CLK_XTAL, /*!< Select XTAL as ROM default clock source...
1,121
< External slow clock input through XTAL_32K_P */ CLKOUT_SIG_RC_FAST = 23, /*!< RC fast clock, about 17.5MHz */ CLKOUT_SIG_RC_32K = 24, /*!< Internal slow RC oscillator */ CLKOUT_SIG_RC_SLOW = 25, /*!< RC slow clock, depends on the RTC_CLK_SRC configuration */ CLKOUT_SIG_INVALID = 0xFF, } soc...
1,121
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** SPI_CMD_REG register */ #define SPI_CMD_REG(i) (REG_SPI_BASE(i) + 0x0) /** SPI_CONF_BITLEN : R/W; bitpos: [17:0]; default: 0; */ #define SPI_CONF_BITLEN 0x0003FFFFU #define SPI_CONF_BITLEN_M (SPI_CONF_BITLEN_V link. ...
1,123
/* */ #pragma once /** #define DR_REG_UART0_BASE 0x60000000 #define DR_REG_UART1_BASE 0x60001000 #define DR_REG_SPIMEM0_BASE 0x60002000 #define DR_REG_SPIMEM1_BASE 0x60003000 #define DR_REG_I2C_BASE ...
1,124
/* */ #pragma once #ifndef __ASSEMBLER__ #include #include "esp_assert.h" #endif #include "esp_bit_defs.h" #include "reg_base.h" #define PRO_CPU_NUM (0) #define REG_UHCI_BASE(i) (DR_REG_UHCI_BASE) // only one UHCI on C5 #define REG_UART_BASE(i) ...
1,125
__ASSEMBLER__ */ //}} //Periheral Clock {{ #define APB_CLK_FREQ_ROM ( 40*1000000 ) #define CPU_CLK_FREQ_ROM APB_CLK_FREQ_ROM #define EFUSE_CLK_FREQ_ROM ( 20*1000000) #define CPU_CLK_FREQ_MHZ_BTLD (80) ...
1,125
#define SOC_DIRAM_IRAM_LOW 0x40800000 #define SOC_DIRAM_IRAM_HIGH 0x40860000 #define SOC_DIRAM_DRAM_LOW 0x40800000 #define SOC_DIRAM_DRAM_HIGH 0x40860000 #define MAP_DRAM_TO_IRAM(addr) (addr) #define MAP_IRAM_TO_DRAM(addr) (addr) // Region of memory accessible via DMA. See esp_ptr_dma_capable(). #define SO...
1,125
//There is no HW NMI conception. SW should controlled the masked levels through INT_THRESH_REG. //CPU0 Interrupt numbers used in components/riscv/vectors.S. Change it's logic if modifying #define ETS_T1_WDT_INUM 24 #define ETS_CACHEERR_INUM 25 #define ETS_MEMPROT_ERR_INUM...
1,125
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** I2C_SCL_LOW_PERIOD_REG register */ #define I2C_SCL_LOW_PERIOD_REG(i) (REG_I2C_BASE(i) + 0x0) /** I2C_SCL_LOW_PERIOD : R/W; bitpos: [8:0]; default: 0; */ #define I2C_SCL_LOW_PERIOD 0x000001FFU #define I2C_SCL_LOW_PERIOD...
1,126
/** */ #pragma once #include "soc/lp_gpio_reg.h"
1,127
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Configure Registers */ /** Type of gpion register */ typedef union { struct { /** gpion_mcu_oe : R/W; bitpos: [0]; default: 0; */ uint32_t gpion_mcu_oe:1; /** gpion_slp_sel : R/W; bitpos: [1]; defaul...
1,129
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Interrupt Registers */ /** Type of cpu_intr_from_cpu_n register */ typedef union { struct { /** cpu_intr_from_cpu_n : R/W; bitpos: [0]; default: 0; */ uint32_t cpu_intr_from_cpu_n:1; uint32_t reserve...
1,131
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Control/Status Registers */ /** Type of set_start register */ typedef union { struct { /** set_start : WS; bitpos: [0]; default: 0; */ uint32_t set_start:1; uint32_t reserved_1:31; }; uint32_...
1,132
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: configure_register */ /** Type of i2c0_ctrl register */ typedef union { struct { /** i2c0_ctrl : R/W; bitpos: [24:0]; default: 0; */ uint32_t i2c0_ctrl:25; /** i2c0_busy : RO; bitpos: [25]; default: ...
1,135
/* */ #pragma once #include "soc/interrupts.h" #ifdef __cplusplus extern "C" { #endif // TODO: [ESP32C5-PERIPH] (inherit from C6) typedef enum { /* HP peripherals */ PERIPH_LEDC_MODULE = 0, PERIPH_UART0_MODULE, PERIPH_UART1_MODULE, PERIPH_USB_DEVICE_MODULE, // USB Serial Jtag PERIPH_I2C_M...
1,139
!! Don't append soc modules here !!! */ } periph_module_t; #define PERIPH_MODEM_MODULE_MIN PERIPH_WIFI_MODULE #define PERIPH_MODEM_MODULE_MAX PERIPH_MODEM_ADC_COMMON_FE_MODULE #define PERIPH_MODEM_MODULE_NUM (PERIPH_MODEM_MODULE_MAX - PERIPH_MODEM_MODULE_MIN + 1) #define IS_MODEM_MODULE(periph) ((periph>=PERIPH_MODEM...
1,139
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** DS_Y_MEM register */ #define DS_Y_MEM (DR_REG_DS_BASE + 0x0) #define DS_Y_MEM_SIZE_BYTES 512 /** DS_M_MEM register */ #define DS_M_MEM (DR_REG_DS_BASE + 0x200) #define DS_M_MEM_SIZE_BYTES 512 /** DS_RB_MEM register */ ...
1,140
/* */ #pragma once #include #include "soc/ext_mem_defs.h" #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /* Defined for flash mmap */ #define SOC_MMU_REGIONS_COUNT 1 #define SOC_MMU_PAGES_PER_REGION 256 #define SOC_MMU_IROM0_PAGES_START (CACHE_IROM_MMU_ST...
1,141
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** LP_TEE_M0_MODE_CTRL_REG register */ #define LP_TEE_M0_MODE_CTRL_REG (DR_REG_LP_TEE_BASE + 0x0) /** LP_TEE_M0_MODE : R/W; bitpos: [1:0]; default: 3; */ #define LP_TEE_M0_MODE 0x00000003U #define LP_TEE_M0_MODE_M (LP_TE...
1,142
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Memory data */ /** Group: Interrupt registers */ /** Type of int_raw register */ typedef union { struct { /** calc_done_int_raw : RO/WTC/SS; bitpos: [0]; default: 0; */ uint32_t calc_done_int_raw:1; ...
1,144
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: configure_register */ /** Type of lp_clk_conf register */ typedef union { struct { /** slow_clk_sel : R/W; bitpos: [1:0]; default: 0; */ uint32_t slow_clk_sel:2; /** fast_clk_sel : R/W; bitpos: [3:2]...
1,146
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Configuration Registers */ /** Type of gpio register */ typedef union { struct { /** mcu_oe : R/W; bitpos: [0]; default: 0; */ uint32_t mcu_oe:1; /** slp_sel : R/W; bitpos: [1]; default: 0; ...
1,147
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Memory */ /** Group: Control / Configuration Registers */ /** Type of m_prime register */ typedef union { struct { /** m_prime : R/W; bitpos: [31:0]; default: 0; */ uint32_t m_prime:32; }; uint32_t ...
1,149
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Configuration Register */ /** Type of regdma_conf register */ typedef union { struct { /** flow_err : RO; bitpos: [2:0]; default: 0; */ uint32_t flow_err:3; /** start : WT; bitpos: [3]; default: 0; ...
1,152
/* */ #pragma once //+Terminology+ //| | //| CPU Reset: Reset CPU core only, once reset done, CPU will execute from reset vector | //| ...
1,153
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: configure_register */ /** Type of bod_mode0_cntl register */ typedef union { struct { uint32_t reserved_0:6; /** bod_mode0_close_flash_ena : R/W; bitpos: [6]; default: 0; */ uint32_t bod_mode0_close_...
1,154
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: configuration register */ /** Type of out register */ typedef union { struct { /** out_data_orig : R/W/WTC; bitpos: [7:0]; default: 0; */ uint32_t out_data_orig:8; uint32_t reserved_8:24; }; ...
1,155
/* */ #pragma once /** */ #define I2C_DIG_REG 0x6D #define I2C_DIG_REG_HOSTID 0 #define I2C_DIG_REG_EXT_RTC_DREG 4 #define I2C_DIG_REG_EXT_RTC_DREG_MSB 4 #define I2C_DIG_REG_EXT_RTC_DREG_LSB 0 #define I2C_DIG_REG_ENX_RTC_DREG 4 #define I2C_DIG_REG_ENX_RTC_DREG_MSB 7 #define I2C_DIG_REG_ENX_RTC_DRE...
1,157
/* */ #pragma once #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif #define NLBITS 3 #define CLIC_EXT_INTR_NUM_OFFSET 16 #define DUALCORE_CLIC_CTRL_OFF 0x10000 #define DR_REG_CLIC_BASE ( 0x20800000 ) #define DR_REG_CLIC_CTRL_BASE ( 0x20801000 ) #define CLIC_INT_CONFIG_REG ...
1,158
*/ #define CLIC_INT_CONFIG_NVBITS (BIT(0)) #define CLIC_INT_CONFIG_NVBITS_M (BIT(0)) #define CLIC_INT_CONFIG_NVBITS_V 0x1 #define CLIC_INT_CONFIG_NVBITS_S 0 #define CLIC_INT_INFO_REG (DR_REG_CLIC_BASE + 0x4) /* CLIC_INT_INFO_NUM_INT : R/W ;bitpos:[24:21] ;default: 4'd0 ; */ /*description: .*/ #define CL...
1,158
*/ #define CLIC_CPU_INT_THRESH 0x000000FF #define CLIC_CPU_INT_THRESH_M ((CLIC_CPU_INT_THRESH_V)<<(CLIC_CPU_INT_THRESH_S)) #define CLIC_CPU_INT_THRESH_V 0xFF #define CLIC_CPU_INT_THRESH_S 24 #define CLIC_INT_CTRL_REG(i) (DR_REG_CLIC_CTRL_BASE + (i) * 4) /* CLIC_INT_CTL : R/W ;bitpos:[31:24] ;default: 8'...
1,158
*/ #define CLIC_INT_ATTR_SHV (BIT(16)) #define CLIC_INT_ATTR_SHV_M (BIT(16)) #define CLIC_INT_ATTR_SHV_V 0x1 #define CLIC_INT_ATTR_SHV_S 16 /* CLIC_INT_IE : R/W ;bitpos:[8] ;default: 1'd0 ; */ /*description: .*/ #define CLIC_INT_IE (BIT(8)) #define CLIC_INT_IE_M (BIT(8)) #define CLIC_INT_IE_V 0x1 #define CLI...
1,158
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /* The following are the bit fields for PERIPHS_IO_MUX_x_U registers */ /* Output enable in sleep mode */ #define SLP_OE (BIT(0)) #define SLP_OE_M (BIT(0)) #define SLP_OE_V 1 #define SLP_OE_S 0 /* Used to enable sleep mode pin ...
1,161
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** SHA_MODE_REG register */ #define SHA_MODE_REG (DR_REG_SHA_BASE + 0x0) /** SHA_MODE : R/W; bitpos: [2:0]; default: 0; */ #define SHA_MODE 0x00000007U #define SHA_MODE_M (SHA_MODE_V << SHA_MODE_S) #define SHA_MODE_V 0x...
1,162
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** MEM_MONITOR_LOG_SETTING_REG register */ #define MEM_MONITOR_LOG_SETTING_REG (DR_REG_MEM_MONITOR_BASE + 0x0) /** MEM_MONITOR_LOG_MODE : R/W; bitpos: [3:0]; default: 0; */ #define MEM_MONITOR_LOG_MODE 0x0000000FU #define...
1,166
/* */ #include "soc/hp_system_reg.h" // TODO: IDF-5720 #include "intpri_reg.h" #define SYSTEM_CPU_INTR_FROM_CPU_0_REG INTPRI_CPU_INTR_FROM_CPU_0_REG #define SYSTEM_CPU_INTR_FROM_CPU_0 INTPRI_CPU_INTR_FROM_CPU_0
1,168
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** LP_I2C_ANA_MST_I2C0_CTRL_REG register */ #define LP_I2C_ANA_MST_I2C0_CTRL_REG (DR_REG_LP_I2C_ANA_MST_BASE + 0x0) /** LP_I2C_ANA_MST_I2C0_CTRL : R/W; bitpos: [24:0]; default: 0; */ #define LP_I2C_ANA_MST_I2C0_CTRL 0x01F...
1,171
/* */ /* */ #pragma once /* COMMON CAPS */ // #define SOC_ADC_SUPPORTED 1 // TODO: [ESP32C5] IDF-8701 // #define SOC_DEDICATED_GPIO_SUPPORTED 1 // TODO: [ESP32C5] IDF-8725 #define SOC_UART_SUPPORTED 1 // TODO: [ESP32C5] IDF-8722 // #define SOC_GDMA_SUPPORTED 1 // T...
1,172
SPI0/SPI1, host_id = 1 -> SPI2, #define SOC_SPI_PERIPH_SUPPORT_MULTILINE_MODE(host_id) ({(void)host_id; 1;}) // #define SOC_MEMSPI_IS_INDEPENDENT 1 // #define SOC_SPI_MAX_PRE_DIVIDER 16 /* SPI MEM CAPS */ // #define SOC_SPI_MEM_SUPPORT_AUTO_WAIT_IDLE (1) // #define SOC_SPI_MEM_SUPPORT_AUTO_SUSPEND ...
1,172
5 #define SOC_SYSTIMER_SUPPORT_RC_FAST 1 // Systimer can use RC_FAST clock source #define SOC_SYSTIMER_INT_LEVEL 1 // Systimer peripheral uses level interrupt #define SOC_SYSTIMER_ALARM_MISS_COMPENSATE 1 // Systimer peripheral can generate interrupt immediately if t(target) > t(current) // #defi...
1,172
< The UART hardware FIFO length */ #define SOC_LP_UART_FIFO_LEN (16) /*!< The LP UART hardware FIFO length */ // #define SOC_UART_BITRATE_MAX (5000000) /*!< Max bit rate supported by UART */ // #define SOC_UART_SUPPORT_PLL_F80M_CLK (1) /*!< Support PLL_F80M as the clock source *...
1,172
< EXTERNAL COEXISTENCE TX LINE CAPS */ /* PHY REGISTER AND MEMORY SIZE CAPS */ // #define SOC_PHY_DIG_REGS_MEM_SIZE (21*4) /* WIFI LIGHT SLEEP CLOCK WIDTH CAPS */ // #define SOC_WIFI_LIGHT_SLEEP_CLK_WIDTH (12) /* Power Management CAPS */ // #define SOC_PM_SUPPORT_WIFI_WAKEUP (1) // #define SOC_PM_SUPPORT...
1,172
<Supports CRC only the stub code in RTC memory */ // #define SOC_PM_CPU_RETENTION_BY_SW (1) // #define SOC_PM_MODEM_RETENTION_BY_REGDMA (1) // #define SOC_PM_RETENTION_HAS_CLOCK_BUG (1) // #define SOC_PM_PAU_LINK_NUM (4) /* CLOCK SUBSYSTEM CAPS */ #define SOC_CLK_RC_FAST_SUPPORT_CALIBRAT...
1,172
< Support hardware TSF */ // #define SOC_WIFI_FTM_SUPPORT (0) /*!< Support FTM */ // #define SOC_WIFI_GCMP_SUPPORT (1) /*!< Support GCMP(GCMP128 and GCMP256) */ // #define SOC_WIFI_WAPI_SUPPORT (1) /*!< Support WAPI */ // #define SOC_WIFI_CSI_SUPPORT (1...
1,172
< Support Bluetooth Power Control */ // #define SOC_BLE_PERIODIC_ADV_ENH_SUPPORTED (1) /*!< Support For BLE Periodic Adv Enhancements */ // #define SOC_BLUFI_SUPPORTED (1) /*!< Support BLUFI */ // #define SOC_BLE_MULTI_CONN_OPTIMIZATION (1) /*!< Support multiple connections optimization */ // #de...
1,172
/** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** Group: Region filter enable register */ /** Type of region_filter_en register */ typedef union { struct { /** region_filter_en : R/W; bitpos: [3:0]; default: 1; */ uint32_t region_filter_en:4; uint32_t rese...
1,173
/** */ #pragma once #include #include "soc/soc.h" #ifdef __cplusplus extern "C" { #endif /** PAU_REGDMA_CONF_REG register */ #define PAU_REGDMA_CONF_REG (DR_REG_PAU_BASE + 0x0) /** PAU_FLOW_ERR : RO; bitpos: [2:0]; default: 0; */ #define PAU_FLOW_ERR 0x00000007U #define PAU_FLOW_ERR_M (PAU_FLOW_ERR_V << PAU_F...
1,174
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif typedef volatile struct spi_mem_dev_s { union { struct { uint32_t mst_st : 4; /*The current status of SPI0 master FSM: spi0_mst_st. 0: idle state, 1:SPI0_GRANT , 2: program/erase suspend state, 3: S...
1,177
1: enable 0: disable. */ uint32_t usr : 1; /*SPI0 USR_CMD start bit, only used when SPI_MEM_AXI_REQ_EN is cleared. An operation will be triggered when the bit is set. The bit will be cleared once the operation done.1: enable 0: disable. */ uint32_t flash_hpm ...
1,177
Chip erase operation will be triggered when the bit is set. The bit will be cleared once the operation done.1: enable 0: disable. */ uint32_t flash_be : 1; /*Block erase enable(32KB) . Block erase operation will be triggered when the bit is set. The bit will be cleared once the op...
1,177
1: enable 0: disable. */ uint32_t flash_rdsr : 1; /*Read status register-1. Read status operation will be triggered when the bit is set. The bit will be cleared once the operation done.1: enable 0: disable. */ uint32_t flash_rdid : 1; /*Read JEDEC I...
1,177
The bit will be cleared once the operation done. 1: enable 0: disable. */ }; uint32_t val; } cmd; uint32_t addr; union { struct { uint32_t wdummy_dqs_always_out : 1; /*In the dummy phase of an MSPI write data transfer when accesses to flash, the level of SPI_...
1,177
It is used to pre-drive flash.*/ uint32_t fdout_oct : 1; /*Apply 8 signals during write-data phase 1:enable 0: disable*/ uint32_t fdin_oct : 1; /*Apply 8 signals during read-data phase 1:enable 0: disable*/ uint32_t faddr_oct ...
1,177
1: enable 0: disable. */ uint32_t fread_dual : 1; /*In the read operations, read-data phase apply 2 signals. 1: enable 0: disable. */ uint32_t resandres : 1; /*The Device ID is read out to SPI_MEM_RD_STATUS register, this bit combine with spi_mem_...
1,177
1: enable 0: disable. */ uint32_t fread_dio : 1; /*In the read operations address phase and read-data phase apply 2 signals. 1: enable 0: disable. */ uint32_t fread_qio : 1; /*In the read operations address phase and read-data phase apply 4 signal...
1,177
*/ uint32_t cs_hold_dly_res : 10; /*After RES/DP/HPM command is sent, SPI1 waits (SPI_MEM_CS_HOLD_DELAY_RES[9:0] * 512) SPI_CLK cycles.*/ uint32_t reserved2 : 9; /*reserved*/ uint32_t reg_ar_size0_1_support_en : 1; /*1: MSPI supports ...
1,177
*/ uint32_t ar_splice_en : 1; /*Set this bit to enable AXI Read Splice-transfer.*/ uint32_t aw_splice_en : 1; /*Set this bit to enable AXI Write Splice-transfer.*/ uint32_t ram0_en : 1; /*When SPI_MEM_DUAL_RAM_EN is ...
1,177
Set this bit to reset these FIFO.*/ uint32_t txfifo_rst : 1; /*The synchronous reset signal for SPI0 TX AFIFO and all the AES_MSPI SYNC FIFO to send signals to AXI. Set this bit to reset these FIFO.*/ }; uint32_t val; } ctrl1; union { struct { ...
1,177
*/ uint32_t reserved15 : 9; /*reserved*/ uint32_t split_trans_en : 1; /*Set this bit to enable SPI0 split one AXI read flash transfer into two SPI transfers when one transfer will cross flash or EXT_RAM page corner, valid no matter whether there is an EC...
1,177
*/ uint32_t clkcnt_n : 8; /*In the master mode it is the divider of spi_mem_clk. So spi_mem_clk frequency is system/(spi_mem_clkcnt_N+1)*/ uint32_t reserved24 : 7; /*In the master mode it is pre-divider of spi_mem_clk. */ uint32_t clk_e...
1,177
*/ uint32_t reserved10 : 2; /*reserved*/ uint32_t fwrite_dual : 1; /*In the write operations read-data phase apply 2 signals*/ uint32_t fwrite_quad : 1; /*In the write operations read-data phase apply 4 signals*/ ...
1,177
*/ uint32_t usr_mosi : 1; /*This bit enable the write-data phase of an operation.*/ uint32_t usr_miso : 1; /*This bit enable the read-data phase of an operation.*/ uint32_t usr_dummy : 1; /*This bit enable the ...
1,177
The register value shall be (bit_num-1).*/ }; uint32_t val; } user1; union { struct { uint32_t usr_command_value : 16; /*The value of command.*/ uint32_t reserved16 : 12; /*reserved*/ uint32_t usr_command_bitlen...
1,177
*/ uint32_t wb_mode : 8; /*Mode bits in the flash fast read mode it is combined with spi_mem_fastrd_mode bit.*/ uint32_t reserved24 : 8; /*reserved*/ }; uint32_t val; } rd_status; uint32_t reserved_30; union { ...
1,177
*/ uint32_t reserved11 : 21; /*reserved*/ }; uint32_t val; } misc; uint32_t tx_crc; union { struct { uint32_t axi_req_en : 1; /*For SPI0, AXI master access enable, 1: enable, 0:disable.*/ uint32_t usr_a...
1,177
1: enable 0: disable. The bit is the same with spi_mem_fread_dio.*/ uint32_t fdin_quad : 1; /*For SPI0 flash, din phase apply 4 signals. 1: enable 0: disable. The bit is the same with spi_mem_fread_qio.*/ uint32_t fdout_quad : 1; /*For SPI0 flash...
1,177
*/ uint32_t usr_sram_dio : 1; /*For SPI0, In the external RAM mode, spi dual I/O mode enable, 1: enable, 0:disable*/ uint32_t usr_sram_qio : 1; /*For SPI0, In the external RAM mode, spi quad I/O mode enable, 1: enable, 0:disable*/ uint32_t us...
1,177
The register value shall be (bit_num-1).*/ uint32_t sram_usr_wcmd : 1; /*For SPI0, In the external RAM mode cache write sram for user define command*/ uint32_t sram_oct : 1; /*reserved*/ uint32_t sram_wdummy_cyclelen : 6; /*F...
1,177
*/ uint32_t sdin_dual : 1; /*For SPI0 external RAM , din phase apply 2 signals. 1: enable 0: disable. The bit is the same with spi_mem_usr_sram_dio.*/ uint32_t sdout_dual : 1; /*For SPI0 external RAM , dout phase apply 2 signals. 1: enable 0: disabl...
1,177
1: enable 0: disable. The bit is the same with spi_mem_usr_sram_qio.*/ uint32_t scmd_quad : 1; /*For SPI0 external RAM , cmd phase apply 4 signals. 1: enable 0: disable. The bit is the same with spi_mem_usr_sram_qio.*/ uint32_t sdin_oct : 1; /*Fo...
1,177
*/ uint32_t sdummy_wout : 1; /*In the dummy phase of a MSPI write data transfer when accesses to external RAM, the signal level of SPI bus is output by the MSPI controller.*/ uint32_t reg_smem_wdummy_dqs_always_out: 1; /*In the dummy phase of an MSPI write data transfer...
1,177
0: Others.*/ }; uint32_t val; } sram_cmd; union { struct { uint32_t sram_usr_rd_cmd_value : 16; /*For SPI0,When cache mode is enable it is the read command value of command phase for sram.*/ uint32_t reserved16 : 12; /*reserved*...
1,177
*/ }; uint32_t val; } sram_dwr_cmd; union { struct { uint32_t sclkcnt_l : 8; /*For SPI0 external RAM interface, it must be equal to spi_mem_clkcnt_N.*/ uint32_t sclkcnt_h : 8; /*For SPI0 external RAM interface, it ...
1,177
*/ uint32_t reserved12 : 20; /*reserved*/ }; uint32_t val; } fsm; uint32_t data_buf[16]; union { struct { uint32_t waiti_en : 1; /*1: The hardware will wait idle after SE/PP/WRSR automatically, and hardware auto ...
1,177
0: The wait idle command bit length is 8.*/ uint32_t waiti_dummy_cyclelen : 6; /*The dummy cycle length when wait flash idle(RDSR).*/ uint32_t waiti_cmd : 16; /*The command value to wait flash idle(RDSR).*/ }; uint32_t val; } flash_waiti_...
1,177
*/ uint32_t flash_pes_wait_en : 1; /*1: SPI1 waits (SPI_MEM_CS_HOLD_DELAY_RES[9:0] * 4 or *128) SPI_CLK cycles after program erase suspend command is sent. 0: SPI1 does not wait after program erase suspend command is sent. */ uint32_t pes_per_en : 1; /*Set...
1,177
0: Read one byte when check flash SUS/SUS1/SUS2 status bit*/ uint32_t per_end_en : 1; /*1: Both WIP and SUS/SUS1/SUS2 bits should be checked to insure the resume status of flash. 0: Only need to check WIP is 0.*/ uint32_t pes_end_en : 1; /*1: Both ...
1,177
*/ }; uint32_t val; } flash_sus_cmd; union { struct { uint32_t flash_sus : 1; /*The status of flash suspend, only used in SPI1.*/ uint32_t wait_pesr_cmd_2b : 1; /*1: SPI1 sends out SPI_MEM_WAIT_PESR_COMMAND[15:0] to check S...
1,177
0: SPI1 waits (SPI_MEM_CS_HOLD_DELAY_RES[9:0] * 4) SPI_CLK cycles after DP command is sent.*/ uint32_t flash_per_dly_128 : 1; /*Valid when SPI_MEM_FLASH_PER_WAIT_EN is 1. 1: SPI1 waits (SPI_MEM_CS_HOLD_DELAY_RES[9:0] * 128) SPI_CLK cycles after PER command is sent. 0: SPI1 waits (SPI_MEM_CS...
1,177
0: The bit length of Program/Erase Suspend/Resume command is 8.*/ uint32_t flash_per_command : 16; /*Program/Erase resume command.*/ }; uint32_t val; } sus_status; uint32_t reserved_a8; uint32_t reserved_ac; uint32_t reserved_b0; uint32_t reserved_b4; ...
1,177
*/ uint32_t pms_reject_en : 1; /*The enable bit for SPI_MEM_PMS_REJECT_INT interrupt.*/ uint32_t axi_raddr_err_en : 1; /*The enable bit for SPI_MEM_AXI_RADDR_ERR_INT interrupt.*/ uint32_t axi_wr_flash_err_en : 1; /*The enable bit for...
1,177
*/ uint32_t slv_st_end : 1; /*The clear bit for SPI_MEM_SLV_ST_END_INT interrupt.*/ uint32_t mst_st_end : 1; /*The clear bit for SPI_MEM_MST_ST_END_INT interrupt.*/ uint32_t ecc_err : 1; /*The clear bit for SPI_M...
1,177
1: Triggered when Auto Resume command (0x7A) is sent and flash is resumed successfully. 0: Others.*/ uint32_t pes_end : 1; /*The raw bit for SPI_MEM_PES_END_INT interrupt.1: Triggered when Auto Suspend command (0x75) is sent and flash is suspended successfully. 0: Others.*/ ...
1,177
When SPI_FMEM_ECC_ERR_INT_EN is set and SPI_SMEM_ECC_ERR_INT_EN is cleared, this bit is triggered when the error times of SPI0/1 ECC read flash are equal or bigger than SPI_MEM_ECC_ERR_INT_NUM. When SPI_FMEM_ECC_ERR_INT_EN is cleared and SPI_SMEM_ECC_ERR_INT_EN is set, this bit is triggered when the error times of S...
1,177
0: Others.*/ uint32_t axi_wr_flash_err : 1; /*The raw bit for SPI_MEM_AXI_WR_FALSH_ERR_INT interrupt. 1: Triggered when AXI write flash request is received. 0: Others.*/ uint32_t axi_waddr_err : 1; /*The raw bit for SPI_MEM_AXI_WADDR_ERR_INT interrupt. 1: Tr...
1,177