text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
/* */ #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,678
/* */ #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,679
/* */ #ifndef _ROM_LIBC_STUBS_H_ #define _ROM_LIBC_STUBS_H_ #include #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* ESP32-H2 ROM code contains implementations of some of C library functions. Whenever a function in ROM needs to use a syscall, it calls...
3,680
/* */ #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,681
*/ /** */ 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,681
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,681
/* */ #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,682
*/ int ets_hmac_invalidate_downstream(ets_efuse_purpose_t purpose); #ifdef __cplusplus } #endif #endif // _ROM_HMAC_H_
3,682
/* */ #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,683
/* */ #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,684
/* */ #pragma once #include #include #include #include "soc/soc.h" #include "soc/lp_aon_reg.h" #include "soc/reset_reasons.h" #include "esp_assert.h" #ifdef __cplusplus extern "C" { #endif /** \defgroup rtc_apis, rtc registers and memory related apis */ /** @addtogroup rtc_apis */ / */ #define...
3,685
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, /**<1, Vbat power on reset*/ RTC_SW_SYS_RESET = 3, /**<3, Software reset digital cor...
3,685
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,685
= 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,685
= 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"); typedef enum { NO_SLEEP = 0, EXT_EVENT0_TRIG = BIT0, EXT_EVENT1_TRIG = BIT1, GPIO_TRIG = BIT2, TIMER_EXPIRE ...
3,685
/* */ #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,686
*/ 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,686
/* */ #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,687
/* */ #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,688
/* */ #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,689
/* */ #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,690
/* */ #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_ECDSA_KEY = 1, ETS_EFUSE_KEY_PURPOSE_RESERVED...
3,691
// Copyright 2015-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 a...
3,692
Needs to be manually cleared if multiple SHAs are interleaved SHA_TYPE type; uint32_t state[16]; // For SHA1/SHA224/SHA256, used 8, other used 16 unsigned char buffer[128]; // For SHA1/SHA224/SHA256, used 64, other used 128 uint32_t total_bits[4]; } SHA_CTX; void ets_sha_enable(void);...
3,692
/*/ / 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...
3,693
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif void ets_apb_backup_init_lock_func(void(* _apb_backup_lock)(void), void(* _apb_backup_unlock)(void)); #ifdef __cplusplus } #endif
3,694
/* */ #pragma once #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_RX_MBLK_SIZE 524 /...
3,695
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,695
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #define SUPPORT_WIFI 1 #define SUPPORT_BTDM 1 #define SUPPORT_USB_DWCOTG 1 /* Structure and functions for returning ROM global layout */ typedef struct { void *dram0_stack_shared_mem_start; void *dram0_rtos_rese...
3,696
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,696
// Copyright 2015-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 a...
3,697
/** */ uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); /** */ uint32_t crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); /** */ uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); /** */ uint16_t crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); /** */ u...
3,697
/* */ /* */ #pragma once #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); void MD5Final(unsigned char...
3,698
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif #ifndef BIT #define BIT(nr) (1 << (nr)) #endif /** \defgroup cache_apis, cache operation related apis */ /** @addtogroup cache_apis */ #define MIN_ICACHE_SIZE 16384 #define MAX_ICACHE_SIZE 32768 #define MIN_D...
3,699
< 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,699
< autoload only triggered by cache miss */ CACHE_AUTOLOAD_HIT_TRIGGER = 1, /*!< autoload only triggered by cache hit */ CACHE_AUTOLOAD_BOTH_TRIGGER = 2, /*!< autoload triggered both by cache miss and hit */ } cache_autoload_trigger_t; typedef enum { CACHE_FREEZE_ACK_BUSY = 0, /*!< in this m...
3,699
< the cache line is locked or not */ uint32_t attr: 4; /*!< the attribute of the external memory physical address */ uint32_t fifo_cnt: 3; /*!< fifo cnt, 0 ~ 3 for 4 ways cache */ uint32_t tag: 14; /*!< the tag is the high part of the cache address, however ...
3,699
< autoload enable */ uint8_t order; /*!< autoload step is positive or negative */ uint8_t trigger; /*!< autoload trigger */ uint8_t size; /*!< autoload size */ }; struct autoload_region_config { uint8_t region; /*!< autol...
3,699
< cache memory address, only [0~mode.ways-1] is valid to use */ uint8_t use_legacy; /*!< 1 for using legacy tag api, 0 for using 2rd tag api */ }; struct lock_config { uint32_t addr; /*!< manual lock address*/ uint16_t size; ...
3,699
*/ uint32_t Cache_Suspend_DCache(void); /** */ void Cache_Resume_DCache(uint32_t autoload); /** */ uint32_t Cache_Get_ICache_Line_Size(void); /** */ uint32_t Cache_Get_DCache_Line_Size(void); /** */ void Cache_Set_Default_Mode(void); /** */ void Cache_Enable_Defalut_ICache_Mode(void); /** */ void C...
3,699
/* */ #pragma once #include #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 */ #define RX_BUFF_SIZE 0x400 #define TX_BUFF_SIZ...
3,700
/* */ #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 ...
3,701
/* */ #warning "{target}/rom/miniz.h is deprecated, please use (#include "miniz.h") instead" #include "../../miniz.h"
3,702
/* */ #pragma once #include #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /** struct syscall_stub_table { struct _reent* (*__getreent)(void); void* (*_malloc_r)(struct _reent *r, size_t); void (*_free_r)(struct _reent *r, void*); void*...
3,703
/* */ #pragma once #include #include #include "soc/soc.h" #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 */ typedef enum { ...
3,704
*/ /** */ void ets_set_user_start(uint32_t start); /** */ void ets_set_appcpu_boot_addr(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...
3,704
0 (IDF-7044) typedef enum { OK = 0, FAIL, PENDING, BUSY, CANCEL, } STATUS __attribute__((deprecated("Use ETS_STATUS instead"))); #endif /** */ #ifdef __cplusplus } #endif
3,704
// Copyright 2018-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 a...
3,705
- 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,705
/* */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif 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 AES_TYPE type, const void *key, enum AES_BITS bits); i...
3,706
/* */ #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,707
/* */ #pragma once #include #include #include #include "esp_assert.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 */ / */ #define RTC_SLOW_CLK_CAL_R...
3,708
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,708
= 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,708
= 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,708
/* */ #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,709
Doesn't reconfigure cache or any other hardware access. */ secure_boot_status_t ets_secure_boot_verify_signature(const ets_secure_boot_signature_t *sig, const uint8_t *image_digest, const ets_secure_boot_key_digests_t *trusted_keys, uint8_t *verified_digest); /* Read key digests from efuse. Any revoked/missing di...
3,709
// Copyright 2015-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 a...
3,710
/* #ifndef _ROM_OPI_FLASH_H_ #define _ROM_OPI_FLASH_H_ #include #include #include #include #include "spi_flash.h" #ifdef __cplusplus extern "C" { #endif typedef struct { uint8_t mode; uint8_t cmd_bit_len; uint16_t cmd; uint32_t addr; uint8_t addr_bit_len; uint8_t dummy_bit_len; uint...
3,711
< Command byte length*/ uint32_t *addr; /*!< Point to address value*/ uint32_t addrBitLen; /*!< Address byte length*/ uint32_t *txData; /*!< Point to send data buffer*/ uint32_t txDataBitLen; /*!< Send data byte length.*/ uint32_t *rxData; /*!< Point ...
3,711
// Copyright 2019-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 a...
3,712
Result of AES-CBC encryption of plaintext values. Includes an encrypted message digest. */ uint8_t c[ETS_DS_C_LEN]; } ets_ds_data_t; typedef enum { ETS_DS_OK, ETS_DS_INVALID_PARAM, /* Supplied parameters are invalid */ ETS_DS_INVALID_KEY, /* HMAC peripheral failed to supply key */ ...
3,712
// Copyright 2015-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 a...
3,713
/* */ #pragma once #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_256_KEY_1 = 2, ETS_EFUSE_KEY...
3,714
/* */ /** */ #pragma once #include #include #include "usb_device.h" #ifdef __cplusplus extern "C" { #endif /** DFU Class Subclass */ #define DFU_SUBCLASS 0x01 /** DFU Class runtime Protocol */ #define DFU_RT_PROTOCOL 0x01 /** DFU Class DFU mode Protocol */ #define DFU_MODE_PROTOCOL 0...
3,715
*/ int dfu_class_handle_req(struct usb_setup_packet *pSetup, int32_t *data_len, uint8_t **data); void dfu_status_cb(enum usb_dc_status_code status, uint8_t *param); int usb_dfu_init(void); int dfu_custom_handle_req(struct usb_setup_packet *pSetup, int32_t *data_len, ...
3,715
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif int chip_usb_dw_init(void); int chip_usb_dw_did_persist(void); void chip_usb_dw_prepare_persist(void); uint32_t chip_usb_get_persist_flags(void); void chip_usb_set_persist_flags(uint32_t flags); #ifdef __cplusplus } #endif
3,716
/* */ /** */ #pragma once #include #include #include #ifdef __cplusplus extern "C" { #endif #define CPIO_MODE_FILETYPE_MASK 0xF000 #define CPIO_MODE_FILETYPE_SOCKET 0xC000 #define CPIO_MODE_FILETYPE_SYMLINK 0xA000 #define CPIO_MODE_FILETYPE_REGULAR 0x8000 #define CPIO_MODE_FILETYPE_BLOCKDEV 0x6000 #d...
3,717
/* */ /** */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif #define BCD(x) ((((x) / 10) 1, */ #define USB_CONFIGURATION_ATTRIBUTES 0xC0 /* Classes */ #define COMMUNICATION_DEVICE_CLASS 0x02 #define COMMUNICATION_DEVICE_CLASS_DATA 0x0A #define HID_CLASS 0x03 #define MASS_...
3,718
/* */ /** */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** */ #define USB_EP_DIR_MASK 0x80 #define USB_EP_DIR_IN 0x80 #define USB_EP_DIR_OUT 0x00 /** */ enum usb_dc_status_code { USB_DC_ERROR, /* USB error reported by the controller */ USB_DC_RESET, /* USB reset *...
3,719
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif typedef void cdc_acm_device; extern cdc_acm_device *uart_acm_dev; #define ACM_BYTES_PER_TX 64 //ACM statuses are negative to distinguish from USB_DC_* status codes #define ACM_STATUS_LINESTATE_CHANGED -1 #define ACM_STATUS_LINECODING_CHANGED -2 ...
3,720
*/ #define LINE_CTRL_BAUD_RATE (1 << 0) #define LINE_CTRL_RTS (1 << 1) #define LINE_CTRL_DTR (1 << 2) #define LINE_CTRL_DCD (1 << 3) #define LINE_CTRL_DSR (1 << 4) /* Common communication errors for UART.*/ /** @brief Overrun error */ #define UART_ERROR_OVERRUN (1 << 0) /** @brief Parity err...
3,720
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif // USB persistence flags. //This bit indicates persistence has been enabled, that is, the USB initialization routines should not //reset the USB device as the device still is initialized and the host detected it with the same cdcacm/dfu //descrip...
3,721
typedef struct { char *memstart; //start of memory region char *memend; //end of memory region char *textstart; //start of text to output char *textend; } usbdc_testament_t; #ifdef __cplusplus } #endif
3,721
/* */ /** */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif /** CDC Specification release number in BCD format */ #define CDC_SRN_1_20 0x0120 /** Communications Class Subclass Codes */ #define ACM_SUBCLASS 0x02 #define ECM_SUBCLASS 0x06 #define EEM_SUBCL...
3,722
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif typedef void(*usb_osglue_intdisena_routine_t)(void); typedef int(*usb_osglue_wait_routine_t)(int delay_us); typedef struct { /* Disable USB interrupt */ usb_osglue_intdisena_routine_t int_dis_proc; /* Enable USB interrupt */ usb_...
3,723
/* */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif #define USB_DESCRIPTOR_TYPE_ACM 0 #define USB_DESCRIPTOR_TYPE_DFU 1 void usb_set_current_descriptor(int descriptor_type); bool usb_get_descriptor(uint16_t type_index, uint16_t lang_id, int32_t *len, uint8_t **da...
3,724
/* */ /** */ #pragma once #include #include #include "usb_dc.h" #include "esp_assert.h" #ifdef __cplusplus extern "C" { #endif / / #define MAX_PACKET_SIZE0 64 /** */ uint8_t ep_addr; }; /** */ struct usb_interface_cfg_data { /** Handler for USB Class specific Control (EP 0) communica...
3,725
/* 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 hwcrypto/sha.h to ensure exclusive access. */ // Copyright 2015-2016 Espressif Systems (Shanghai) PTE ...
3,726
Needs to be manually cleared if multiple SHAs are interleaved SHA_TYPE type; uint32_t state[16]; // For SHA1/SHA224/SHA256, used 8, other used 16 unsigned char buffer[128]; // For SHA1/SHA224/SHA256, used 64, other used 128 uint32_t total_bits[4]; } SHA_CTX; void ets_sha_enable(void);...
3,726
/* */ #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,727
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,727
// 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,728
/** */ uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); /** */ uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); /** */ uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); /** */ #ifdef __cplusplus } #endif #endif
3,728
/* */ /* */ #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,729
/* */ #ifndef _ROM_CACHE_H_ #define _ROM_CACHE_H_ #ifdef __cplusplus extern "C" { #endif /** \defgroup cache_apis, cache operation related apis */ /** @addtogroup cache_apis */ #define MIN_CACHE_SIZE 8192 #define MAX_CACHE_SIZE 16384 #define MIN_CACHE_WAYS 4...
3,730
< 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_ways_t; typedef enum { CACHE_LINE_SIZE_16B = 0, /*!< 16 Byte cache line size */ CAC...
3,730
< cache size in byte */ uint16_t cache_line_size; /*!< cache line size in byte */ uint8_t cache_ways; /*!< cache ways, always 4 */ uint8_t icache; /*!< the cache index, 0 for dcache, 1 for icache */ }; struct tag_item { uint32_t dirty:1; /...
3,730
< autoload step is positive or negative */ uint8_t trigger; /*!< autoload trigger */ uint8_t ena0; /*!< autoload region0 enable */ uint8_t ena1; /*!< autoload region1 enable */ uint32_t addr0; /*!< autoload region0 start ...
3,730
< cache memory address, only [0~mode.ways-1] is valid to use */ }; struct lock_config { uint32_t addr; /*!< manual lock address*/ uint16_t size; /*!< manual lock size*/ uint16_t group; /*!< manual lock group, ...
3,730
*/ uint32_t Cache_Suspend_DCache(void); /** */ void Cache_Resume_DCache(uint32_t autoload); /** */ uint32_t Cache_Get_ICache_Line_Size(void); /** */ uint32_t Cache_Get_DCache_Line_Size(void); /** */ void Cache_Set_Default_Mode(void); /** */ void Cache_Enable_Defalut_DCache_Mode(void); /** */ void C...
3,730
/* */ #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,731
/* */ #pragma once #ifndef CONFIG_IDF_TARGET_ESP32S2 #error This file should only be included for ESP32-S2 target #endif #include #include #include "esp_attr.h" #include "soc/spi_mem_reg.h" #include "esp_rom_spiflash.h" #ifdef __cplusplus extern "C" { #endif / */ #define PERIPHS_SPI_FLASH_CMD ...
3,732
/* */ #warning "{target}/rom/miniz.h is deprecated, please use (#include "miniz.h") instead" #include "../../miniz.h"
3,733
/* */ #ifndef _ROM_LIBC_STUBS_H_ #define _ROM_LIBC_STUBS_H_ #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* ESP32-S2 ROM code contains implementations of some of C library functions. Whenever a function in ROM needs to use a syscall, it calls a pointer...
3,734
/* */ #ifndef _ROM_ETS_SYS_H_ #define _ROM_ETS_SYS_H_ #include #include #include "soc/soc.h" #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 */ /** @addtog...
3,735
*/ /** */ 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, ...); /** */ void ets_set_printf_channel(uint8_t uart_no); /** */ uint8_t ets_get_printf_channel(...
3,735
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,735
// Copyright 2018 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,736
- 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,736