mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Fix compile error using asm
In function 'xPortGetCoreID': error: expected ')' before ':' token :"=r"(id)); Merges https://github.com/espressif/esp-idf/pull/1965
This commit is contained in:
parent
c83c3b64cd
commit
18533346b8
@ -205,7 +205,7 @@ BaseType_t xPortInterruptedFromISRContext();
|
||||
/* Multi-core: get current core ID */
|
||||
static inline uint32_t IRAM_ATTR xPortGetCoreID() {
|
||||
int id;
|
||||
asm (
|
||||
__asm__ (
|
||||
"rsr.prid %0\n"
|
||||
" extui %0,%0,13,1"
|
||||
:"=r"(id));
|
||||
|
Loading…
Reference in New Issue
Block a user