From: Nathael Pajani Date: Wed, 18 Aug 2021 08:16:40 +0000 (+0200) Subject: Remove typedef X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=444c0f5e3f1240b2f5f132b44c8c0f76d3fafb70;p=soft%2Flpc82x%2Fcore Remove typedef --- diff --git a/core/rom_helpers.c b/core/rom_helpers.c index d4d08a6..3bd107e 100644 --- a/core/rom_helpers.c +++ b/core/rom_helpers.c @@ -27,8 +27,8 @@ #include "lib/stdint.h" #include "core/system.h" -#include "core/iap.h" #include "core/lpc_core.h" +#include "core/iap.h" #include "core/rom_uart.h" /*******************************************************************************/ @@ -168,8 +168,7 @@ enum iap_commands { IAP_CMD_ERASE_PAGE = 59, }; -typedef void (*iap_entry_func)(uint32_t*, uint32_t*); -iap_entry_func iap_entry; +void (*iap_entry)(uint32_t*, uint32_t*); static uint32_t params[5]; static uint32_t results[4]; @@ -251,8 +250,10 @@ struct rom_helpers { void rom_helpers_init(void) { + /* Common ROM helpers */ rom_div_helpers = (struct lpc_rom_div_helpers*)(ROM_DRIVERS->rom_div); uart_helpers = (struct lpc_rom_uart_helpers*)(ROM_DRIVERS->rom_usart_driver); - iap_entry = (iap_entry_func)LPC_82x_IAP_ROM_LOC; + /* IAP is a little bit different */ + iap_entry = (void (*)(uint32_t*, uint32_t*))LPC_82x_IAP_ROM_LOC; }