From: Torbjorn Tyridal Date: Tue, 20 Jun 2017 11:40:10 +0000 (+0200) Subject: Update extra_board_usb X-Git-Tag: v1.6~34^2~2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=9e5b09ccedc76bd78828dbf52786acd0c2c046c0;p=sx%2Fsimavr.git Update extra_board_usb changing special* init/deinit to avr->custom --- 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;