Commit 9e5b09ccedc76bd78828dbf52786acd0c2c046c0
authorTorbjorn Tyridal <ttyridal@cisco.com>
Tue, 20 Jun 2017 11:40:10 +0000 (13:40 +0200)
committerMichel Pollet <buserror@gmail.com>
Wed, 2 Aug 2017 08:09:13 +0000 (09:09 +0100)
changing special* init/deinit to avr->custom

examples/extra_board_usb/simusb.c

index 439c519c1786225e873335d5b29ed029369446a2..7332f453bdf0606ef079f64f452eeb8abaf308b1 100644 (file)
@@ -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;