+ int retval = target_write_memory(target, (*iap_working_area)->address, 4, 2, jump_gate);
+ if (retval != ERROR_OK)
+ LOG_ERROR("Write memory at address 0x%8.8" PRIx32 " failed (check work_area definition)",
+ (*iap_working_area)->address);
+
+ return retval;
+}
+
+/* call LPC1700/LPC2000 IAP function */
+
+static int lpc2000_iap_call(struct flash_bank *bank, struct working_area *iap_working_area, int code,
+ uint32_t param_table[5], uint32_t result_table[4])
+{
+ struct lpc2000_flash_bank *lpc2000_info = bank->driver_priv;
+
+ struct arm_algorithm arm_algo; /* for LPC2000 */
+ struct armv7m_algorithm armv7m_info; /* for LPC1700 */
+ uint32_t iap_entry_point = 0; /* to make compiler happier */
+