component/esp32 : fix library sport access protections.

1. add esp32 library access DPORT register protections.
2. add bluetooth library access DPORT register protections.
3. change register operation(suffix/prefix) to new style.
This commit is contained in:
Tian Hao
2017-05-13 19:55:11 +08:00
parent 1e0710f1b2
commit 3d22f1ee2f
5 changed files with 27 additions and 18 deletions

View File

@@ -131,6 +131,16 @@ void IRAM_ATTR esp_dport_access_stall_other_cpu_end(void)
#endif /* CONFIG_FREERTOS_UNICORE */
}
void IRAM_ATTR esp_dport_access_stall_other_cpu_start_wrap(void)
{
DPORT_STALL_OTHER_CPU_START();
}
void IRAM_ATTR esp_dport_access_stall_other_cpu_end_wrap(void)
{
DPORT_STALL_OTHER_CPU_END();
}
static void dport_access_init_core0(void *arg)
{
int core_id = xPortGetCoreID();