mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-18 23:54:39 +00:00
soc: put hal function to get core id in IRAM
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "esp_attr.h"
|
||||
|
||||
#include "soc/cpu_caps.h"
|
||||
|
||||
#include "xt_instr_macros.h"
|
||||
@@ -27,7 +29,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
static inline int cpu_ll_get_core_id(void)
|
||||
static inline int IRAM_ATTR cpu_ll_get_core_id(void)
|
||||
{
|
||||
uint32_t id;
|
||||
asm volatile (
|
||||
|
Reference in New Issue
Block a user