mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
Restore lost flash define for stm32.
This commit is contained in:
committed by
Xiang Xiao
parent
0b84e07467
commit
862b815f87
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user