X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fflash%2Flpc2000.c;h=20617269cf62d2f2b002007c053119074ae80c26;hb=0f1163e823c6ca3c2a81fa296157f5dde0635fea;hp=01b17f53cf4f799bf04e09047baa284cdf368668;hpb=a15d4cc75eb7bae55db5f6a156cd15918d574688;p=fw%2Fopenocd diff --git a/src/flash/lpc2000.c b/src/flash/lpc2000.c index 01b17f53c..20617269c 100644 --- a/src/flash/lpc2000.c +++ b/src/flash/lpc2000.c @@ -238,11 +238,11 @@ static int lpc2000_iap_call(flash_bank_t *bank, int code, uint32_t param_table[5 { int retval; struct lpc2000_flash_bank *lpc2000_info = bank->driver_priv; - target_t *target = bank->target; - mem_param_t mem_params[2]; - reg_param_t reg_params[5]; - armv4_5_algorithm_t armv4_5_info; /* for LPC2000 */ - armv7m_algorithm_t armv7m_info; /* for LPC1700 */ + struct target *target = bank->target; + struct mem_param mem_params[2]; + struct reg_param reg_params[5]; + struct armv4_5_algorithm armv4_5_info; /* for LPC2000 */ + struct armv7m_algorithm armv7m_info; /* for LPC1700 */ uint32_t status_code; uint32_t iap_entry_point = 0; /* to make compiler happier */ @@ -538,7 +538,7 @@ static int lpc2000_protect(struct flash_bank_s *bank, int set, int first, int la static int lpc2000_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t offset, uint32_t count) { struct lpc2000_flash_bank *lpc2000_info = bank->driver_priv; - target_t *target = bank->target; + struct target *target = bank->target; uint32_t dst_min_alignment; uint32_t bytes_remaining = count; uint32_t bytes_written = 0; @@ -548,7 +548,7 @@ static int lpc2000_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t of uint32_t result_table[4]; int status_code; int i; - working_area_t *download_area; + struct working_area *download_area; int retval = ERROR_OK; if (bank->target->state != TARGET_HALTED)