From 9e5b09ccedc76bd78828dbf52786acd0c2c046c0 Mon Sep 17 00:00:00 2001 From: Torbjorn Tyridal Date: Tue, 20 Jun 2017 13:40:10 +0200 Subject: [PATCH] Update extra_board_usb changing special* init/deinit to avr->custom --- examples/extra_board_usb/simusb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/extra_board_usb/simusb.c b/examples/extra_board_usb/simusb.c index 439c519..7332f45 100644 --- a/examples/extra_board_usb/simusb.c +++ b/examples/extra_board_usb/simusb.c @@ -98,12 +98,12 @@ int main(int argc, char *argv[]) fprintf(stderr, "%s: Error creating the AVR core\n", argv[0]); exit(1); } - strcpy(flash_data->avr_flash_path, "simusb_flash.bin"); - flash_data->avr_flash_fd = 0; + strcpy(flash_data.avr_flash_path, "simusb_flash.bin"); + flash_data.avr_flash_fd = 0; // register our own functions - avr->special_init = avr_special_init; - avr->special_deinit = avr_special_deinit; - avr->special_data = &flash_data; + avr->custom.init = avr_special_init; + avr->custom.deinit = avr_special_deinit; + avr->custom.data = &flash_data; //avr->reset = NULL; avr_init(avr); avr->frequency = 8000000; -- 2.39.5