text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
/* */ #ifndef _ROM_LIBC_STUBS_H_ #define _ROM_LIBC_STUBS_H_ #include #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* ESP32-C3 ROM code contains implementations of some of C library functions. Whenever a function in ROM needs to use a syscall, it calls...
3,616
/* */ #ifndef _ROM_ETS_SYS_H_ #define _ROM_ETS_SYS_H_ #include #include #ifdef __cplusplus extern "C" { #endif /** \defgroup ets_sys_apis, ets system related apis */ /** @addtogroup ets_sys_apis */ / */ /** \defgroup ets_apis, Espressif Task Scheduler related apis */ /** @addtogroup ets_apis */ ty...
3,617
*/ /** */ void ets_set_user_start(uint32_t start); /** */ /** \defgroup ets_printf_apis, ets_printf related apis used in ets */ /** @addtogroup ets_printf_apis */ /** */ int ets_printf(const char *fmt, ...); /** */ uint8_t ets_get_printf_channel(void); /** */ void ets_install_putc1(void (*p)(char c...
3,617
0 (IDF-7044) typedef enum { OK = 0, FAIL, PENDING, BUSY, CANCEL, } STATUS __attribute__((deprecated("Use ETS_STATUS instead"))); #endif /** */ #ifdef __cplusplus } #endif #endif /* _ROM_ETS_SYS_H_ */
3,617
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
3,618
- purpose must be ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_DIGITAL_SIGNATURE or ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_JTAG - key_block must be in range ETS_EFUSE_BLOCK_KEY0 toETS_EFUSE_BLOCK_KEY6. This efuse block must have the corresponding purpose set in "purpose", or ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_ALL. ...
3,618
/* */ #ifndef _ROM_AES_H_ #define _ROM_AES_H_ #include #include #ifdef __cplusplus extern "C" { #endif #define AES_BLOCK_SIZE 16 enum AES_TYPE { AES_ENC, AES_DEC, }; enum AES_BITS { AES128, AES192, AES256 }; void ets_aes_enable(void); void ets_aes_disable(void); int ets_aes_setkey(enum A...
3,619
/* */ #pragma once #include #include #include "soc/gpio_reg.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup gpio_apis, uart configuration and communication related apis */ /** @addtogroup gpio_apis */ #define GPIO_REG_READ(reg) READ_PERI_REG(reg) #define GPIO_REG_WRITE(reg, val) ...
3,620
/* */ #ifndef _ROM_RTC_H_ #define _ROM_RTC_H_ #include "ets_sys.h" #include #include #include "esp_assert.h" #include "soc/soc.h" #include "soc/rtc_cntl_reg.h" #include "soc/reset_reasons.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup rtc_apis, rtc registers and memory related apis */ /** @addtogro...
3,621
DEEP_SLEEP = BIT1 //CPU OFF, PLL OFF, only specific timer could wake up } SLEEP_MODE; typedef enum { NO_MEAN = 0, POWERON_RESET = 1, /**<1, Vbat power on reset*/ RTC_SW_SYS_RESET = 3, /**<3, Software reset digital core*/ DEEPSLEEP_RESET = 5, /...
3,621
h ESP_STATIC_ASSERT((soc_reset_reason_t)POWERON_RESET == RESET_REASON_CHIP_POWER_ON, "POWERON_RESET != RESET_REASON_CHIP_POWER_ON"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTC_SW_SYS_RESET == RESET_REASON_CORE_SW, "RTC_SW_SYS_RESET != RESET_REASON_CORE_SW"); ESP_STATIC_ASSERT((soc_reset_reason_t)DEEPSLEEP_RESET == RESET...
3,621
= RESET_REASON_CPU0_SW"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTCWDT_CPU_RESET == RESET_REASON_CPU0_RTC_WDT, "RTCWDT_CPU_RESET != RESET_REASON_CPU0_RTC_WDT"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTCWDT_BROWN_OUT_RESET == RESET_REASON_SYS_BROWN_OUT, "RTCWDT_BROWN_OUT_RESET != RESET_REASON_SYS_BROWN_OUT"); ESP_STATIC...
3,621
= RESET_REASON_CORE_USB_UART"); ESP_STATIC_ASSERT((soc_reset_reason_t)USB_JTAG_CHIP_RESET == RESET_REASON_CORE_USB_JTAG, "USB_JTAG_CHIP_RESET != RESET_REASON_CORE_USB_JTAG"); ESP_STATIC_ASSERT((soc_reset_reason_t)POWER_GLITCH_RESET == RESET_REASON_CORE_PWR_GLITCH, "POWER_GLITCH_RESET != RESET_REASON_CORE_PWR_GLITCH"); ...
3,621
/* */ #pragma once #include #include #include "ets_sys.h" #include "rsa_pss.h" #include "esp_assert.h" #ifdef __cplusplus extern "C" { #endif typedef struct ets_secure_boot_sig_block ets_secure_boot_sig_block_t; typedef struct ets_secure_boot_signature ets_secure_boot_signature_t; typedef struct ets_secure_boot_...
3,622
Any revoked/missing digests will be marked as NULL */ ETS_STATUS ets_secure_boot_read_key_digests(ets_secure_boot_key_digests_t *trusted_keys); /* Verify supplied signature against supplied digest, using supplied trusted key digests. Doesn't reconfigure cache or any other hardware access except for RSA peri...
3,622
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
3,623
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
3,624
Not used for signing with DS peripheral, but can be encrypted in-device by calling ets_ds_encrypt_params() */ typedef struct { uint32_t Y[ETS_DS_MAX_BITS / 32]; uint32_t M[ETS_DS_MAX_BITS / 32]; uint32_t Rb[ETS_DS_MAX_BITS / 32]; uint32_t M_prime; uint32_t length; } ets_ds_p_data_t; typedef...
3,624
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
3,625
*/ struct { esp_err_t (*start)(esp_flash_t *chip); esp_err_t (*end)(esp_flash_t *chip, esp_err_t err); esp_err_t (*chip_check)(esp_flash_t **inout_chip); } api_funcs; } esp_flash_rom_global_data_t; /** Access a pointer to the global data used by the ROM spi_flash driver */ esp_fla...
3,625
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
3,626
/* */ #ifndef _ROM_EFUSE_H_ #define _ROM_EFUSE_H_ #ifdef __cplusplus extern "C" { #endif #include #include #include /** \defgroup efuse_APIs efuse APIs /** @addtogroup efuse_APIs */ typedef enum { ETS_EFUSE_KEY_PURPOSE_USER = 0, ETS_EFUSE_KEY_PURPOSE_RESERVED = 1, ETS_EFUSE_KEY_PURPOSE_XTS_AES_1...
3,627
/* ROM functions for hardware SHA support. It is not recommended to use these functions directly. If using them from esp-idf then use the esp_sha_lock_engine() and esp_sha_lock_memory_block() functions in esp32/sha.h to ensure exclusive access. */ // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD...
3,628
/*/ / TJpgDec - Tiny JPEG Decompressor include file (C)ChaN, 2012 /*/ #ifndef _TJPGDEC #define _TJPGDEC /**/ /* System Configurations */ #define JD_SZBUF 512 /* Size of stream input buffer */ #define JD_FORMAT 0 /* Output pixel format 0:RGB888 (3 BYTE/pix), 1:RGB565 (1 WORD/pix) */ #define JD_USE_SCALE...
3,629
/* */ #ifndef _ROM_LLDESC_H_ #define _ROM_LLDESC_H_ #include #include "sys/queue.h" #include "esp_rom_lldesc.h" #ifdef __cplusplus extern "C" { #endif #define LLDESC_TX_MBLK_SIZE 268 /* */ #define LLDESC_RX_SMBLK_SIZE 64 /* small block size, for small mgmt frame */ #define LLDESC_...
3,630
ESP_MAC_5 */ typedef struct tx_ampdu_entry_s{ uint32_t sub_len :12, dili_num : 7, : 1, null_byte: 2, data : 1, enc : 1, seq : 8; } tx_ampdu_entry_t; typedef struct lldesc_chain_s { lldesc_t *head; l...
3,630
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
3,631
/* */ /* */ #ifndef _ROM_MD5_HASH_H_ #define _ROM_MD5_HASH_H_ #include #ifdef __cplusplus extern "C" { #endif struct MD5Context { uint32_t buf[4]; uint32_t bits[2]; uint8_t in[64]; }; void MD5Init(struct MD5Context *context); void MD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);...
3,632
/* */ #ifndef _ROM_CACHE_H_ #define _ROM_CACHE_H_ #include "esp_attr.h" #if __has_include("dport_access.h") #include "dport_access.h" #else #pragma message("For ESP32 with ECO version 2MiB */ unsigned int IRAM_ATTR cache_sram_mmu_set(int cpu_no, int pid, unsigned int vaddr, unsigned int paddr, int psize, ...
3,633
/* */ #pragma once #include "esp_types.h" #include "esp_attr.h" #include "ets_sys.h" #include "soc/soc.h" #include "soc/uart_periph.h" #include "soc/uart_reg.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup uart_apis, uart configuration and communication related apis */ /** @addtogroup uart_apis */ #de...
3,634
/* */ #pragma once #include #include #include "esp_attr.h" #include "sdkconfig.h" #include "esp_rom_spiflash.h" #ifdef __cplusplus extern "C" { #endif / */ #define PERIPHS_SPI_FLASH_CMD SPI_CMD_REG(1) #define PERIPHS_SPI_FLASH_ADDR SPI_ADDR_REG(1) #define PERIPHS_SPI_FLASH_CT...
3,635
/* */ #warning "{target}/rom/miniz.h is deprecated, please use (#include "miniz.h") instead" #include "../../miniz.h"
3,636
/* */ #ifndef _ROM_LIBC_STUBS_H_ #define _ROM_LIBC_STUBS_H_ #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* ESP32 ROM code contains implementations of some of C library functions. Whenever a function in ROM needs to use a syscall, it calls a pointer to...
3,637
/* */ #pragma once #include #include #include #include "sdkconfig.h" #ifndef CONFIG_IDF_TARGET_ESP32 #error "This header should only be included when building for ESP32" #endif #ifdef __cplusplus extern "C" { #endif /** \defgroup ets_sys_apis, ets system related apis */ /** @addtogroup ets_sys_apis */ / ...
3,638
*/ /** */ void ets_set_user_start(uint32_t start); /** */ void ets_set_startup_callback(uint32_t callback); /** */ void ets_set_appcpu_boot_addr(uint32_t start); /** */ ETS_STATUS ets_unpack_flash_code_legacy(uint32_t pos, uint32_t *entry_addr, bool jump, bool config); /** */ ETS_STATUS ets_unpack_flash_...
3,638
0 (IDF-7044) typedef enum { OK = 0, FAIL, PENDING, BUSY, CANCEL, } STATUS __attribute__((deprecated("Use ETS_STATUS instead"))); #endif /** */ #ifdef __cplusplus } #endif
3,638
/* ROM functions for hardware AES support. It is not recommended to use these functions directly, use the wrapper functions in esp32/aes.h instead. */ // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file e...
3,639
/* */ #pragma once #include #include #include "soc/gpio_reg.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup gpio_apis, uart configuration and communication related apis */ /** @addtogroup gpio_apis */ #define GPIO_REG_READ(reg) READ_PERI_REG(reg) #define GPIO_REG_WRITE(reg, val) ...
3,640
/* */ #pragma once #include "ets_sys.h" #include #include #include "esp_assert.h" #include "soc/soc.h" #include "soc/rtc_cntl_reg.h" #include "soc/reset_reasons.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup rtc_apis, rtc registers and memory related apis */ /** @addtogroup rtc_apis */ / ...
3,641
h ESP_STATIC_ASSERT((soc_reset_reason_t)POWERON_RESET == RESET_REASON_CHIP_POWER_ON, "POWERON_RESET != RESET_REASON_CHIP_POWER_ON"); ESP_STATIC_ASSERT((soc_reset_reason_t)SW_RESET == RESET_REASON_CORE_SW, "SW_RESET != RESET_REASON_CORE_SW"); ESP_STATIC_ASSERT((soc_reset_reason_t)DEEPSLEEP_RESET == RESET_REASON_CORE_DEE...
3,641
= RESET_REASON_CPU0_RTC_WDT"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTCWDT_BROWN_OUT_RESET == RESET_REASON_SYS_BROWN_OUT, "RTCWDT_BROWN_OUT_RESET != RESET_REASON_SYS_BROWN_OUT"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTCWDT_RTC_RESET == RESET_REASON_SYS_RTC_WDT, "RTCWDT_RTC_RESET != RESET_REASON_SYS_RTC_WDT"); typede...
3,641
/* */ #include "sdkconfig.h" #pragma once #include #include "ets_sys.h" #include "esp_assert.h" #ifdef __cplusplus extern "C" { #endif void ets_secure_boot_start(void); void ets_secure_boot_finish(void); void ets_secure_boot_hash(const uint32_t *buf); void ets_secure_boot_obtain(void); int ets_secure_boot_ch...
3,642
Implemented in the ROM. */ secure_boot_v2_status_t ets_secure_boot_verify_signature(const ets_secure_boot_signature_t *sig, const uint8_t *image_digest, const uint8_t *trusted_key_digest, uint8_t *verified_digest); /** @brief This function verifies the 1st stage bootloader. Implemented in the ROM. void ets_secure_bo...
3,642
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
3,643
/* ROM functions for hardware bigint support. It is not recommended to use these functions directly, use the wrapper functions in hwcrypto/mpi.h instead. */ // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this ...
3,644
/* */ #pragma once #include "sdkconfig.h" #if CONFIG_ESP32_REV_MIN_FULL >= 300 #include #include #include #ifdef __cplusplus extern "C" { #endif #define ETS_SIG_LEN 384 /* Bytes */ #define ETS_DIGEST_LEN 32 /* SHA-256, bytes */ /* Secure Boot Version 2 - Public Key format */ typedef struct { uint8_t n[384...
3,645
/* */ #ifndef _ROM_EFUSE_H_ #define _ROM_EFUSE_H_ #include #ifdef __cplusplus extern "C" { #endif /** \defgroup efuse_APIs efuse APIs /** @addtogroup efuse_APIs */ /** */ void ets_efuse_read_op(void); /** */ void ets_efuse_program_op(void); /** */ uint32_t ets_efuse_get_8M_clock(void); /** */ uint...
3,646
/* */ #ifndef _ROM_SHA_H_ #define _ROM_SHA_H_ #include #include #include "ets_sys.h" #ifdef __cplusplus extern "C" { #endif typedef enum { SHA1 = 0, SHA2_224, SHA2_256, SHA_TYPE_MAX } SHA_TYPE; typedef struct SHAContext { bool start; bool in_hardware; // Is this context curr...
3,647
/* */ /*/ / TJpgDec - Tiny JPEG Decompressor include file (C)ChaN, 2012 /*/ #ifndef _TJPGDEC #define _TJPGDEC /**/ /* System Configurations */ #define JD_SZBUF 512 /* Size of stream input buffer */ #define JD_FORMAT 0 /* Output pixel format 0:RGB888 (3 BYTE/pix), 1:RGB565 (1 WORD/pix) */ ...
3,648
/* */ #ifndef _ROM_LLDESC_H_ #define _ROM_LLDESC_H_ #include #include "sys/queue.h" #include "esp_rom_lldesc.h" #ifdef __cplusplus extern "C" { #endif #define LLDESC_TX_MBLK_SIZE 268 /* */ #define LLDESC_RX_SMBLK_SIZE 64 /* small block size, for small mgmt frame */ #define LLDESC_...
3,649
ESP_MAC_5 */ typedef struct tx_ampdu_entry_s { uint32_t sub_len : 12, dili_num : 7, : 1, null_byte: 2, data : 1, enc : 1, seq : 8; } tx_ampdu_entry_t; typedef struct lldesc_chain_s { lldesc_t *head; lldesc_t *tail...
3,649
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #define SUPPORT_BTDM 0 #define SUPPORT_BTBB 0 #define SUPPORT_WIFI 1 #define SUPPORT_USB_DWCOTG 0 #define SUPPORT_COEXIST 1 #define SUPPORT_MBEDTLS 0 /* Structure and functions for returning R...
3,650
void *dram_start_usb_reserved_rom; void *dram_end_usb_reserved_rom; #endif void *dram_start_uart_rom; void *dram_end_uart_rom; } ets_rom_layout_t; extern const ets_rom_layout_t *const ets_rom_layout_p; #ifdef __cplusplus } #endif
3,650
/* */ #ifndef ROM_CRC_H #define ROM_CRC_H #include #ifdef __cplusplus extern "C" { #endif /** \defgroup crc_apis, uart configuration and communication related apis */ /** @addtogroup crc_apis */ /* Standard CRC8/16/32 algorithms. */ // CRC-8 x8+x2+x1+1 0x07 // CRC16-CCITT x16+x12+x5+1 ...
3,651
/* */ /* */ #ifndef _ROM_MD5_HASH_H_ #define _ROM_MD5_HASH_H_ #include #ifdef __cplusplus extern "C" { #endif struct MD5Context { uint32_t buf[4]; uint32_t bits[2]; uint8_t in[64]; }; void MD5Init(struct MD5Context *context); void MD5Update(struct MD5Context *context, unsigned char const *buf, unsig...
3,652
/* */ #pragma once #include #include "esp_bit_defs.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup cache_apis, cache operation related apis */ /** @addtogroup cache_apis */ #define MIN_ICACHE_SIZE 16384 #define MAX_ICACHE_SIZE 16384 #define MIN_ICACHE_WAYS ...
3,653
< 8KB for icache and dcache */ CACHE_SIZE_FULL = 1, /*!< 16KB for icache and dcache */ } cache_size_t; typedef enum { CACHE_4WAYS_ASSOC = 0, /*!< 4 way associated cache */ CACHE_8WAYS_ASSOC = 1, /*!< 8 way associated cache */ } cache_ways_t; typedef enum { CACH...
3,653
< autoload triggered both by cache miss and hit */ } cache_autoload_trigger_t; typedef enum { CACHE_FREEZE_ACK_BUSY = 0, /*!< in this mode, cache ack busy to CPU if a cache miss happens*/ CACHE_FREEZE_ACK_ERROR = 1, /*!< in this mode, cache ack wrong data to CPU and trigger an error if a cache...
3,653
< the cache line is locked or not */ uint32_t fifo_cnt:3; /*!< fifo cnt, 0 ~ 3 for 4 ways cache */ uint32_t tag:13; /*!< the tag is the high part of the cache address, however is only 16MB (8MB Ibus + 8MB Dbus) range, and without low part */ uint32_t reserved:14; }; struct...
3,653
< cache and cache mode */ uint32_t filter_addr; /*!< the address that used to generate the struct */ uint32_t vaddr_offset; /*!< virtual address offset of the cache ways */ uint32_t tag_addr[MAX_CACHE_WAYS]; /*!< tag memory address, only [0~mod...
3,653
SOC_MMU_SENSITIVE : 0, ext_ram, vaddr, paddr, psize, num, fixed) #ifdef __cplusplus } #endif
3,653
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #define ETS_DIGEST_LEN 32 /* SHA-256, bytes */ typedef enum { ECDSA_CURVE_P192 = 1, ECDSA_CURVE_P256 = 2 } ECDSA_CURVE; int ets_ecdsa_verify(const uint8_t *key, const uint8_t *sig, ECDSA_CURVE curve_id, const uint8_t *digest, uint8_t *ve...
3,654
/* */ #ifndef _ROM_UART_H_ #define _ROM_UART_H_ #include "esp_types.h" #include "esp_attr.h" #include "ets_sys.h" #include "soc/soc.h" #include "soc/uart_reg.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup uart_apis, uart configuration and communication related apis */ /** @addtogroup uart_apis */ #d...
3,655
/* */ #pragma once #include #include #include "esp_attr.h" #include "esp_rom_spiflash.h" #ifdef __cplusplus extern "C" { #endif #define PERIPHS_SPI_FLASH_CMD SPI_MEM_CMD_REG(1) #define PERIPHS_SPI_FLASH_ADDR SPI_MEM_ADDR_REG(1) #define PERIPHS_SPI_FLASH_CTRL SPI_MEM_...
3,656
/* */ #warning "{target}/rom/miniz.h is deprecated, please use (#include "miniz.h") instead" #include "../../miniz.h"
3,657
/* */ #ifndef _ROM_LIBC_STUBS_H_ #define _ROM_LIBC_STUBS_H_ #include #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* ESP32-C6 ROM code contains implementations of some of C library functions. Whenever a function in ROM needs to use a syscall, it calls...
3,658
/* */ #ifndef _ROM_ETS_SYS_H_ #define _ROM_ETS_SYS_H_ #include #include #ifdef __cplusplus extern "C" { #endif /** \defgroup ets_sys_apis, ets system related apis */ /** @addtogroup ets_sys_apis */ / */ /** \defgroup ets_apis, Espressif Task Scheduler related apis */ /** @addtogroup ets_apis */ ty...
3,659
*/ /** */ void ets_set_user_start(uint32_t start); /** */ /** \defgroup ets_printf_apis, ets_printf related apis used in ets */ /** @addtogroup ets_printf_apis */ /** */ int ets_printf(const char *fmt, ...); /** */ uint8_t ets_get_printf_channel(void); /** */ void ets_write_char_uart(char c); /** ...
3,659
0 (IDF-7044) typedef enum { OK = 0, FAIL, PENDING, BUSY, CANCEL, } STATUS __attribute__((deprecated("Use ETS_STATUS instead"))); #endif /** */ #ifdef __cplusplus } #endif #endif /* _ROM_ETS_SYS_H_ */
3,659
/* */ #ifndef _ROM_HMAC_H_ #define _ROM_HMAC_H_ #ifdef __cplusplus extern "C" { #endif #include #include #include "efuse.h" void ets_hmac_enable(void); void ets_hmac_disable(void); /* Use the "upstream" HMAC key (ETS_EFUSE_KEY_PURPOSE_HMAC_UP) to digest a message. */ int ets_hmac_calculate_message(ets_efuse...
3,660
*/ int ets_hmac_invalidate_downstream(ets_efuse_purpose_t purpose); #ifdef __cplusplus } #endif #endif // _ROM_HMAC_H_
3,660
/* */ #ifndef _ROM_AES_H_ #define _ROM_AES_H_ #include #include #ifdef __cplusplus extern "C" { #endif #define AES_BLOCK_SIZE 16 enum AES_TYPE { AES_ENC, AES_DEC, }; enum AES_BITS { AES128, AES192, AES256 }; void ets_aes_enable(void); void ets_aes_disable(void); int ets_aes_setkey(enum A...
3,661
/* */ #pragma once #include #include #include "soc/gpio_reg.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup gpio_apis, uart configuration and communication related apis */ /** @addtogroup gpio_apis */ #define GPIO_REG_READ(reg) READ_PERI_REG(reg) #define GPIO_REG_WRITE(reg, val) ...
3,662
/* */ #pragma once #include #include #include #include "esp_assert.h" #include "soc/soc.h" #include "soc/lp_aon_reg.h" #include "soc/reset_reasons.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup rtc_apis, rtc registers and memory related apis */ /** @addtogroup rtc_apis */ / */ #defin...
3,663
typedef enum { AWAKE = 0, //<CPU ON LIGHT_SLEEP = BIT0, //CPU waiti, PLL ON. We don't need explicitly set this mode. DEEP_SLEEP = BIT1 //CPU OFF, PLL OFF, only specific timer could wake up } SLEEP_MODE; typedef enum { NO_MEAN = 0, POWERON_RESET = 1, ...
3,663
h ESP_STATIC_ASSERT((soc_reset_reason_t)POWERON_RESET == RESET_REASON_CHIP_POWER_ON, "POWERON_RESET != RESET_REASON_CHIP_POWER_ON"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTC_SW_SYS_RESET == RESET_REASON_CORE_SW, "RTC_SW_SYS_RESET != RESET_REASON_CORE_SW"); ESP_STATIC_ASSERT((soc_reset_reason_t)DEEPSLEEP_RESET == RESET...
3,663
= RESET_REASON_CPU0_MWDT0"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTC_SW_CPU_RESET == RESET_REASON_CPU0_SW, "RTC_SW_CPU_RESET != RESET_REASON_CPU0_SW"); ESP_STATIC_ASSERT((soc_reset_reason_t)RTCWDT_CPU_RESET == RESET_REASON_CPU0_RTC_WDT, "RTCWDT_CPU_RESET != RESET_REASON_CPU0_RTC_WDT"); ESP_STATIC_ASSERT((soc_reset_re...
3,663
= RESET_REASON_CORE_USB_UART"); ESP_STATIC_ASSERT((soc_reset_reason_t)USB_JTAG_CHIP_RESET == RESET_REASON_CORE_USB_JTAG, "USB_JTAG_CHIP_RESET != RESET_REASON_CORE_USB_JTAG"); ESP_STATIC_ASSERT((soc_reset_reason_t)JTAG_RESET == RESET_REASON_CPU0_JTAG, "JTAG_RESET != RESET_REASON_CPU0_JTAG"); typedef enum { NO_SLEEP...
3,663
/* */ #pragma once #include #include #include "ets_sys.h" #include "ecdsa.h" #include "rsa_pss.h" #include "esp_assert.h" #ifdef __cplusplus extern "C" { #endif #if CONFIG_SECURE_BOOT_V2_ENABLED || CONFIG_SECURE_SIGNED_APPS_NO_SECURE_BOOT typedef struct ets_secure_boot_sig_block ets_secure_boot_sig_block_t; typ...
3,664
*/ ets_secure_boot_status_t ets_secure_boot_verify_bootloader_with_keys(uint8_t *verified_hash, const ets_secure_boot_key_digests_t *trusted_keys, bool stage_load); /* Read key digests from efuse. Any revoked/missing digests will be marked as NULL */ ETS_STATUS ets_secure_boot_read_key_digests(ets_secure_boot_key_...
3,664
/* */ #ifndef _ROM_BIGINT_H_ #define _ROM_BIGINT_H_ #include #include #ifdef __cplusplus extern "C" { #endif void ets_bigint_enable(void); void ets_bigint_disable(void); int ets_bigint_multiply(const uint32_t *x, const uint32_t *y, uint32_t len_words); int ets_bigint_modmult(const uint32_t *x, const uint32_t ...
3,665
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif #include #include #define ETS_DS_MAX_BITS 3072 #define ETS_DS_IV_LEN 16 /* Length of parameter 'C' stored in flash (not including IV) Comprises encrypted Y, M, rinv, md (32), mprime (4), length (4), padding (8) Note that if ETS_DS_MAX_BITSrsa_le...
3,666
/* */ #pragma once #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif /* Note: Most of esp_flash APIs in ROM are compatible with headers in ESP-IDF, this function just adds ROM-specific parts */ struct spi_flash_chip_t; typedef struct esp_flash_t esp_flash_t; /* Structure to wrap "global" data used b...
3,667
/* */ #ifndef _ROM_RSA_PSS_H_ #define _ROM_RSA_PSS_H_ #include #include #include #ifdef __cplusplus extern "C" { #endif #define ETS_SIG_LEN 384 /* Bytes */ #define ETS_DIGEST_LEN 32 /* SHA-256, bytes */ typedef struct { uint8_t n[384]; /* Public key modulus */ uint32_t e; /* Public key exponent */ ...
3,668
/* */ #ifndef _ROM_EFUSE_H_ #define _ROM_EFUSE_H_ #ifdef __cplusplus extern "C" { #endif #include #include #include /** \defgroup efuse_APIs efuse APIs /** @addtogroup efuse_APIs */ typedef enum { ETS_EFUSE_KEY_PURPOSE_USER = 0, ETS_EFUSE_KEY_PURPOSE_RESERVED = 1, ETS_EFUSE_KEY_PURPOSE_XTS_AES_1...
3,669
// Copyright 2021 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
3,670
/* */ #ifndef _ROM_SHA_H_ #define _ROM_SHA_H_ #include #include #include "ets_sys.h" #ifdef __cplusplus extern "C" { #endif typedef enum { SHA1 = 0, SHA2_224, SHA2_256, SHA_TYPE_MAX } SHA_TYPE; typedef struct SHAContext { bool start; bool in_hardware; // Is this context curr...
3,671
/* */ #ifndef _ROM_LLDESC_H_ #define _ROM_LLDESC_H_ #include #include "sys/queue.h" #include "esp_rom_lldesc.h" #ifdef __cplusplus extern "C" { #endif #define LLDESC_TX_MBLK_SIZE 268 /* */ #define LLDESC_RX_SMBLK_SIZE 64 /* small block size, for small mgmt frame */ #define LLDESC_...
3,672
ESP_MAC_5 */ typedef struct tx_ampdu_entry_s { uint32_t sub_len : 12, dili_num : 7, : 1, null_byte: 2, data : 1, enc : 1, seq : 8; } tx_ampdu_entry_t; typedef struct lldesc_chain_s { lldesc_t *head; lldesc_t *tail...
3,672
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #define SUPPORT_BTDM 0 #define SUPPORT_BTBB 0 #define SUPPORT_WIFI 0 #define SUPPORT_USB_DWCOTG 0 #define SUPPORT_COEXIST 0 #define SUPPORT_MBEDTLS 0 /* Structure and functions for returning R...
3,673
void *dram_start_usb_reserved_rom; void *dram_end_usb_reserved_rom; #endif void *dram_start_uart_rom; void *dram_end_uart_rom; } ets_rom_layout_t; extern const ets_rom_layout_t * const ets_rom_layout_p; #ifdef __cplusplus } #endif
3,673
/* */ #ifndef ROM_CRC_H #define ROM_CRC_H #include #ifdef __cplusplus extern "C" { #endif /** \defgroup crc_apis, uart configuration and communication related apis */ /** @addtogroup crc_apis */ /* Standard CRC8/16/32 algorithms. */ // CRC-8 x8+x2+x1+1 0x07 // CRC16-CCITT x16+x12+x5+1 ...
3,674
/* */ /* */ #ifndef _ROM_MD5_HASH_H_ #define _ROM_MD5_HASH_H_ #include #ifdef __cplusplus extern "C" { #endif struct MD5Context { uint32_t buf[4]; uint32_t bits[2]; uint8_t in[64]; }; void MD5Init(struct MD5Context *context); void MD5Update(struct MD5Context *context, unsigned char const *buf, unsig...
3,675
/* */ #pragma once #ifndef _ROM_CACHE_H_ #define _ROM_CACHE_H_ #include #include "esp_bit_defs.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup cache_apis, cache operation related apis */ /** @addtogroup cache_apis */ #define MIN_ICACHE_SIZE 16384 #define MAX_ICACHE_SIZE ...
3,676
< 8KB for icache and dcache */ CACHE_SIZE_FULL = 1, /*!< 16KB for icache and dcache */ } cache_size_t; typedef enum { CACHE_4WAYS_ASSOC = 0, /*!< 4 way associated cache */ CACHE_8WAYS_ASSOC = 1, /*!< 8 way associated cache */ } cache_ways_t; typedef enum { CACH...
3,676
< autoload triggered both by cache miss and hit */ } cache_autoload_trigger_t; typedef enum { CACHE_FREEZE_ACK_BUSY = 0, /*!< in this mode, cache ack busy to CPU if a cache miss happens*/ CACHE_FREEZE_ACK_ERROR = 1, /*!< in this mode, cache ack wrong data to CPU and trigger an error if a cache...
3,676
< the cache line is locked or not */ uint32_t fifo_cnt:3; /*!< fifo cnt, 0 ~ 3 for 4 ways cache */ uint32_t tag:13; /*!< the tag is the high part of the cache address, however is only 16MB (8MB Ibus + 8MB Dbus) range, and without low part */ uint32_t reserved:14; }; struct...
3,676
< cache and cache mode */ uint32_t filter_addr; /*!< the address that used to generate the struct */ uint32_t vaddr_offset; /*!< virtual address offset of the cache ways */ uint32_t tag_addr[MAX_CACHE_WAYS]; /*!< tag memory address, only [0~mod...
3,676
SOC_MMU_SENSITIVE : 0, ext_ram, vaddr, paddr, psize, num, fixed) #ifdef __cplusplus } #endif #endif /* _ROM_CACHE_H_ */
3,676
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #define ETS_DIGEST_LEN 32 /* SHA-256, bytes */ typedef enum { ECDSA_CURVE_P192 = 1, ECDSA_CURVE_P256 = 2 } ECDSA_CURVE; int ets_ecdsa_verify(const uint8_t *key, const uint8_t *sig, ECDSA_CURVE curve_id, const uint8_t *digest, uint8_t *ve...
3,677