libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
OPTR Flash option register
Collaboration diagram for OPTR Flash option register:

Modules

 NRST MODE
 NRST_MODE.
 
 BORR LEV
 These bits contain the VDD supply level threshold that releases the reset.
 
 BOR FLEV
 These bits contain the VDD supply level threshold that activates the reset.
 
 RDP
 Read protection level.
 

Macros

#define FLASH_OPTR_IRHEN   (1 << 29)
 FLASH_OPTR_IRHEN Internal reset holder enable bit. More...
 
#define FLASH_OPTR_NRST_MODE_SHIFT   27
 
#define FLASH_OPTR_NRST_MODE_MASK   0x03
 
#define FLASH_OPTR_nBOOT0   (1 << 26)
 FLASH_OPTR_nBOOT0 nBOOT0 option bit. More...
 
#define FLASH_OPTR_nBOOT1   (1 << 25)
 FLASH_OPTR_nBOOT1 Boot configuration. More...
 
#define FLASH_OPTR_nBOOT_SEL   (1 << 24)
 FLASH_OPTR_nBOOT_SEL nBOOT_SEL. More...
 
#define FLASH_OPTR_RAM_PARITY_CHECK   (1 << 22)
 FLASH_OPTR_RAM_PARITY_CHECK SRAM parity check control. More...
 
#define FLASH_OPTR_WWDG_SW   (1 << 19)
 FLASH_OPTR_WWDG_SW Window watchdog selection. More...
 
#define FLASH_OPTR_IWDG_STDBY   (1 << 18)
 FLASH_OPTR_IWDG_STDBY Independent watchdog counter freeze in Standby mode. More...
 
#define FLASH_OPTR_IWDG_STOP   (1 << 17)
 FLASH_OPTR_IWDG_STOP Independent watchdog counter freeze in Stop mode. More...
 
#define FLASH_OPTR_IDWG_SW   (1 << 16)
 FLASH_OPTR_IDWG_SW Independent watchdog selection. More...
 
#define FLASH_OPTR_nRSTS_HDW   (1 << 15)
 FLASH_OPTR_nRSTS_HDW nRSTS_HDW. More...
 
#define FLASH_OPTR_nRST_STDBY   (1 << 14)
 FLASH_OPTR_nRST_STDBY nRST_STDBY. More...
 
#define FLASH_OPTR_nRST_STOP   (1 << 13)
 FLASH_OPTR_nRST_STOP nRST_STOP. More...
 
#define FLASH_OPTR_BORR_LEV_SHIFT   11
 
#define FLASH_OPTR_BORR_LEV_MASK   0x03
 
#define FLASH_OPTR_BORF_LEV_SHIFT   9
 
#define FLASH_OPTR_BORF_LEV_MASK   0x03
 
#define FLASH_OPTR_BOREN   (1 << 8)
 FLASH_OPTR_BOREN BOR reset Level. More...
 
#define FLASH_OPTR_RDP_SHIFT   0
 
#define FLASH_OPTR_RDP_MASK   0xff
 

Detailed Description

Macro Definition Documentation

◆ FLASH_OPTR_BOREN

#define FLASH_OPTR_BOREN   (1 << 8)

FLASH_OPTR_BOREN BOR reset Level.

Definition at line 245 of file g0/flash.h.

◆ FLASH_OPTR_BORF_LEV_MASK

#define FLASH_OPTR_BORF_LEV_MASK   0x03

Definition at line 234 of file g0/flash.h.

◆ FLASH_OPTR_BORF_LEV_SHIFT

#define FLASH_OPTR_BORF_LEV_SHIFT   9

Definition at line 233 of file g0/flash.h.

◆ FLASH_OPTR_BORR_LEV_MASK

#define FLASH_OPTR_BORR_LEV_MASK   0x03

Definition at line 223 of file g0/flash.h.

◆ FLASH_OPTR_BORR_LEV_SHIFT

#define FLASH_OPTR_BORR_LEV_SHIFT   11

Definition at line 222 of file g0/flash.h.

◆ FLASH_OPTR_IDWG_SW

#define FLASH_OPTR_IDWG_SW   (1 << 16)

FLASH_OPTR_IDWG_SW Independent watchdog selection.

Definition at line 214 of file g0/flash.h.

◆ FLASH_OPTR_IRHEN

#define FLASH_OPTR_IRHEN   (1 << 29)

FLASH_OPTR_IRHEN Internal reset holder enable bit.

Definition at line 187 of file g0/flash.h.

◆ FLASH_OPTR_IWDG_STDBY

#define FLASH_OPTR_IWDG_STDBY   (1 << 18)

FLASH_OPTR_IWDG_STDBY Independent watchdog counter freeze in Standby mode.

Definition at line 210 of file g0/flash.h.

◆ FLASH_OPTR_IWDG_STOP

#define FLASH_OPTR_IWDG_STOP   (1 << 17)

FLASH_OPTR_IWDG_STOP Independent watchdog counter freeze in Stop mode.

Definition at line 212 of file g0/flash.h.

◆ FLASH_OPTR_nBOOT0

#define FLASH_OPTR_nBOOT0   (1 << 26)

FLASH_OPTR_nBOOT0 nBOOT0 option bit.

Definition at line 200 of file g0/flash.h.

◆ FLASH_OPTR_nBOOT1

#define FLASH_OPTR_nBOOT1   (1 << 25)

FLASH_OPTR_nBOOT1 Boot configuration.

Definition at line 202 of file g0/flash.h.

◆ FLASH_OPTR_nBOOT_SEL

#define FLASH_OPTR_nBOOT_SEL   (1 << 24)

FLASH_OPTR_nBOOT_SEL nBOOT_SEL.

Definition at line 204 of file g0/flash.h.

◆ FLASH_OPTR_NRST_MODE_MASK

#define FLASH_OPTR_NRST_MODE_MASK   0x03

Definition at line 190 of file g0/flash.h.

◆ FLASH_OPTR_NRST_MODE_SHIFT

#define FLASH_OPTR_NRST_MODE_SHIFT   27

Definition at line 189 of file g0/flash.h.

◆ FLASH_OPTR_nRST_STDBY

#define FLASH_OPTR_nRST_STDBY   (1 << 14)

FLASH_OPTR_nRST_STDBY nRST_STDBY.

Definition at line 218 of file g0/flash.h.

◆ FLASH_OPTR_nRST_STOP

#define FLASH_OPTR_nRST_STOP   (1 << 13)

FLASH_OPTR_nRST_STOP nRST_STOP.

Definition at line 220 of file g0/flash.h.

◆ FLASH_OPTR_nRSTS_HDW

#define FLASH_OPTR_nRSTS_HDW   (1 << 15)

FLASH_OPTR_nRSTS_HDW nRSTS_HDW.

Definition at line 216 of file g0/flash.h.

◆ FLASH_OPTR_RAM_PARITY_CHECK

#define FLASH_OPTR_RAM_PARITY_CHECK   (1 << 22)

FLASH_OPTR_RAM_PARITY_CHECK SRAM parity check control.

Definition at line 206 of file g0/flash.h.

◆ FLASH_OPTR_RDP_MASK

#define FLASH_OPTR_RDP_MASK   0xff

Definition at line 248 of file g0/flash.h.

◆ FLASH_OPTR_RDP_SHIFT

#define FLASH_OPTR_RDP_SHIFT   0

Definition at line 247 of file g0/flash.h.

◆ FLASH_OPTR_WWDG_SW

#define FLASH_OPTR_WWDG_SW   (1 << 19)

FLASH_OPTR_WWDG_SW Window watchdog selection.

Definition at line 208 of file g0/flash.h.