libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
Cortex-M Flash Patch and Breakpoint (FPB) unit
Collaboration diagram for Cortex-M Flash Patch and Breakpoint (FPB) unit:

Macros

#define FPB_CTRL   MMIO32(FPB_BASE + 0)
 
#define FPB_REMAP   MMIO32(FPB_BASE + 4)
 
#define FPB_COMP   (&MMIO32(FPB_BASE + 8))
 
#define FPB_LSR   MMIO32(FPB_BASE + CORESIGHT_LSR_OFFSET)
 
#define FPB_LAR   MMIO32(FPB_BASE + CORESIGHT_LAR_OFFSET)
 
#define FPB_CTRL_NUM_CODE2_MASK   (0x7 << 12)
 
#define FPB_CTRL_NUM_LIT_MASK   (0xf << 8)
 
#define FPB_CTRL_NUM_CODE1_MASK   (0xf << 4)
 
#define FPB_CTRL_KEY   (1 << 1)
 
#define FPB_CTRL_ENABLE   (1 << 0)
 
#define FPB_COMP_REPLACE_REMAP   (0x0 << 30)
 
#define FPB_COMP_REPLACE_BREAK_LOWER   (0x1 << 30)
 
#define FPB_COMP_REPLACE_BREAK_UPPER   (0x2 << 30)
 
#define FPB_COMP_REPLACE_BREAK_BOTH   (0x3 << 30)
 
#define FPB_COMP_REPLACE_MASK   (0x3 << 30)
 
#define FPB_COMP_ENABLE   (1 << 0)
 

Detailed Description

Macro Definition Documentation

◆ FPB_COMP

#define FPB_COMP   (&MMIO32(FPB_BASE + 8))

Definition at line 45 of file fpb.h.

◆ FPB_COMP_ENABLE

#define FPB_COMP_ENABLE   (1 << 0)

Definition at line 89 of file fpb.h.

◆ FPB_COMP_REPLACE_BREAK_BOTH

#define FPB_COMP_REPLACE_BREAK_BOTH   (0x3 << 30)

Definition at line 80 of file fpb.h.

◆ FPB_COMP_REPLACE_BREAK_LOWER

#define FPB_COMP_REPLACE_BREAK_LOWER   (0x1 << 30)

Definition at line 78 of file fpb.h.

◆ FPB_COMP_REPLACE_BREAK_UPPER

#define FPB_COMP_REPLACE_BREAK_UPPER   (0x2 << 30)

Definition at line 79 of file fpb.h.

◆ FPB_COMP_REPLACE_MASK

#define FPB_COMP_REPLACE_MASK   (0x3 << 30)

Definition at line 81 of file fpb.h.

◆ FPB_COMP_REPLACE_REMAP

#define FPB_COMP_REPLACE_REMAP   (0x0 << 30)

Definition at line 77 of file fpb.h.

◆ FPB_CTRL

#define FPB_CTRL   MMIO32(FPB_BASE + 0)

Definition at line 39 of file fpb.h.

◆ FPB_CTRL_ENABLE

#define FPB_CTRL_ENABLE   (1 << 0)

Definition at line 69 of file fpb.h.

◆ FPB_CTRL_KEY

#define FPB_CTRL_KEY   (1 << 1)

Definition at line 67 of file fpb.h.

◆ FPB_CTRL_NUM_CODE1_MASK

#define FPB_CTRL_NUM_CODE1_MASK   (0xf << 4)

Definition at line 63 of file fpb.h.

◆ FPB_CTRL_NUM_CODE2_MASK

#define FPB_CTRL_NUM_CODE2_MASK   (0x7 << 12)

Definition at line 59 of file fpb.h.

◆ FPB_CTRL_NUM_LIT_MASK

#define FPB_CTRL_NUM_LIT_MASK   (0xf << 8)

Definition at line 61 of file fpb.h.

◆ FPB_LAR

#define FPB_LAR   MMIO32(FPB_BASE + CORESIGHT_LAR_OFFSET)

Definition at line 50 of file fpb.h.

◆ FPB_LSR

#define FPB_LSR   MMIO32(FPB_BASE + CORESIGHT_LSR_OFFSET)

Definition at line 48 of file fpb.h.

◆ FPB_REMAP

#define FPB_REMAP   MMIO32(FPB_BASE + 4)

Definition at line 42 of file fpb.h.