mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
Merge branch 'feature/esptool_flash_encryption' into 'master'
Flash encryption support Flash encryption support in build system, tooling To come in future MR: * On-device key generation on first boot (for production devices), need to finalise testing of bootloader entropy seeding. * spi_flash_encrypted_write to support non-32-byte block writes (at least optionally.) * I think a lot of the bootloader_support component can possibly be rolled into "spiflash" and other components, to use a common API. See merge request !240
This commit is contained in:
@@ -79,8 +79,8 @@
|
||||
//set bits of register controlled by mask
|
||||
#define REG_SET_BITS(_r, _b, _m) (*(volatile uint32_t*)(_r) = (*(volatile uint32_t*)(_r) & ~(_m)) | ((_b) & (_m)))
|
||||
|
||||
//get field from register, used when _f is not left shifted by _f##_S
|
||||
#define REG_GET_FIELD(_r, _f) ((REG_READ(_r) >> (_f##_S)) & (_f))
|
||||
//get field from register, uses field _S & _V to determine mask
|
||||
#define REG_GET_FIELD(_r, _f) ((REG_READ(_r) >> (_f##_S)) & (_f##_V))
|
||||
|
||||
//set field to register, used when _f is not left shifted by _f##_S
|
||||
#define REG_SET_FIELD(_r, _f, _v) (REG_WRITE((_r),((REG_READ(_r) & ~((_f) << (_f##_S)))|(((_v) & (_f))<<(_f##_S)))))
|
||||
|
Reference in New Issue
Block a user