mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Fix the int_enable_flag may not compile without bt problem
This commit is contained in:
parent
1f286c2ba9
commit
6903865b9c
@ -1450,7 +1450,7 @@ void IRAM_ATTR __attribute__((noinline)) r_assert(const char *condition, int par
|
||||
#define BT_INT_STA_REG (0x3FF7100C)
|
||||
#define BLE_INT_STA_REG (0x3FF71210)
|
||||
|
||||
int _int_enable_flag=0;
|
||||
extern int _int_enable_flag;
|
||||
|
||||
extern bool connection_is_alive();
|
||||
extern uint32_t real_bt_isr_count ;
|
||||
|
@ -40,6 +40,7 @@
|
||||
|
||||
static portMUX_TYPE reason_spinlock = portMUX_INITIALIZER_UNLOCKED;
|
||||
static volatile uint32_t reason[ portNUM_PROCESSORS ];
|
||||
int _int_enable_flag = 0;
|
||||
|
||||
/*
|
||||
ToDo: There is a small chance the CPU already has yielded when this ISR is serviced. In that case, it's running the intended task but
|
||||
@ -78,7 +79,6 @@ static void IRAM_ATTR esp_crosscore_isr(void *arg) {
|
||||
*/
|
||||
}
|
||||
if(my_reason_val & REASON_GET_INT) {
|
||||
extern int _int_enable_flag;
|
||||
asm volatile ("rsr %0, INTENABLE\n" :"=r"(_int_enable_flag));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user