lpc2900_address2sector() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...
CodeScopeDevelopment ToolsOpenOCDlpc2900_address2sector()

lpc2900_address2sector() function

Return sector number for given address. Return the (logical) sector number for a given relative address. No sanity check is done. It assumed that the address is valid.

Syntax

static unsigned int lpc2900_address2sector(struct flash_bank *bank,     uint32_t offset);
Implemented in lpc2900.c:348

Arguments

bank

Pointer to the flash bank descriptor

offset

Offset address relative to bank start

References

LocationReferrerText
lpc2900.c:348
static unsigned int lpc2900_address2sector(struct flash_bank *bank,
lpc2900.c:166
static unsigned int lpc2900_address2sector(struct flash_bank *bank, uint32_t offset);
lpc2900.c:1172lpc2900_write()
unsigned int start_sector = lpc2900_address2sector(bank, offset);
lpc2900.c:1294lpc2900_write()
if (!bank->sectors[lpc2900_address2sector(bank, offset)].is_protected) {

Call Tree

Functions calling lpc2900_address2sector()
all items filtered out
lpc2900_address2sector()
Data read by lpc2900_address2sector()
Data written by lpc2900_address2sector()
lpc2900_address2sector()
lpc2900_address2sector()::sector
all items filtered out
Type of lpc2900_address2sector()
lpc2900_address2sector()
uint32_t
all items filtered out