[riot-notifications] [RIOT-OS/RIOT] usbus: Initial simple auto init structure (#11075)

Koen Zandberg notifications at github.com
Wed Feb 27 22:27:25 CET 2019


### Contribution description

This code provides a simple auto_init structure for USB peripherals and USBUS provided functions. The auto_init as contributed is designed as a simple solution for the common case. It is intentionally not designed to solve all use cases.

### Testing procedure

The example should now provide a USB device without any usb specific handling in the `main.c` code.

### Issues/PRs references

Depends on #10916 

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11075

-- Commit Summary --

  * usb: Add defines for USB peripheral devices
  * usbopt: Add usb control operation enum
  * usbdev: Introduce a common API for USB peripherals
  * fixup! usbdev: Introduce a common API for USB peripherals
  * fixup! usbopt: Add usb control operation enum
  * fixup! usbdev: Introduce a common API for USB peripherals
  * usbdev: add configurables for usb device drivers
  * fixup! usbopt: Add usb control operation enum
  * fixup! fixup! usbdev: Introduce a common API for USB peripherals
  * fixup! fixup! fixup! usbdev: Introduce a common API for USB peripherals
  * drivers: Add usb device group
  * fixup! fixup! fixup! fixup! usbdev: Introduce a common API for USB peripherals
  * fixup! fixup! usbopt: Add usb control operation enum
  * fixup! usb: Add defines for USB peripheral devices
  * fixup! fixup! fixup! usbopt: Add usb control operation enum
  * fixup! fixup! fixup! fixup! fixup! usbdev: Introduce a common API for USB peripherals
  * fixup! fixup! fixup! fixup! fixup! fixup! usbdev: Introduce a common API for USB peripherals
  * fixup! fixup! usb: Add defines for USB peripheral devices
  * fixup! fixup! fixup! fixup! usbopt: Add usb control operation enum
  * sam0_common: Add USB peripheral driver
  * samr21-xpro: Enable USB driver when required
  * fixup! sam0_common: Add USB peripheral driver
  * fixup! fixup! sam0_common: Add USB peripheral driver
  * fixup! fixup! fixup! sam0_common: Add USB peripheral driver
  * fixup! fixup! fixup! fixup! sam0_common: Add USB peripheral driver
  * fixup! fixup! fixup! fixup! fixup! sam0_common: Add USB peripheral driver
  * fixup! fixup! fixup! fixup! fixup! fixup! sam0_common: Add USB peripheral driver
  * fixup! fixup! fixup! fixup! fixup! fixup! fixup! sam0_common: Add USB peripheral driver
  * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! sam0_common: Add USB peripheral driver
  * usb: Add generic USB structs and functions
  * usbus: Initial work to a unified USB stack
  * USBUS: add minimal working example
  * fixup! USBUS: add minimal working example
  * fixup! usbus: Initial work to a unified USB stack
  * fixup! usb: Add generic USB structs and functions
  * fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! USBUS: add minimal working example
  * fixup! fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! fixup! fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! fixup! fixup! fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * fixup! fixup! usb: Add generic USB structs and functions
  * fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! usbus: Initial work to a unified USB stack
  * auto_init_usb: initial implementation
  * usbus_minimal: Adapt example to auto_init

-- File Changes --

    M Makefile.dep (5)
    M boards/samr21-xpro/Makefile.dep (4)
    M cpu/sam0_common/Makefile (4)
    A cpu/sam0_common/include/sam_usb.h (71)
    A cpu/sam0_common/usb/Makefile (3)
    A cpu/sam0_common/usb/usb.c (695)
    M drivers/doc.txt (6)
    A drivers/include/usb/usbdev.h (560)
    A examples/usbus_minimal/Makefile (24)
    A examples/usbus_minimal/main.c (41)
    M makefiles/pseudomodules.inc.mk (1)
    M sys/Makefile (3)
    M sys/auto_init/Makefile (4)
    M sys/auto_init/auto_init.c (6)
    A sys/auto_init/usb/Makefile (3)
    A sys/auto_init/usb/auto_init_sam0.c (31)
    A sys/auto_init/usb/auto_init_usb.c (55)
    A sys/include/usb.h (134)
    A sys/include/usb/descriptor.h (221)
    A sys/include/usb/usbopt.h (122)
    A sys/include/usb/usbus.h (515)
    A sys/include/usb/usbus/fmt.h (45)
    A sys/usb/usbus/Makefile (4)
    A sys/usb/usbus/usbus.c (318)
    A sys/usb/usbus/usbus_control.c (408)
    A sys/usb/usbus/usbus_fmt.c (242)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11075.patch
https://github.com/RIOT-OS/RIOT/pull/11075.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11075
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190227/29fc856d/attachment-0001.html>


More information about the notifications mailing list