/hal_espressif-latest/components/driver/gpio/ |
D | dedic_gpio.c | 61 uint32_t core_id; // CPU core ID, a GPIO bundle must be installed to a specific CPU core member 70 static esp_err_t dedic_gpio_build_platform(int core_id) in dedic_gpio_build_platform() argument 73 if (!s_platform[core_id]) { in dedic_gpio_build_platform() 75 _lock_acquire(&s_platform_mutexlock[core_id]); in dedic_gpio_build_platform() 76 if (!s_platform[core_id]) { in dedic_gpio_build_platform() 77 s_platform[core_id] = calloc(1, sizeof(dedic_gpio_platform_t)); in dedic_gpio_build_platform() 78 if (s_platform[core_id]) { in dedic_gpio_build_platform() 80 s_platform[core_id]->spinlock = (portMUX_TYPE)portMUX_INITIALIZER_UNLOCKED; in dedic_gpio_build_platform() 82 …s_platform[core_id]->out_occupied_mask = UINT32_MAX & ~((1 << SOC_DEDIC_GPIO_OUT_CHANNELS_NUM) - 1… in dedic_gpio_build_platform() 83 … s_platform[core_id]->in_occupied_mask = UINT32_MAX & ~((1 << SOC_DEDIC_GPIO_IN_CHANNELS_NUM) - 1); in dedic_gpio_build_platform() [all …]
|
/hal_espressif-latest/components/esp_pm/include/esp_private/ |
D | pm_trace.h | 34 void esp_pm_trace_enter(esp_pm_trace_event_t event, int core_id); 35 void esp_pm_trace_exit(esp_pm_trace_event_t event, int core_id); 39 #define ESP_PM_TRACE_ENTER(event, core_id) \ argument 40 esp_pm_trace_enter(ESP_PM_TRACE_ ## event, core_id) 41 #define ESP_PM_TRACE_EXIT(event, core_id) \ argument 42 esp_pm_trace_exit(ESP_PM_TRACE_ ## event, core_id) 46 #define ESP_PM_TRACE_ENTER(type, core_id) do { (void) core_id; } while(0) argument 47 #define ESP_PM_TRACE_EXIT(type, core_id) do { (void) core_id; } while(0) argument
|
/hal_espressif-latest/components/esp_system/ |
D | crosscore_int.c | 129 static void IRAM_ATTR esp_crosscore_int_send(int core_id, uint32_t reason_mask) { in esp_crosscore_int_send() argument 130 assert(core_id<portNUM_PROCESSORS); in esp_crosscore_int_send() 133 reason[core_id] |= reason_mask; in esp_crosscore_int_send() 137 if (core_id==0) { in esp_crosscore_int_send() 145 if (core_id==0) { in esp_crosscore_int_send() 155 void IRAM_ATTR esp_crosscore_int_send_yield(int core_id) in esp_crosscore_int_send_yield() argument 157 esp_crosscore_int_send(core_id, REASON_YIELD); in esp_crosscore_int_send_yield() 160 void IRAM_ATTR esp_crosscore_int_send_freq_switch(int core_id) in esp_crosscore_int_send_freq_switch() argument 162 esp_crosscore_int_send(core_id, REASON_FREQ_SWITCH); in esp_crosscore_int_send_freq_switch() 165 void IRAM_ATTR esp_crosscore_int_send_gdb_call(int core_id) in esp_crosscore_int_send_gdb_call() argument [all …]
|
D | systick_etm.c | 26 esp_err_t esp_systick_new_etm_alarm_event(int core_id, esp_etm_event_handle_t *out_event) in esp_systick_new_etm_alarm_event() argument 30 …ESP_GOTO_ON_FALSE(out_event && core_id < SOC_CPU_CORES_NUM, ESP_ERR_INVALID_ARG, err, TAG, "invali… in esp_systick_new_etm_alarm_event() 35 uint32_t event_id = SYSTIMER_EVT_CNT_CMP0 + SYSTIMER_ALARM_OS_TICK_CORE0 + core_id; in esp_systick_new_etm_alarm_event()
|
/hal_espressif-latest/components/esp_hw_support/ |
D | cpu.c | 44 void esp_cpu_stall(int core_id) in esp_cpu_stall() argument 46 assert(core_id >= 0 && core_id < SOC_CPU_CORES_NUM); in esp_cpu_stall() 57 …int rtc_cntl_c0_m = (core_id == 0) ? RTC_CNTL_SW_STALL_PROCPU_C0_M : RTC_CNTL_SW_STALL_APPCPU_C0_M; in esp_cpu_stall() 58 …int rtc_cntl_c0_s = (core_id == 0) ? RTC_CNTL_SW_STALL_PROCPU_C0_S : RTC_CNTL_SW_STALL_APPCPU_C0_S; in esp_cpu_stall() 59 …int rtc_cntl_c1_m = (core_id == 0) ? RTC_CNTL_SW_STALL_PROCPU_C1_M : RTC_CNTL_SW_STALL_APPCPU_C1_M; in esp_cpu_stall() 60 …int rtc_cntl_c1_s = (core_id == 0) ? RTC_CNTL_SW_STALL_PROCPU_C1_S : RTC_CNTL_SW_STALL_APPCPU_C1_S; in esp_cpu_stall() 68 void esp_cpu_unstall(int core_id) in esp_cpu_unstall() argument 70 assert(core_id >= 0 && core_id < SOC_CPU_CORES_NUM); in esp_cpu_unstall() 81 …int rtc_cntl_c0_m = (core_id == 0) ? RTC_CNTL_SW_STALL_PROCPU_C0_M : RTC_CNTL_SW_STALL_APPCPU_C0_M; in esp_cpu_unstall() 82 …int rtc_cntl_c1_m = (core_id == 0) ? RTC_CNTL_SW_STALL_PROCPU_C1_M : RTC_CNTL_SW_STALL_APPCPU_C1_M; in esp_cpu_unstall() [all …]
|
/hal_espressif-latest/components/esp_hw_support/include/ |
D | spinlock.h | 70 uint32_t core_id, other_core_id; in spinlock_acquire() local 78 core_id = xt_utils_get_raw_core_id(); in spinlock_acquire() 79 other_core_id = CORE_ID_REGVAL_XOR_SWAP ^ core_id; in spinlock_acquire() 89 if (lock->owner == core_id) { in spinlock_acquire() 103 lock_set = esp_cpu_compare_and_set(&lock->owner, SPINLOCK_FREE, core_id); in spinlock_acquire() 112 lock_set = esp_cpu_compare_and_set(&lock->owner, SPINLOCK_FREE, core_id); in spinlock_acquire() 121 assert(lock->owner == core_id); in spinlock_acquire() 154 uint32_t core_id; in spinlock_release() local 159 core_id = xt_utils_get_raw_core_id(); in spinlock_release() 160 assert(core_id == lock->owner); // This is a lock that we didn't acquire, or the lock is corrupt in spinlock_release()
|
D | esp_cpu.h | 88 void esp_cpu_stall(int core_id); 95 void esp_cpu_unstall(int core_id); 102 void esp_cpu_reset(int core_id); 220 void esp_cpu_intr_get_desc(int core_id, int intr_num, esp_cpu_intr_desc_t *intr_desc_ret);
|
/hal_espressif-latest/components/esp_system/include/esp_private/ |
D | crosscore_int.h | 37 void esp_crosscore_int_send_yield(int core_id); 49 void esp_crosscore_int_send_freq_switch(int core_id); 51 void esp_crosscore_int_send_gdb_call(int core_id); 62 void esp_crosscore_int_send_print_backtrace(int core_id); 75 void esp_crosscore_int_send_twdt_abort(int core_id);
|
/hal_espressif-latest/components/esp_pm/ |
D | pm_impl.c | 367 int core_id = esp_cpu_get_core_id(); in on_freq_update() local 368 if (s_rtos_lock_handle[core_id] != NULL) { in on_freq_update() 369 ESP_PM_TRACE_ENTER(CCOMPARE_UPDATE, core_id); in on_freq_update() 381 int other_core_id = (core_id == 0) ? 1 : 0; in on_freq_update() 396 ESP_PM_TRACE_EXIT(CCOMPARE_UPDATE, core_id); in on_freq_update() 409 const int core_id = esp_cpu_get_core_id(); in do_switch() local 417 if (s_need_update_ccompare[core_id]) { in do_switch() 418 s_need_update_ccompare[core_id] = false; in do_switch() 447 ESP_PM_TRACE_ENTER(FREQ_SWITCH, core_id); in do_switch() 465 ESP_PM_TRACE_EXIT(FREQ_SWITCH, core_id); in do_switch() [all …]
|
D | pm_trace.c | 60 void IRAM_ATTR esp_pm_trace_enter(esp_pm_trace_event_t event, int core_id) in esp_pm_trace_enter() argument 62 REG_WRITE(GPIO_OUT_W1TS_REG, s_trace_io[2 * event + core_id]); in esp_pm_trace_enter() 65 void IRAM_ATTR esp_pm_trace_exit(esp_pm_trace_event_t event, int core_id) in esp_pm_trace_exit() argument 67 REG_WRITE(GPIO_OUT_W1TC_REG, s_trace_io[2 * event + core_id]); in esp_pm_trace_exit()
|
/hal_espressif-latest/components/esp_system/port/ |
D | panic_handler.c | 127 int core_id = esp_cpu_get_core_id(); local 130 g_exc_frames[core_id] = frame; 138 BUSY_WAIT_IF_TRUE(panic_get_cause(frame) == PANIC_RSN_INTWDT_CPU0 && core_id == 1); 139 BUSY_WAIT_IF_TRUE(panic_get_cause(frame) == PANIC_RSN_INTWDT_CPU1 && core_id == 0); 142 if (panic_get_cause(frame) == PANIC_RSN_CACHEERR && core_id != esp_cache_err_get_cpuid()) { 144 g_exc_frames[core_id] = NULL; 157 if (i != core_id) { 200 int core_id = esp_cpu_get_core_id(); local 203 spi_flash_enable_cache(core_id);
|
D | esp_system_chip.c | 48 int core_id = esp_cpu_get_core_id(); in esp_restart_noos_dig() local 50 if (i != core_id) { in esp_restart_noos_dig()
|
D | brownout.c | 45 const uint32_t core_id = esp_cpu_get_core_id(); in rtc_brownout_isr_handler() local 46 const uint32_t other_core_id = (core_id == 0) ? 1 : 0; in rtc_brownout_isr_handler()
|
/hal_espressif-latest/components/esp_system/port/soc/esp32s3/ |
D | cache_err_int.c | 31 uint32_t core_id = esp_cpu_get_core_id(); in esp_cache_err_int_init() local 37 esp_rom_route_intr_matrix(core_id, ETS_CACHE_IA_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init() 52 if (core_id == PRO_CPU_NUM) { in esp_cache_err_int_init() 53 esp_rom_route_intr_matrix(core_id, ETS_CACHE_CORE0_ACS_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init() 61 esp_rom_route_intr_matrix(core_id, ETS_CACHE_CORE1_ACS_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init()
|
D | system_internal.c | 112 const uint32_t core_id = esp_cpu_get_core_id(); in esp_restart_noos() local 114 const uint32_t other_core_id = (core_id == 0) ? 1 : 0; in esp_restart_noos() 142 if (core_id == 0) { in esp_restart_noos()
|
/hal_espressif-latest/components/esp_hw_support/port/esp32s3/ |
D | esp_cpu_intr.c | 69 void esp_cpu_intr_get_desc(int core_id, int intr_num, esp_cpu_intr_desc_t *intr_desc_ret) in esp_cpu_intr_get_desc() argument 71 assert(core_id >= 0 && core_id < SOC_CPU_CORES_NUM && intr_desc_ret != NULL); in esp_cpu_intr_get_desc() 74 intr_desc_ret->flags = intr_desc_table[intr_num].flags[core_id]; in esp_cpu_intr_get_desc()
|
/hal_espressif-latest/components/esp_system/port/soc/esp32c2/ |
D | cache_err_int.c | 25 const uint32_t core_id = 0; in esp_cache_err_int_init() local 52 esp_rom_route_intr_matrix(core_id, ETS_CACHE_IA_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init() 53 esp_rom_route_intr_matrix(core_id, ETS_CACHE_CORE0_ACS_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init()
|
/hal_espressif-latest/components/esp_system/port/soc/esp32c3/ |
D | cache_err_int.c | 25 const uint32_t core_id = 0; in esp_cache_err_int_init() local 52 esp_rom_route_intr_matrix(core_id, ETS_CACHE_IA_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init() 53 esp_rom_route_intr_matrix(core_id, ETS_CACHE_CORE0_ACS_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init()
|
/hal_espressif-latest/components/esp_system/port/soc/esp32/ |
D | cache_err_int.c | 32 uint32_t core_id = esp_cpu_get_core_id(); in esp_cache_err_int_init() local 39 esp_rom_route_intr_matrix(core_id, ETS_CACHE_IA_INTR_SOURCE, ETS_MEMACCESS_ERR_INUM); in esp_cache_err_int_init() 50 if (core_id == PRO_CPU_NUM) { in esp_cache_err_int_init()
|
D | system_internal.c | 78 const uint32_t core_id = esp_cpu_get_core_id(); in esp_restart_noos() local 79 const uint32_t other_core_id = (core_id == 0) ? 1 : 0; in esp_restart_noos() 131 if (core_id == 0) { in esp_restart_noos()
|
/hal_espressif-latest/components/esp_system/port/soc/esp32c6/ |
D | cache_err_int.c | 25 const uint32_t core_id = 0; in esp_cache_err_int_init() local 39 esp_rom_route_intr_matrix(core_id, ETS_CACHE_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init()
|
/hal_espressif-latest/components/esp_system/port/soc/esp32h2/ |
D | cache_err_int.c | 25 const uint32_t core_id = 0; in esp_cache_err_int_init() local 39 esp_rom_route_intr_matrix(core_id, ETS_CACHE_INTR_SOURCE, ETS_CACHEERR_INUM); in esp_cache_err_int_init()
|
/hal_espressif-latest/components/esp_hw_support/port/esp32/ |
D | esp_cpu_intr.c | 201 void esp_cpu_intr_get_desc(int core_id, int intr_num, esp_cpu_intr_desc_t *intr_desc_ret) in esp_cpu_intr_get_desc() argument 203 assert(core_id >= 0 && core_id < SOC_CPU_CORES_NUM && intr_desc_ret != NULL); in esp_cpu_intr_get_desc() 206 intr_desc_ret->flags = intr_desc_table[intr_num].flags[core_id]; in esp_cpu_intr_get_desc()
|
/hal_espressif-latest/components/esp_system/port/soc/esp32s2/ |
D | cache_err_int.c | 35 uint32_t core_id = esp_cpu_get_core_id(); in esp_cache_err_int_init() local 42 esp_rom_route_intr_matrix(core_id, ETS_CACHE_IA_INTR_SOURCE, ETS_MEMACCESS_ERR_INUM); in esp_cache_err_int_init()
|
/hal_espressif-latest/components/hal/ |
D | gpio_hal.c | 13 void gpio_hal_intr_enable_on_core(gpio_hal_context_t *hal, uint32_t gpio_num, uint32_t core_id) in gpio_hal_intr_enable_on_core() argument 20 gpio_ll_intr_enable_on_core(hal->dev, core_id, gpio_num); in gpio_hal_intr_enable_on_core()
|