text
stringlengths
1
9.98k
__index_level_0__
int64
0
4.17k
< Init stage number (0 or 1) */ } esp_system_init_fn_t; #define ESP_SYSTEM_INIT_STAGE_CORE 0 #define ESP_SYSTEM_INIT_STAGE_SECONDARY 1 /** */ #define ESP_SYSTEM_INIT_FN(f, stage_, c, priority, ...) \ static esp_err_t __VA_ARGS__ __esp_system_init_fn_##f(void); \ static __attribute__((used)) _SEC...
2,514
#ifdef __cplusplus } #endif
2,514
/* */ #pragma once #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif /** */ /** */ void esp_clk_init(void); /** */ void esp_perip_clk_init(void); #if !CONFIG_IDF_TARGET_ESP32C2 /* Selects an external clock source (32 kHz) for RTC. */ void rtc_clk_select_rtc_slow_clk(void); #endif #ifdef __cplus...
2,515
/* */ #pragma once #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif #ifdef CONFIG_ESP_IPC_ISR_ENABLE /** */ void esp_ipc_isr_port_init(const int cpuid); /** */ void esp_ipc_isr_port_int_trigger(const int cpuid); #endif // CONFIG_ESP_IPC_ISR_ENABLE #ifdef __cplusplus } #endif
2,516
/* */ #ifndef __ESP_BROWNOUT_H #define __ESP_BROWNOUT_H #ifdef __cplusplus extern "C" { #endif void esp_brownout_init(void); void esp_brownout_disable(void); #ifdef __cplusplus } #endif #endif
2,517
/* */ #include "sdkconfig.h" #include "esp_err.h" #include "eri.h" #include "xtensa-debug-module.h" #include "xt_trax.h" #ifdef __cplusplus extern "C" { #endif typedef enum { TRAX_DOWNCOUNT_WORDS, TRAX_DOWNCOUNT_INSTRUCTIONS } trax_downcount_unit_t; typedef enum { TRAX_ENA_NONE = 0, TRAX_ENA_PRO, ...
2,518
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif /** */ void esp_cache_err_int_init(void); /** */ int esp_cache_err_get_cpuid(void); /** */ const char *esp_cache_err_panic_string(void); /** */ bool esp_cache_err_has_active_err(void); #ifdef __cplusplus } #endif
2,519
/* */ #pragma once #ifndef __ASSEMBLER__ #include "sdkconfig.h" #include #include #ifdef __cplusplus extern "C" { #endif /* The functions below are designed to be used in interrupt/panic handler void esp_hw_stack_guard_monitor_start(void); void esp_hw_stack_guard_monitor_stop(void); void esp_hw_stack_guard_set_b...
2,520
endm .macro ESP_HW_STACK_GUARD_MONITOR_STOP_CPU0 reg1 reg2 lui \reg1, ASSIST_DEBUG_CORE_0_INTR_ENA_REG_IMM lw \reg2, 0(\reg1) andi \reg2, \reg2, ~ASSIST_DEBUG_SP_SPILL_BITS sw \reg2, 0(\reg1) .endm .macro ESP_HW_STACK_GUARD_MONITOR_START_CPU0 reg1 reg2 lui \reg1, ASSIST_DEBUG_CORE_0_INTR_ENA_REG_...
2,520
endm .macro ESP_HW_STACK_GUARD_MONITOR_START_CPU1 reg1 reg2 lui \reg1, ASSIST_DEBUG_CORE_1_INTR_ENA_REG_IMM lw \reg2, 0(\reg1) ori \reg2, \reg2, ASSIST_DEBUG_SP_SPILL_BITS sw \reg2, 0(\reg1) .endm .macro ESP_HW_STACK_GUARD_SET_BOUNDS_CUR_CORE reg1 /* Check the current core ID */ csrr \reg1, mhartid ...
2,520
/* */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif /** */ #define ARCH_WORD_SIZE (sizeof(long)) /** */ #define indexof(structure,field) (offsetof(structure, field) / ARCH_WORD_SIZE) /** */ #define EXECUTION_FRAME_MAX_REGS (11) /** */ typedef struct x86ExcFrame { union { ...
2,521
eip) /** */ #define EXECUTION_FRAME_SP(struct) ((struct).esp) /** */ #define EXECUTION_FRAME_SP_REG (indexof(x86ExcFrame, esp)) /** */ #define EXECUTION_FRAME_REG(frame, i) ((frame)->registers[(i)]) /** */ #define UNW_GET_CONTEXT(frame) { \ __asm__ __volatile__(".intel_syntax noprefix\n\t" \ ...
2,521
att_syntax prefix" \ : \ : "r" (frame), \ "i" (UNW_X86_EAX * ARCH_WORD_SIZE), \ "i" (UNW_X86_ECX * ARCH_WORD_SIZE), \ "i" (UNW_X86_EDX * ARCH_WORD_SIZE), \ "i" (U...
2,521
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif void __attribute__((__noreturn__)) panic_restart(void); #ifdef __cplusplus } #endif
2,522
/* */ /** */ #pragma once #include #include "esp_attr.h" #include "riscv/rvruntime-frames.h" #ifdef __cplusplus extern "C" { #endif /** */ #define ARCH_WORD_SIZE (sizeof(long)) /** */ #define indexof(structure,field) (offsetof(structure, field) / ARCH_WORD_SIZE) /** */ typedef RvExcFrame ExecutionFrame; ...
2,523
mepc) /** */ #define EXECUTION_FRAME_SP(frame) ((frame).sp) /** */ #define EXECUTION_FRAME_SP_REG (indexof(RvExcFrame, sp)) /** */ #define EXECUTION_FRAME_REG(frame, i) (((uint32_t*) (frame))[(i)]) /** */ FORCE_INLINE_ATTR void UNW_GET_CONTEXT(ExecutionFrame* frame) { __asm__ __volatile__("sw t0, %1(...
2,523
/* */ #ifndef SDKCONFIG_H #define SDKCONFIG_H #define CONFIG_ESP_SYSTEM_USE_EH_FRAME 1 #define CONFIG_IDF_TARGET_X86 1 #endif // SDKCONFIG_H
2,524
/* */ #include #include #include #include #include static inline void panic_print_str(const char* str) { /* Ignore "Backtrace:" string. */ if (strcmp(str, "Backtrace:") != 0) { printf("%s", str); } } static inline void panic_print_hex(const uint32_t value) { printf("%x", value); }
2,525
/* */ #pragma once #include #include #include "hal/timer_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct gptimer_t *gptimer_handle_t; /** */ typedef struct { uint64_t count_value; /*!< Current count value */ uint64_t alarm_value; /*!< Current alarm value */ } gptimer_alarm_event_...
2,526
/* */ #pragma once #include "esp_err.h" #include "esp_etm.h" #include "driver/gptimer_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { gptimer_etm_event_type_t event_type; /*!< GPTimer ETM event type */ } gptimer_etm_event_config_t; /** */ esp_err_t gptimer_new_etm_event(gptimer_handl...
2,527
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/gptimer_types.h" #include "driver/gptimer_etm.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { gptimer_clock_source_t clk_src; /*!< GPTimer clock source */ gptimer_count_direction_t direction; /*!< Count dir...
2,528
< Timer alarm callback */ } gptimer_event_callbacks_t; /** */ esp_err_t gptimer_register_event_callbacks(gptimer_handle_t timer, const gptimer_event_callbacks_t *cbs, void *user_data); /** */ typedef struct { uint64_t alarm_count; /*!< Alarm target count value */ uint64_t reload_count; /*!< Alarm reload co...
2,528
/* */ // DO NOT USE THESE APIS IN YOUR APPLICATIONS // The following APIs are for internal use, public to other IDF components, but not for users' applications. #pragma once #include "esp_err.h" #include "esp_intr_alloc.h" #include "esp_pm.h" #include "driver/gptimer.h" #ifdef __cplusplus extern "C" { #endif /** ...
2,529
/* */ #pragma once #include #include #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "esp_err.h" #include "esp_intr_alloc.h" #include "esp_heap_caps.h" #include "esp_pm.h" #include "soc/soc_caps.h" #include "hal/timer_hal.h" #ifdef __cplusplus extern "C" { #endif // If ISR handler is allowed to ru...
2,530
/* */ #ifndef ESP_EVENT_PRIVATE_H_ #define ESP_EVENT_PRIVATE_H_ #include #include "esp_event.h" #ifdef __cplusplus extern "C" { #endif /** */ bool esp_event_is_handler_registered(esp_event_loop_handle_t event_loop, esp_event_base_t event_base, int32_t event_id, esp_event_handler_t event_handler); /** */ esp_er...
2,531
/* */ #ifndef ESP_EVENT_INTERNAL_H_ #define ESP_EVENT_INTERNAL_H_ #include "sys/queue.h" #include #include "esp_event.h" #include "stdatomic.h" #ifdef __cplusplus extern "C" { #endif typedef SLIST_HEAD(base_nodes, base_node) base_nodes_t; typedef struct esp_event_handler_context { esp_event_handler_t handler...
2,532
/* */ #ifndef ESP_EVENT_H_ #define ESP_EVENT_H_ #include "esp_err.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "freertos/semphr.h" #include "esp_event_base.h" #ifdef __cplusplus extern "C" { #endif /// Configuration for creating event loops typedef struct { ...
2,533
.. event loop handler handler ... where: event loop format: address,name rx:total_received dr:total_dropped where: address - memory address of the event loop name - name of the event loop, 'none' if no dedicated task total_rec...
2,533
/* */ #pragma once #include #ifdef __cplusplus extern "C" { #endif // Defines for declaring and defining event base #define ESP_EVENT_DECLARE_BASE(id) extern esp_event_base_t const id #define ESP_EVENT_DEFINE_BASE(id) esp_event_base_t const id = #id // Event loop library types typedef const char* esp_event_base...
2,534
/* */ #pragma once #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" #include "esp_event.h"
2,535
/* */ #ifndef __ESP_TYPES_H__ #define __ESP_TYPES_H__ #ifdef __GNUC__ #include #endif /*__GNUC__*/ #include #include #include #endif /* __ESP_TYPES_H__ */
2,536
/* */ #ifndef __ESP_ASSERT_H__ #define __ESP_ASSERT_H__ #include "assert.h" /* Since IDF v5.0, C17 standard is used, which supports both _Static_assert and static_assert syntax */ /* Please do not use `_Static_assert` for C++ compatibility */ #define ESP_STATIC_ASSERT static_assert /* Assert at compile time if poss...
2,537
(CONDITION)) { \ extern __attribute__((error(#MSG))) void failed_compile_time_assert(void); \ failed_compile_time_assert(); \ } \ ...
2,537
/* */ #pragma once #include #include #include #include #include "esp_compiler.h" #ifdef __cplusplus extern "C" { #endif typedef int esp_err_t; /* Definitions for error constants. */ #define ESP_OK 0 /*!< esp_err_t value indicating success (no error) */ #define ESP_FAIL -1 /*!< Gener...
2,538
< Version was invalid */ #define ESP_ERR_INVALID_MAC 0x10B /*!< MAC address was invalid */ #define ESP_ERR_NOT_FINISHED 0x10C /*!< Operation has not fully completed */ #define ESP_ERR_NOT_ALLOWED 0x10D /*!< Operation is not allowed */ #define ESP_ERR_WIFI_BASE 0x3000 /*!< Starti...
2,538
h, but it does happen when building on the host which uses /usr/include/assert.h or equivalent. */ #ifdef __ASSERT_FUNCTION #define __ASSERT_FUNC __ASSERT_FUNCTION /* used in glibc assert.h */ #else #define __ASSERT_FUNC "??" #endif #endif /** @endcond */ /** */ #ifdef NDEBUG #define ESP_ERROR_CHECK(x) do { ...
2,538
= ESP_OK)) { \ _esp_error_check_failed(err_rc_, __FILE__, __LINE__, \ __ASSERT_FUNC, #x); \ } \ } while(0) #endif /** */ #if defined NDEBUG || d...
2,538
/* */ #pragma once //Register Bits{{ #define BIT31 0x80000000 #define BIT30 0x40000000 #define BIT29 0x20000000 #define BIT28 0x10000000 #define BIT27 0x08000000 #define BIT26 0x04000000 #define BIT25 0x02000000 #define BIT24 0x01000000 #define BIT23 0x00800000 #define BIT22 0x00400000 #define BI...
2,539
/* */ #pragma once #ifdef __cplusplus extern "C" { #endif /** Major version number (X.x.x) */ #define ESP_IDF_VERSION_MAJOR 5 /** Minor version number (x.X.x) */ #define ESP_IDF_VERSION_MINOR 3 /** Patch version number (x.x.X) */ #define ESP_IDF_VERSION_PATCH 0 /** */ #define ESP_IDF_VERSION_VAL(major, mino...
2,540
/* */ #ifndef __ESP_ATTR_H__ #define __ESP_ATTR_H__ #ifdef __cplusplus extern "C" { #endif #include "sdkconfig.h" #define ROMFN_ATTR //Normally, the linker script will put all code and rodata in flash, //and all variables in shared RAM. These macros can be used to redirect //particular functions/variables to othe...
2,541
#if IRAM_8BIT_ACCESSIBLE // Forces data into IRAM instead of DRAM #define IRAM_DATA_ATTR __attribute__((section(".iram.data"))) // Forces data into IRAM instead of DRAM and map it to coredump #define COREDUMP_IRAM_DATA_ATTR _SECTION_ATTR_IMPL(".iram2.coredump", __COUNTER__) // Forces bss into IRAM instead of DRAM #d...
2,541
\n")); #define DRAM_STR(str) (__extension__({static const DRAM_ATTR char __c[] = (str); (const char *)&__c;})) #if CONFIG_SOC_RTC_FAST_MEM_SUPPORTED || CONFIG_SOC_RTC_SLOW_MEM_SUPPORTED // Forces data into RTC memory. See "docs/deep-sleep-stub.rst" // Any variable marked with this attribute will keep its value // duri...
2,541
rtc.force_slow", __COUNTER__) // Forces code into RTC fast memory. See "docs/deep-sleep-stub.rst" #define RTC_IRAM_ATTR _SECTION_ATTR_IMPL(".rtc.text", __COUNTER__) // Allows to place data into RTC_FAST memory. #define RTC_FAST_ATTR _SECTION_ATTR_IMPL(".rtc.force_fast", __COUNTER__) // Allows to place data into RTC_...
2,541
ext_ram.bss", __COUNTER__) _Pragma ("GCC warning \"'EXT_RAM_ATTR' macro is deprecated, please use `EXT_RAM_BSS_ATTR`\"") #else #define EXT_RAM_ATTR _Pragma ("GCC warning \"'EXT_RAM_ATTR' macro is deprecated, please use `EXT_RAM_BSS_ATTR`\"") #endif // Forces data into noinit section to avoid initialization after resta...
2,541
" _COUNTER_STRINGIFY(COUNTER)))) #define _COUNTER_STRINGIFY(COUNTER) #COUNTER #else // Custom section attributes are generally not used in the port files for Linux target, but may be found // in the common header files. Don't declare custom sections in that case. #define _SECTION_ATTR_IMPL(SECTION, COUNTER) #endif /* ...
2,541
/* */ #pragma once /* This header contains various general purpose helper macros used across ESP-IDF */ #include #include "esp_assert.h" #ifdef __cplusplus extern "C" { #endif /** */ #if defined(__cplusplus) && (__cplusplus > 201703L) #define CHOOSE_MACRO_VA_ARG_INN_IMPL(...) __VA_OPT__(0) #define CHOOSE_MACRO_...
2,542
..) N # define __RSEQ_N__() \ 62,61,60, \ 59,58,57,56,55,54,53,52,51,50, \ 49,48,47,46,45,44,43,42,41,40, \ 39,38,37,36,35,34,33,32,31,30, \ 29,28,27,26,25,24,23,22,21,20, \ 19,18,17,16,15,14,13,12,11,10, \ 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 #endif ...
2,542
/* */ #pragma once #include "sdkconfig.h" /* */ #if (CONFIG_COMPILER_OPTIMIZATION_PERF) #ifndef likely #define likely(x) __builtin_expect(!!(x), 1) #endif #ifndef unlikely #define unlikely(x) __builtin_expect(!!(x), 0) #endif #else #ifndef likely #define likely(x) (x) #endif #ifndef unlikely #define u...
2,543
/* */ #pragma once #include "esp_err.h" #include "esp_log.h" #ifdef __cplusplus extern "C" { #endif /** */ #if defined(CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT) #define ESP_RETURN_ON_ERROR(x, log_tag, format, ...) do { \ (void)log_tag; ...
2,544
= ESP_OK)) { \ return err_rc_; \ } \ } while(0) /** */ #define ESP_GOTO_ON_ERROR(x, got...
2,544
..) do { \ (void)log_tag; \ esp_err_t err_rc_ = (x); \ if (unlikely(err_rc_ != ESP_OK)) { ...
2,544
..) do { \ (void)log_tag; \ if (unlikely(!(a))) { \ return err_code; ...
2,544
..) do { \ (void)log_tag; \ if (unlikely(!(a))) { \ ret = err_code; \...
2,544
..) do { \ esp_err_t err_rc_ = (x); \ if (unlikely(err_rc_ != ESP_OK)) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): "...
2,544
..) do { \ esp_err_t err_rc_ = (x); \ if (unlikely(err_rc_ != ESP_OK)) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): " format,...
2,544
..) do { \ if (unlikely(!(a))) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__ __VA_OPT__(,) __VA_ARGS__); \ return err_code; ...
2,544
..) do { \ if (unlikely(!(a))) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__ __VA_OPT__(,) __VA_ARGS__); \ ret = err_code; ...
2,544
..) do { \ esp_err_t err_rc_ = (x); \ if (unlikely(err_rc_ != ESP_OK)) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__, ...
2,544
..) do { \ esp_err_t err_rc_ = (x); \ if (unlikely(err_rc_ != ESP_OK)) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__, ##__VA_A...
2,544
..) do { \ if (unlikely(!(a))) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \ return err_code; ...
2,544
..) do { \ if (unlikely(!(a))) { \ ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \ ret = err_code; \...
2,544
/* */ #pragma once #include #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { int gen_gpio_num; /*!< The GPIO number used to output the PWM signal */ struct { uint32_t invert_pwm: 1; /*!< Whether to ...
2,545
< Timer direction */ mcpwm_timer_event_t event; /*!< Timer event */ mcpwm_generator_action_t action; /*!< Generator action should perform */ } mcpwm_gen_timer_event_action_t; /** */ #define MCPWM_GEN_TIMER_EVENT_ACTION(dir, ev, act) \ (mcpwm_gen_timer_event_action_t) { .direction = dir, .event =...
2,545
direction = dir, .comparator = cmp, .action = act } #define MCPWM_GEN_COMPARE_EVENT_ACTION_END() \ (mcpwm_gen_compare_event_action_t) { .comparator = NULL } /** */ esp_err_t mcpwm_generator_set_action_on_compare_event(mcpwm_gen_handle_t generator, mcpwm_gen_compare_event_action_t ev_act); /** */ esp_err_t mcpwm...
2,545
..); /** */ typedef struct { mcpwm_timer_direction_t direction; /*!< Timer direction */ mcpwm_fault_handle_t fault; /*!< Which fault as the trigger. Only support GPIO fault */ mcpwm_generator_action_t action; /*!< Generator action should perform */ } mcpwm_gen_fault_event_action...
2,545
sync = syn, .action = act } /** */ esp_err_t mcpwm_generator_set_action_on_sync_event(mcpwm_gen_handle_t generator, mcpwm_gen_sync_event_action_t ev_act); /** */ typedef struct { uint32_t posedge_delay_ticks; /*!< delay time applied to rising edge, 0 means no rising delay time */ uint32_t negedge_delay_tick...
2,545
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { int group_id; /*!< Specify from which group to allocate the MCPWM operator */ int intr_priority; /...
2,546
< Whether to update dead time when timer counts to peak */ uint32_t update_dead_time_on_sync: 1; /*!< Whether to update dead time on sync event */ } flags; /*!< Extra configuration flags for operator */ } mcpwm_operator_config_t; /** */ esp_err_t mcpwm_new_operator(const...
2,546
< callback function when mcpwm operator brakes in CBC */ mcpwm_brake_event_cb_t on_brake_ost; /*!< callback function when mcpwm operator brakes in OST */ } mcpwm_operator_event_callbacks_t; /** */ esp_err_t mcpwm_operator_register_event_callbacks(mcpwm_oper_handle_t oper, const mcpwm_operator_event_callbacks_t *c...
2,546
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { int intr_priority; /*!< MCPWM comparator interrupt priority, if set to 0, the driver will try...
2,547
< ISR callback function which would be invoked when counter reaches compare value */ } mcpwm_comparator_event_callbacks_t; /** */ esp_err_t mcpwm_comparator_register_event_callbacks(mcpwm_cmpr_handle_t cmpr, const mcpwm_comparator_event_callbacks_t *cbs, void *user_data); /** */ esp_err_t mcpwm_comparator_set_compa...
2,547
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { mcpwm_timer_event_t timer_event; /*!< Timer event, upon which MCPWM timer will generate the sync signal */ struct { uint32_t propagate_input_sy...
2,548
< Whether to pull up internally */ uint32_t pull_down: 1; /*!< Whether to pull down internally */ } flags; /*!< Extra configuration flags for GPIO sync source */ } mcpwm_gpio_sync_src_config_t; /** */ esp_err_t mcpwm_new_gpio_sync_src(const mcpwm_gpio_sync_src_config_t *config, mcp...
2,548
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { mcpwm_timer_event_cb_t on_full; /*!< callback function when MCPWM timer counts to peak value */ mcpwm_timer_event_cb_t on_empty; /*!< callback functio...
2,549
< MCPWM timer interrupt priority, if set to 0, the driver will try to allocate an interrupt with a relative low priority (1,2,3) */ struct { uint32_t update_period_on_empty: 1; /*!< Whether to update period when timer counts to zero */ uint32_t update_pe...
2,549
< The sync event source. Set to NULL will disable the timer being synced by others */ uint32_t count_value; /*!< The count value that should lock to upon sync event */ mcpwm_timer_direction_t direction; /*!< The count direction that should lock to upon sync event */ } mcpwm_timer_sync_phase_config_...
2,549
/* */ /** */ #pragma once #include "driver/mcpwm_timer.h" #include "driver/mcpwm_oper.h" #include "driver/mcpwm_cmpr.h" #include "driver/mcpwm_gen.h" #include "driver/mcpwm_fault.h" #include "driver/mcpwm_sync.h" #include "driver/mcpwm_cap.h" #include "driver/mcpwm_etm.h"
2,550
/* */ #pragma once #include #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { int group_id; /*!< In which MCPWM group that the GPIO fault belongs to */ int intr_priority; /*!< MCPWM GPIO fault...
2,551
< ISR callback function that would be invoked when fault signal becomes active */ mcpwm_fault_event_cb_t on_fault_exit; /*!< ISR callback function that would be invoked when fault signal becomes inactive */ } mcpwm_fault_event_callbacks_t; /** */ esp_err_t mcpwm_fault_register_event_callbacks(mcpwm_fault_handle_...
2,551
/* */ #pragma once #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { int group_id; /*!< Specify from which group to allocate the capture timer */ mcpwm_capture_clock_source_t clk_src; /*!< MCPWM c...
2,552
< The sync event source */ uint32_t count_value; /*!< The count value that should lock to upon sync event */ mcpwm_timer_direction_t direction; /*!< The count direction that should lock to upon sync event */ } mcpwm_capture_timer_sync_phase_config_t; /** */ esp_err_t mcpwm_capture_timer_set_phase...
2,552
< Whether to capture on negative edge */ uint32_t pull_up: 1; /*!< Whether to pull up internally */ uint32_t pull_down: 1; /*!< Whether to pull down internally */ uint32_t invert_cap_signal: 1; /*!< Invert the input capture signal */ uint32_t io_loop_back: 1; /*!< ...
2,552
< Callback function that would be invoked when capture event occurred */ } mcpwm_capture_event_callbacks_t; /** */ esp_err_t mcpwm_capture_channel_register_event_callbacks(mcpwm_cap_channel_handle_t cap_channel, const mcpwm_capture_event_callbacks_t *cbs, void *user_data); /** */ esp_err_t mcpwm_capture_channel_tri...
2,552
/* */ #pragma once #include #include #include "hal/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct mcpwm_timer_t *mcpwm_timer_handle_t; /** */ typedef struct mcpwm_oper_t *mcpwm_oper_handle_t; /** */ typedef struct mcpwm_cmpr_t *mcpwm_cmpr_handle_t; /** */ typedef struct mcpwm_...
2,553
< Compare value */ mcpwm_timer_direction_t direction; /*!< Count direction */ } mcpwm_compare_event_data_t; /** */ typedef bool (*mcpwm_compare_event_cb_t)(mcpwm_cmpr_handle_t comparator, const mcpwm_compare_event_data_t *edata, void *user_ctx); /** */ typedef struct { uint32_t cap_value; /*!< Ca...
2,553
/* */ #pragma once #include #include #include "esp_err.h" #include "esp_etm.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ typedef struct { mcpwm_comparator_etm_event_type_t event_type; /*!< MCPWM comparator ETM event type */ } mcpwm_cmpr_etm_event_config_t; /** */ esp_er...
2,554
/* */ // DO NOT USE THESE APIS IN YOUR APPLICATIONS // The following APIs are for internal use, public to other IDF components, but not for users' applications. #pragma once #include #include #include "esp_err.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif /** */ esp_err_t mcpwm_time...
2,555
/* */ #pragma once #include "sdkconfig.h" #include "esp_attr.h" #include "driver/mcpwm_types.h" #ifdef __cplusplus extern "C" { #endif #if CONFIG_IDF_TARGET_ESP32P4 #define TEST_PWMA_GPIO 0 #define TEST_CAP_GPIO 0 #define TEST_FAULT_GPIO 0 #define TEST_PWMB_GPIO 20 #define TEST_FAULT_GPIO0 20 #define TEST_...
2,556
/* */ #ifndef _ESP_CRT_BUNDLE_H_ #define _ESP_CRT_BUNDLE_H_ #include "esp_err.h" #include "mbedtls/ssl.h" #ifdef __cplusplus extern "C" { #endif /** */ esp_err_t esp_crt_bundle_attach(void *conf); /** */ void esp_crt_bundle_detach(mbedtls_ssl_config *conf); /** */ esp_err_t esp_crt_bundle_set(const uint8_...
2,558
/* */ #include void utils_bin2hex(char *const hex, const size_t hex_maxlen, const unsigned char *const bin, const size_t bin_len);
2,559
/* */ /* Utility functions to test that APB access is still safe while the other CPU performs some set of DPORT accesses (see ECO 3.10 and the standalone esp32 test_dport.c for more). */ /* start_apb_access_loop() starts a task reading from APB in a loop on the non-Unity-test CPU. Call this before doing so...
2,560
/* */ #ifndef _DYNAMIC_IMPL_H_ #define _DYNAMIC_IMPL_H_ #include #include #include /* TODO: Remove this once the appropriate solution is found */ #define MBEDTLS_ALLOW_PRIVATE_ACCESS // located at mbedtls/library/ssl_misc.h #include "ssl_misc.h" #include "mbedtls/ssl.h" #include "mbedtls/platform.h" #include "...
2,561
/* */ #ifndef MD5_ALT_H #define MD5_ALT_H #ifdef __cplusplus extern "C" { #endif #if defined(MBEDTLS_MD5_ALT) #include "md/esp_md.h" #define mbedtls_md5_init esp_md5_init #define mbedtls_md5_update esp_md5_update #define mbedtls_md5_finish esp_md5_fin...
2,562
/* */ #pragma once #include #include #ifdef __cplusplus extern "C" { #endif #define P256_LEN (256/8) #define P192_LEN (192/8) /* Note: x & y are stored in little endian order (same as CPU byte order, and order used internally by most libraries). This is the same order used in hardware Note ...
2,563
/* #ifndef _SHA256_ALT_H_ #define _SHA256_ALT_H_ #if defined(MBEDTLS_SHA256_ALT) #include "hal/sha_types.h" #include "soc/soc_caps.h" #ifdef __cplusplus extern "C" { #endif #if SOC_SHA_SUPPORT_PARALLEL_ENG typedef enum { ESP_MBEDTLS_SHA256_UNUSED, /* first block hasn't been processed yet */ ESP_MBEDTLS_SHA2...
2,564
< if first then true, else false */ esp_sha_type mode; esp_sha256_state sha_state; } mbedtls_sha256_context; #endif #endif #ifdef __cplusplus } #endif #endif
2,564
/* */ #pragma once #include void *esp_mbedtls_mem_calloc(size_t n, size_t size); void esp_mbedtls_mem_free(void *ptr);
2,565
/** */ #ifndef AES_ALT_H #define AES_ALT_H #ifdef __cplusplus extern "C" { #endif #if defined(MBEDTLS_AES_ALT) #include "aes/esp_aes.h" typedef esp_aes_context mbedtls_aes_context; #define mbedtls_aes_init esp_aes_init #define mbedtls_aes_free esp_aes_free #define mbedtls_aes_setkey_enc ...
2,566
/* */ #pragma once #include "soc/lldesc.h" #include "esp_private/gdma.h" #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif /** */ esp_err_t esp_crypto_shared_gdma_start(const lldesc_t *input, const lldesc_t *output, gdma_trigger_peripheral_t peripheral); /** */ void esp_crypto_shared_gdma_free(void);...
2,567
/* */ #pragma once #ifndef _RSA_SIGN_ALT_H_ #define _RSA_SIGN_ALT_H_ #ifdef __cpluscplus extern "C" { #endif #ifdef CONFIG_ESP_TLS_USE_DS_PERIPHERAL #include "esp_ds/esp_rsa_sign_alt.h" #else #error "DS configuration flags not activated, please enable required menuconfig flags" #endif #ifdef __cpluscplus } #end...
2,568