Merge branch 'feature/hardware_check_task_overflow' into 'master'

esp8266: hardware check task stack overflow

See merge request 
This commit is contained in:
Dong Heng
2020-02-25 10:54:13 +08:00
7 changed files with 99 additions and 13 deletions
components
esp8266
include/driver
source
freertos

@ -134,6 +134,21 @@ static inline void soc_wait_int(void)
);
}
static inline uint32_t soc_debug_reason(void)
{
uint32_t tmp;
__asm__ __volatile__(
"movi %0, 0\n"
"wsr %0, dbreakc0\n"
"rsr.debugcause %0\n"
: "=r"(tmp)
:
: "memory");
return tmp;
}
#ifdef __cplusplus
}
#endif