mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
component/esp32 : update wifi library and phy library
This commit is contained in:
parent
3d22f1ee2f
commit
52515d0edf
@ -1 +1 @@
|
|||||||
Subproject commit 13a8292174f5c89e3bffb1580195a1343f24c70c
|
Subproject commit a197e872e0d96a0f5f57c7d4babefe2c77db4cf4
|
@ -20,7 +20,8 @@
|
|||||||
#include "esp_dport_access.h"
|
#include "esp_dport_access.h"
|
||||||
|
|
||||||
//Registers Operation {{
|
//Registers Operation {{
|
||||||
//Origin access operation for the base and some special scene
|
|
||||||
|
//Register read macros with an underscore prefix access DPORT memory directly. In IDF apps, use the non-underscore versions to be SMP-safe.
|
||||||
#define _DPORT_REG_READ(_r) (*(volatile uint32_t *)(_r))
|
#define _DPORT_REG_READ(_r) (*(volatile uint32_t *)(_r))
|
||||||
#define _DPORT_REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v)
|
#define _DPORT_REG_WRITE(_r, _v) (*(volatile uint32_t *)(_r)) = (_v)
|
||||||
|
|
||||||
@ -75,7 +76,7 @@ static inline uint32_t IRAM_ATTR DPORT_REG_READ(uint32_t reg)
|
|||||||
//generate a value from a field value, used when _f is left shifted by _f##_S
|
//generate a value from a field value, used when _f is left shifted by _f##_S
|
||||||
#define DPORT_FIELD_TO_VALUE2(_f, _v) (((_v)<<_f##_S) & (_f))
|
#define DPORT_FIELD_TO_VALUE2(_f, _v) (((_v)<<_f##_S) & (_f))
|
||||||
|
|
||||||
//Origin access operation for the base and some special scene
|
//Register read macros with an underscore prefix access DPORT memory directly. In IDF apps, use the non-underscore versions to be SMP-safe.
|
||||||
#define _DPORT_READ_PERI_REG(addr) (*((volatile uint32_t *)(addr)))
|
#define _DPORT_READ_PERI_REG(addr) (*((volatile uint32_t *)(addr)))
|
||||||
#define _DPORT_WRITE_PERI_REG(addr, val) (*((volatile uint32_t *)(addr))) = (uint32_t)(val)
|
#define _DPORT_WRITE_PERI_REG(addr, val) (*((volatile uint32_t *)(addr))) = (uint32_t)(val)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user