mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 21:29:02 +00:00
Restore lost flash define for stm32.
This commit is contained in:
parent
0b84e07467
commit
862b815f87
1 changed files with 1 additions and 0 deletions
|
|
@ -592,6 +592,7 @@
|
|||
# define FLASH_OPTCR_WDG_SW (1 << 5) /* Bit 5: WDG_SW */
|
||||
# define FLASH_OPTCR_RDP_SHIFT (8) /* Bits 8-15: Read protect */
|
||||
# define FLASH_OPTCR_RDP_MASK (0xff << FLASH_OPTCR_RDP_SHIFT)
|
||||
# define FLASH_OPTCR_RDP(n) ((uint32_t)(n) << FLASH_OPTCR_RDP_SHIFT)
|
||||
# define FLASH_OPTCR_NWRP_SHIFT (16) /* Bits 16-27: Not write protect */
|
||||
# define FLASH_OPTCR_NWRP_MASK (0xfff << FLASH_OPTCR_NWRP_SHIFT)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue