1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atusb/fw: revert most of the user_setups change and use simple callback instead

This allows us to do other things as well, e.g., change state.

- ep0.c (ep0_init), usb/dfu.c (dfu_init): use user_setup
- usb/atu2.c (usb_poll): no need to reset user_setup - the user's
  reset function can do that
- usb/usb.h (user_setups), usb/usb.c (handle_setup): removed
  user_setups
- usb/usb.h (user_set_interface), usb/usb.c (user_set_interface,
  handle_setup): callback for SET_INTERFACE
This commit is contained in:
Werner Almesberger
2011-06-10 21:50:42 -03:00
parent 7a2c785e29
commit bbe27fc357
5 changed files with 6 additions and 8 deletions

View File

@@ -280,7 +280,7 @@ static void my_reset(void)
void dfu_init(void)
{
user_setups[0] = my_setup;
user_setup = my_setup;
user_get_descriptor = my_descr;
user_reset = my_reset;
}