Commit 83cff2f9a69cf6ca87d51f235031618afc5009e5
authorDoug Goldstein <cardoe@cardoe.com>
Wed, 19 Feb 2014 02:06:31 +0000 (20:06 -0600)
committerDoug Goldstein <cardoe@cardoe.com>
Wed, 19 Feb 2014 02:27:24 +0000 (20:27 -0600)
tree202ea9d0cf7d963e63ec5394b961d595a4decd65
parent24b2befe8cb30ff5592081c2cb64210761c9be78
Message:
Extend special_init/special_deinit API

Its pretty common for callback style APIs to include a private pointer
to allow the user to pass in contextual data through the callback API
(see pthread_create for an example). This change adds that for
special_init() and special_deinit() which are designed as callbacks.
Effectively this behavior was used in the only two examples that used
those callbacks by having global variables, however globals are of
limited use for programs that might instantiate multiple avr cores.
5 files changed:
examples/board_simduino/simduino.c
examples/extra_board_usb/simusb.c
simavr/sim/sim_avr.c
simavr/sim/sim_avr.h
tests/tests.c