Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd03ed
)
Remove warning on some gcc versions (thanks Alexandre) Add typedef for one of the...
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Thu, 4 Dec 2014 02:15:33 +0000
(
03:15
+0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000
(17:03 +0100)
core/rom_helpers.c
patch
|
blob
|
history
diff --git
a/core/rom_helpers.c
b/core/rom_helpers.c
index
bc3ad3d
..
263b157
100644
(file)
--- a/
core/rom_helpers.c
+++ b/
core/rom_helpers.c
@@
-108,7
+108,8
@@
enum iap_commands {
IAP_CMD_ERASE_INFO_PAGE = 60,
};
-void (*iap_entry)(unsigned int*, unsigned int*);
+typedef void (*iap_entry_func)(uint32_t*, uint32_t*);
+iap_entry_func iap_entry;
static uint32_t params[5];
static uint32_t results[4];
@@
-187,6
+188,6
@@
uint32_t iap_read_part_id(void)
void rom_helpers_init(void)
{
rom_div_helpers = *((struct lpc_rom_div_helpers**)LPC_122x_DIV_ROM_LOC);
- iap_entry =
*((void(*)(unsigned int*, unsigned int*))LPC_122x_IAP_ROM_LOC)
;
+ iap_entry =
(iap_entry_func)LPC_122x_IAP_ROM_LOC
;
}
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !