mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-12 23:52:38 +00:00
remove esp32c3 unsupported efuse field
This commit is contained in:
@@ -274,30 +274,12 @@ extern "C" {
|
||||
#define EFUSE_FORCE_SEND_RESUME_M (BIT(13))
|
||||
#define EFUSE_FORCE_SEND_RESUME_V 0x1
|
||||
#define EFUSE_FORCE_SEND_RESUME_S 13
|
||||
/* EFUSE_FLASH_ECC_EN : R/W ;bitpos:[12] ;default: 1'b0 ; */
|
||||
/*description: Set 1 to enable ECC for flash boot.*/
|
||||
#define EFUSE_FLASH_ECC_EN (BIT(12))
|
||||
#define EFUSE_FLASH_ECC_EN_M (BIT(12))
|
||||
#define EFUSE_FLASH_ECC_EN_V 0x1
|
||||
#define EFUSE_FLASH_ECC_EN_S 12
|
||||
/* EFUSE_FLASH_PAGE_SIZE : R/W ;bitpos:[11:10] ;default: 2'h0 ; */
|
||||
/*description: Set Flash page size.*/
|
||||
#define EFUSE_FLASH_PAGE_SIZE 0x00000003
|
||||
#define EFUSE_FLASH_PAGE_SIZE_M ((EFUSE_FLASH_PAGE_SIZE_V)<<(EFUSE_FLASH_PAGE_SIZE_S))
|
||||
#define EFUSE_FLASH_PAGE_SIZE_V 0x3
|
||||
#define EFUSE_FLASH_PAGE_SIZE_S 10
|
||||
/* EFUSE_FLASH_TYPE : R/W ;bitpos:[9] ;default: 1'b0 ; */
|
||||
/*description: Set the maximum lines of SPI flash. 0: four lines. 1: eight lines.*/
|
||||
#define EFUSE_FLASH_TYPE (BIT(9))
|
||||
#define EFUSE_FLASH_TYPE_M (BIT(9))
|
||||
#define EFUSE_FLASH_TYPE_V 0x1
|
||||
#define EFUSE_FLASH_TYPE_S 9
|
||||
/* EFUSE_PIN_POWER_SELECTION : R/W ;bitpos:[8] ;default: 1'b0 ; */
|
||||
/*description: GPIO33-GPIO37 power supply selection in ROM code. 0: VDD3P3_CPU. 1: VDD_SPI.*/
|
||||
#define EFUSE_PIN_POWER_SELECTION (BIT(8))
|
||||
#define EFUSE_PIN_POWER_SELECTION_M (BIT(8))
|
||||
#define EFUSE_PIN_POWER_SELECTION_V 0x1
|
||||
#define EFUSE_PIN_POWER_SELECTION_S 8
|
||||
/* EFUSE_RPT4_RESERVED7 : R/W ;bitpos:[12:8] ;default: 5'h0 ; */
|
||||
/*description: Reserved (used for four backups method).*/
|
||||
#define EFUSE_RPT4_RESERVED7 0x0000001F
|
||||
#define EFUSE_RPT4_RESERVED7_M ((EFUSE_RPT4_RESERVED7_V)<<(EFUSE_RPT4_RESERVED7_S))
|
||||
#define EFUSE_RPT4_RESERVED7_V 0x1F
|
||||
#define EFUSE_RPT4_RESERVED7_S 8
|
||||
/* EFUSE_UART_PRINT_CONTROL : R/W ;bitpos:[7:6] ;default: 2'h0 ; */
|
||||
/*description: Set the default UARTboot message output mode. 00: Enabled. 01:
|
||||
Enabled when GPIO8 is low at reset. 10: Enabled when GPIO8 is high at reset. 11:disabled.*/
|
||||
@@ -317,13 +299,12 @@ extern "C" {
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_M (BIT(4))
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_V 0x1
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_S 4
|
||||
/* EFUSE_FLASH_ECC_MODE : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
||||
/*description: Set ECC mode in ROM 0: ROM would Enable Flash ECC 16to18 byte
|
||||
mode. 1:ROM would use 16to17 byte mode.*/
|
||||
#define EFUSE_FLASH_ECC_MODE (BIT(3))
|
||||
#define EFUSE_FLASH_ECC_MODE_M (BIT(3))
|
||||
#define EFUSE_FLASH_ECC_MODE_V 0x1
|
||||
#define EFUSE_FLASH_ECC_MODE_S 3
|
||||
/* EFUSE_RPT4_RESERVED8 : R/W ;bitpos:[3] ;default: 1'b0 ; */
|
||||
/*description: Reserved (used for four backups method).*/
|
||||
#define EFUSE_RPT4_RESERVED8 (BIT(3))
|
||||
#define EFUSE_RPT4_RESERVED8_M (BIT(3))
|
||||
#define EFUSE_RPT4_RESERVED8_V 0x1
|
||||
#define EFUSE_RPT4_RESERVED8_S 3
|
||||
/* EFUSE_UART_PRINT_CHANNEL : R/W ;bitpos:[2] ;default: 1'b0 ; */
|
||||
/*description: Selectes the default UART print channel. 0: UART0. 1: UART1.*/
|
||||
#define EFUSE_UART_PRINT_CHANNEL (BIT(2))
|
||||
@@ -646,30 +627,12 @@ extern "C" {
|
||||
#define EFUSE_FORCE_SEND_RESUME_M (BIT(13))
|
||||
#define EFUSE_FORCE_SEND_RESUME_V 0x1
|
||||
#define EFUSE_FORCE_SEND_RESUME_S 13
|
||||
/* EFUSE_FLASH_ECC_EN : RO ;bitpos:[12] ;default: 1'b0 ; */
|
||||
/*description: The value of FLASH_ECC_EN.*/
|
||||
#define EFUSE_FLASH_ECC_EN (BIT(12))
|
||||
#define EFUSE_FLASH_ECC_EN_M (BIT(12))
|
||||
#define EFUSE_FLASH_ECC_EN_V 0x1
|
||||
#define EFUSE_FLASH_ECC_EN_S 12
|
||||
/* EFUSE_FLASH_PAGE_SIZE : RO ;bitpos:[11:10] ;default: 2'h0 ; */
|
||||
/*description: The value of FLASH_PAGE_SIZE.*/
|
||||
#define EFUSE_FLASH_PAGE_SIZE 0x00000003
|
||||
#define EFUSE_FLASH_PAGE_SIZE_M ((EFUSE_FLASH_PAGE_SIZE_V)<<(EFUSE_FLASH_PAGE_SIZE_S))
|
||||
#define EFUSE_FLASH_PAGE_SIZE_V 0x3
|
||||
#define EFUSE_FLASH_PAGE_SIZE_S 10
|
||||
/* EFUSE_FLASH_TYPE : RO ;bitpos:[9] ;default: 1'b0 ; */
|
||||
/*description: The value of FLASH_TYPE.*/
|
||||
#define EFUSE_FLASH_TYPE (BIT(9))
|
||||
#define EFUSE_FLASH_TYPE_M (BIT(9))
|
||||
#define EFUSE_FLASH_TYPE_V 0x1
|
||||
#define EFUSE_FLASH_TYPE_S 9
|
||||
/* EFUSE_PIN_POWER_SELECTION : RO ;bitpos:[8] ;default: 1'b0 ; */
|
||||
/*description: The value of PIN_POWER_SELECTION.*/
|
||||
#define EFUSE_PIN_POWER_SELECTION (BIT(8))
|
||||
#define EFUSE_PIN_POWER_SELECTION_M (BIT(8))
|
||||
#define EFUSE_PIN_POWER_SELECTION_V 0x1
|
||||
#define EFUSE_PIN_POWER_SELECTION_S 8
|
||||
/* EFUSE_RPT4_RESERVED7 : RO ;bitpos:[12:8] ;default: 5'h0 ; */
|
||||
/*description: Reserved.*/
|
||||
#define EFUSE_RPT4_RESERVED7 0x0000001F
|
||||
#define EFUSE_RPT4_RESERVED7_M ((EFUSE_RPT4_RESERVED7_V)<<(EFUSE_RPT4_RESERVED7_S))
|
||||
#define EFUSE_RPT4_RESERVED7_V 0x1F
|
||||
#define EFUSE_RPT4_RESERVED7_S 8
|
||||
/* EFUSE_UART_PRINT_CONTROL : RO ;bitpos:[7:6] ;default: 2'h0 ; */
|
||||
/*description: The value of UART_PRINT_CONTROL.*/
|
||||
#define EFUSE_UART_PRINT_CONTROL 0x00000003
|
||||
@@ -688,12 +651,12 @@ extern "C" {
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_M (BIT(4))
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_V 0x1
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_S 4
|
||||
/* EFUSE_FLASH_ECC_MODE : RO ;bitpos:[3] ;default: 1'b0 ; */
|
||||
/*description: The value of FLASH_ECC_MODE.*/
|
||||
#define EFUSE_FLASH_ECC_MODE (BIT(3))
|
||||
#define EFUSE_FLASH_ECC_MODE_M (BIT(3))
|
||||
#define EFUSE_FLASH_ECC_MODE_V 0x1
|
||||
#define EFUSE_FLASH_ECC_MODE_S 3
|
||||
/* EFUSE_RPT4_RESERVED8 : RO ;bitpos:[3] ;default: 1'b0 ; */
|
||||
/*description: Reserved.*/
|
||||
#define EFUSE_RPT4_RESERVED8 (BIT(3))
|
||||
#define EFUSE_RPT4_RESERVED8_M (BIT(3))
|
||||
#define EFUSE_RPT4_RESERVED8_V 0x1
|
||||
#define EFUSE_RPT4_RESERVED8_S 3
|
||||
/* EFUSE_UART_PRINT_CHANNEL : RO ;bitpos:[2] ;default: 1'b0 ; */
|
||||
/*description: The value of UART_PRINT_CHANNEL.*/
|
||||
#define EFUSE_UART_PRINT_CHANNEL (BIT(2))
|
||||
@@ -1616,30 +1579,12 @@ extern "C" {
|
||||
#define EFUSE_FORCE_SEND_RESUME_ERR_M (BIT(13))
|
||||
#define EFUSE_FORCE_SEND_RESUME_ERR_V 0x1
|
||||
#define EFUSE_FORCE_SEND_RESUME_ERR_S 13
|
||||
/* EFUSE_FLASH_ECC_EN : RO ;bitpos:[12] ;default: 1'b0 ; */
|
||||
/*description: If FLASH_ECC_EN_ERR is 1 then it indicates a programming error.*/
|
||||
#define EFUSE_FLASH_ECC_EN (BIT(12))
|
||||
#define EFUSE_FLASH_ECC_EN_M (BIT(12))
|
||||
#define EFUSE_FLASH_ECC_EN_V 0x1
|
||||
#define EFUSE_FLASH_ECC_EN_S 12
|
||||
/* EFUSE_FLASH_PAGE_SIZE : RO ;bitpos:[11:10] ;default: 2'h0 ; */
|
||||
/*description: If any bits in FLASH_PAGE_SIZE is 1 then it indicates a programming error.*/
|
||||
#define EFUSE_FLASH_PAGE_SIZE 0x00000003
|
||||
#define EFUSE_FLASH_PAGE_SIZE_M ((EFUSE_FLASH_PAGE_SIZE_V)<<(EFUSE_FLASH_PAGE_SIZE_S))
|
||||
#define EFUSE_FLASH_PAGE_SIZE_V 0x3
|
||||
#define EFUSE_FLASH_PAGE_SIZE_S 10
|
||||
/* EFUSE_FLASH_TYPE_ERR : RO ;bitpos:[9] ;default: 1'b0 ; */
|
||||
/*description: If FLASH_TYPE is 1 then it indicates a programming error.*/
|
||||
#define EFUSE_FLASH_TYPE_ERR (BIT(9))
|
||||
#define EFUSE_FLASH_TYPE_ERR_M (BIT(9))
|
||||
#define EFUSE_FLASH_TYPE_ERR_V 0x1
|
||||
#define EFUSE_FLASH_TYPE_ERR_S 9
|
||||
/* EFUSE_PIN_POWER_SELECTION_ERR : RO ;bitpos:[8] ;default: 1'b0 ; */
|
||||
/*description: If PIN_POWER_SELECTION is 1 then it indicates a programming error.*/
|
||||
#define EFUSE_PIN_POWER_SELECTION_ERR (BIT(8))
|
||||
#define EFUSE_PIN_POWER_SELECTION_ERR_M (BIT(8))
|
||||
#define EFUSE_PIN_POWER_SELECTION_ERR_V 0x1
|
||||
#define EFUSE_PIN_POWER_SELECTION_ERR_S 8
|
||||
/* EFUSE_RPT4_RESERVED7_ERR : RO ;bitpos:[12:8] ;default: 5'h0 ; */
|
||||
/*description: Reserved.*/
|
||||
#define EFUSE_RPT4_RESERVED7_ERR 0x0000001F
|
||||
#define EFUSE_RPT4_RESERVED7_ERR_M ((EFUSE_RPT4_RESERVED7_ERR_V)<<(EFUSE_RPT4_RESERVED7_ERR_S))
|
||||
#define EFUSE_RPT4_RESERVED7_ERR_V 0x1F
|
||||
#define EFUSE_RPT4_RESERVED7_ERR_S 8
|
||||
/* EFUSE_UART_PRINT_CONTROL_ERR : RO ;bitpos:[7:6] ;default: 2'h0 ; */
|
||||
/*description: If any bit in UART_PRINT_CONTROL is 1 then it indicates a programming error.*/
|
||||
#define EFUSE_UART_PRINT_CONTROL_ERR 0x00000003
|
||||
@@ -1658,12 +1603,12 @@ extern "C" {
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_ERR_M (BIT(4))
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_ERR_V 0x1
|
||||
#define EFUSE_DIS_USB_DOWNLOAD_MODE_ERR_S 4
|
||||
/* EFUSE_FLASH_ECC_MODE_ERR : RO ;bitpos:[3] ;default: 1'b0 ; */
|
||||
/*description: If FLASH_ECC_MODE is 1 then it indicates a programming error.*/
|
||||
#define EFUSE_FLASH_ECC_MODE_ERR (BIT(3))
|
||||
#define EFUSE_FLASH_ECC_MODE_ERR_M (BIT(3))
|
||||
#define EFUSE_FLASH_ECC_MODE_ERR_V 0x1
|
||||
#define EFUSE_FLASH_ECC_MODE_ERR_S 3
|
||||
/* EFUSE_RPT4_RESERVED8_ERR : RO ;bitpos:[3] ;default: 1'b0 ; */
|
||||
/*description: Reserved.*/
|
||||
#define EFUSE_RPT4_RESERVED8_ERR (BIT(3))
|
||||
#define EFUSE_RPT4_RESERVED8_ERR_M (BIT(3))
|
||||
#define EFUSE_RPT4_RESERVED8_ERR_V 0x1
|
||||
#define EFUSE_RPT4_RESERVED8_ERR_S 3
|
||||
/* EFUSE_UART_PRINT_CHANNEL_ERR : RO ;bitpos:[2] ;default: 1'b0 ; */
|
||||
/*description: If UART_PRINT_CHANNEL is 1 then it indicates a programming error.*/
|
||||
#define EFUSE_UART_PRINT_CHANNEL_ERR (BIT(2))
|
||||
|
@@ -68,14 +68,11 @@ typedef volatile struct efuse_dev_s {
|
||||
uint32_t dis_download_mode: 1; /*Set this bit to disable download mode (boot_mode[3:0] = 0 1 2 3 6 7).*/
|
||||
uint32_t dis_legacy_spi_boot: 1; /*Set this bit to disable Legacy SPI boot mode (boot_mode[3:0] = 4).*/
|
||||
uint32_t uart_print_channel: 1; /*Selectes the default UART print channel. 0: UART0. 1: UART1.*/
|
||||
uint32_t flash_ecc_mode: 1; /*Set ECC mode in ROM 0: ROM would Enable Flash ECC 16to18 byte mode. 1:ROM would use 16to17 byte mode.*/
|
||||
uint32_t rpt4_reserved8: 1; /*Reserved (used for four backups method).*/
|
||||
uint32_t dis_usb_download_mode: 1; /*Set this bit to disable UART download mode through USB.*/
|
||||
uint32_t enable_security_download: 1; /*Set this bit to enable secure UART download mode.*/
|
||||
uint32_t uart_print_control: 2; /*Set the default UARTboot message output mode. 00: Enabled. 01: Enabled when GPIO8 is low at reset. 10: Enabled when GPIO8 is high at reset. 11:disabled.*/
|
||||
uint32_t pin_power_selection: 1; /*GPIO33-GPIO37 power supply selection in ROM code. 0: VDD3P3_CPU. 1: VDD_SPI.*/
|
||||
uint32_t flash_type: 1; /*Set the maximum lines of SPI flash. 0: four lines. 1: eight lines.*/
|
||||
uint32_t flash_page_size: 2; /*Set Flash page size.*/
|
||||
uint32_t flash_ecc_en: 1; /*Set 1 to enable ECC for flash boot.*/
|
||||
uint32_t rpt4_reserved7: 5; /*Reserved (used for four backups method).*/
|
||||
uint32_t force_send_resume: 1; /*Set this bit to force ROM code to send a resume command during SPI boot.*/
|
||||
uint32_t secure_version: 16; /*Secure version (used by ESP-IDF anti-rollback feature).*/
|
||||
uint32_t rpt4_reserved1: 2; /*Reserved (used for four backups method).*/
|
||||
@@ -152,14 +149,11 @@ typedef volatile struct efuse_dev_s {
|
||||
uint32_t dis_download_mode: 1; /*The value of DIS_DOWNLOAD_MODE.*/
|
||||
uint32_t dis_legacy_spi_boot: 1; /*The value of DIS_LEGACY_SPI_BOOT.*/
|
||||
uint32_t uart_print_channel: 1; /*The value of UART_PRINT_CHANNEL.*/
|
||||
uint32_t flash_ecc_mode: 1; /*The value of FLASH_ECC_MODE.*/
|
||||
uint32_t rpt4_reserved8: 1; /*Reserved.*/
|
||||
uint32_t dis_usb_download_mode: 1; /*The value of DIS_USB_DOWNLOAD_MODE.*/
|
||||
uint32_t enable_security_download: 1; /*The value of ENABLE_SECURITY_DOWNLOAD.*/
|
||||
uint32_t uart_print_control: 2; /*The value of UART_PRINT_CONTROL.*/
|
||||
uint32_t pin_power_selection: 1; /*The value of PIN_POWER_SELECTION.*/
|
||||
uint32_t flash_type: 1; /*The value of FLASH_TYPE.*/
|
||||
uint32_t flash_page_size: 2; /*The value of FLASH_PAGE_SIZE.*/
|
||||
uint32_t flash_ecc_en: 1; /*The value of FLASH_ECC_EN.*/
|
||||
uint32_t rpt4_reserved7: 5; /*Reserved.*/
|
||||
uint32_t force_send_resume: 1; /*The value of FORCE_SEND_RESUME.*/
|
||||
uint32_t secure_version: 16; /*The value of SECURE_VERSION.*/
|
||||
uint32_t rpt4_reserved1: 2; /*Reserved.*/
|
||||
@@ -322,14 +316,11 @@ typedef volatile struct efuse_dev_s {
|
||||
uint32_t dis_download_mode_err: 1; /*If DIS_DOWNLOAD_MODE is 1 then it indicates a programming error.*/
|
||||
uint32_t dis_legacy_spi_boot_err: 1; /*If DIS_LEGACY_SPI_BOOT is 1 then it indicates a programming error.*/
|
||||
uint32_t uart_print_channel_err: 1; /*If UART_PRINT_CHANNEL is 1 then it indicates a programming error.*/
|
||||
uint32_t flash_ecc_mode_err: 1; /*If FLASH_ECC_MODE is 1 then it indicates a programming error.*/
|
||||
uint32_t rpt4_reserved8_err: 1; /*Reserved.*/
|
||||
uint32_t dis_usb_download_mode_err: 1; /*If DIS_USB_DOWNLOAD_MODE is 1 then it indicates a programming error.*/
|
||||
uint32_t enable_security_download_err: 1; /*If ENABLE_SECURITY_DOWNLOAD is 1 then it indicates a programming error.*/
|
||||
uint32_t uart_print_control_err: 2; /*If any bit in UART_PRINT_CONTROL is 1 then it indicates a programming error.*/
|
||||
uint32_t pin_power_selection_err: 1; /*If PIN_POWER_SELECTION is 1 then it indicates a programming error.*/
|
||||
uint32_t flash_type_err: 1; /*If FLASH_TYPE is 1 then it indicates a programming error.*/
|
||||
uint32_t flash_page_size: 2; /*If any bits in FLASH_PAGE_SIZE is 1 then it indicates a programming error.*/
|
||||
uint32_t flash_ecc_en: 1; /*If FLASH_ECC_EN_ERR is 1 then it indicates a programming error.*/
|
||||
uint32_t rpt4_reserved7_err: 5; /*Reserved*/
|
||||
uint32_t force_send_resume_err: 1; /*If FORCE_SEND_RESUME is 1 then it indicates a programming error.*/
|
||||
uint32_t secure_version_err: 16; /*If any bit in SECURE_VERSION is 1 then it indicates a programming error.*/
|
||||
uint32_t rpt4_reserved1_err: 2; /*Reserved.*/
|
||||
|
Reference in New Issue
Block a user