lpc2900_calc_tr() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

lpc2900_calc_tr() function

Calculate FPTR.TR register value for desired program/erase time.

Syntax

static uint32_t lpc2900_calc_tr(uint32_t clock_var,     uint32_t time_var);
Implemented in lpc2900.c:448

Arguments

clock_var

System clock in Hz

time_var

Program/erase time in µs

References

LocationReferrerText
lpc2900.c:448
static uint32_t lpc2900_calc_tr(uint32_t clock_var, uint32_t time_var)
lpc2900.c:167
static uint32_t lpc2900_calc_tr(uint32_t clock_var, uint32_t time_var);
lpc2900.c:419lpc2900_write_index_page()
FPTR_EN_T | lpc2900_calc_tr(lpc2900_info->clk_sys_fmc,
lpc2900.c:988lpc2900_erase()
FPTR_EN_T | lpc2900_calc_tr(lpc2900_info->clk_sys_fmc,
lpc2900.c:1123lpc2900_write()
uint32_t prog_time = FPTR_EN_T | lpc2900_calc_tr(lpc2900_info->clk_sys_fmc, FLASH_PROGRAM_TIME);

Call Tree

Functions calling lpc2900_calc_tr()
lpc2900_calc_tr()
Data read by lpc2900_calc_tr()
lpc2900_calc_tr()::tr_val
all items filtered out
lpc2900_calc_tr()
Type of lpc2900_calc_tr()
lpc2900_calc_tr()
uint32_t
all items filtered out