]> granicus.if.org Git - esp-idf/commit
soc: Change DPORT access
authorKonstantin Kondrashov <konstantin@espressif.com>
Thu, 22 Mar 2018 12:39:59 +0000 (17:39 +0500)
committerKonstantin Kondrashov <konstantin@espressif.com>
Mon, 14 May 2018 12:54:57 +0000 (17:54 +0500)
commit8f80cc733db74b7aaa76a3880907d0bf732eb249
tree81f675df003469f03337edd28bb2db4d89769534
parentd4276efed7a271304f4bb0baecb16157b434206e
soc: Change DPORT access

When two CPUs read the area of the DPORT and the area of the APB, the result is corrupted for the CPU that read the APB area.
And another CPU has valid data.

The method of eliminating this error.
Before reading the registers of the DPORT, make a preliminary reading of the APB register.
In this case, the joint access of the two CPUs to the registers of the APB and the DPORT is successful.
components/esp32/dport_access.c
components/esp32/hwcrypto/aes.c
components/esp32/hwcrypto/sha.c
components/esp32/include/esp_dport_access.h
components/esp32/test/test_dport.c
components/mbedtls/port/esp_bignum.c
components/soc/esp32/include/soc/dport_access.h
components/spi_flash/flash_mmap.c