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

Koen Zandberg notifications at github.com
Mon Mar 18 23:05:29 CET 2019


With the move to usbdev devices as part of periph, I have to think a bit on how to rework the device setup itself. suggestions are welcome of course (@dylad @kaspar030).
Main requirement from `usbus` is that it needs the `usbdev` context on initialization.

One option is to move the `$usbdev_setup()` to the `periph_init()` of the cpu and add a getter to retrieve the context, something like `usbdev_get_context(unsigned num)` where `num` selects the usb peripheral number (many mid and high end STM32's and Kinetis MCU's have 2 USB interfaces).

-- 
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#issuecomment-474119744
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190318/38569b47/attachment.html>


More information about the notifications mailing list