X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fpic32mx.c;h=1f6634672bbf810d17d6e39b48fe24da3bd7be85;hb=f10ed95a5ce6be416bcb2ec20826c6e508e4b622;hp=d2289b297ffabec997f5e9bf496526e7178fa585;hpb=a8880f0b5ab7f5c9d4d3b031fd487caac766b99f;p=openocd.git diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c index d2289b297f..1f6634672b 100644 --- a/src/flash/nor/pic32mx.c +++ b/src/flash/nor/pic32mx.c @@ -27,6 +27,7 @@ #include "config.h" #endif +#include "imp.h" #include "pic32mx.h" #include @@ -885,13 +886,13 @@ COMMAND_HANDLER(pic32mx_handle_pgm_word_command) static const struct command_registration pic32mx_exec_command_handlers[] = { { .name = "chip_erase", - .handler = &pic32mx_handle_chip_erase_command, + .handler = pic32mx_handle_chip_erase_command, .mode = COMMAND_EXEC, .help = "erase device", }, { .name = "pgm_word", - .handler = &pic32mx_handle_pgm_word_command, + .handler = pic32mx_handle_pgm_word_command, .mode = COMMAND_EXEC, .help = "program a word", }, @@ -908,15 +909,15 @@ static const struct command_registration pic32mx_command_handlers[] = { }; struct flash_driver pic32mx_flash = { - .name = "pic32mx", - .commands = pic32mx_command_handlers, - .flash_bank_command = &pic32mx_flash_bank_command, - .erase = &pic32mx_erase, - .protect = &pic32mx_protect, - .write = &pic32mx_write, - .probe = &pic32mx_probe, - .auto_probe = &pic32mx_auto_probe, - .erase_check = &default_flash_mem_blank_check, - .protect_check = &pic32mx_protect_check, - .info = &pic32mx_info, - }; + .name = "pic32mx", + .commands = pic32mx_command_handlers, + .flash_bank_command = pic32mx_flash_bank_command, + .erase = pic32mx_erase, + .protect = pic32mx_protect, + .write = pic32mx_write, + .probe = pic32mx_probe, + .auto_probe = pic32mx_auto_probe, + .erase_check = default_flash_mem_blank_check, + .protect_check = pic32mx_protect_check, + .info = pic32mx_info, +};