[riot-notifications] [RIOT-OS/RIOT] usbdev: Add low level initialization to `periph_init()` (#11213)
notifications at github.com
Wed Mar 20 09:20:54 CET 2019
### Contribution description
This PR adds low level initialization functions for `usbdev`. A low level init function is added to be called in `periph_init()`. This should prepare any configured usbdev device available on the mcu for the real initialization call. Most of this is going to be hooking up the right driver struct with the right context.
The other function is added to allow for retrieving a usbdev context. this is similar to the already existing `SPI_DEV()` and `I2C_DEV()` macros.
Both of these functions must be implemented by the cpu-specific usbdev periph code.
### Testing procedure
Must not impact anything normally as there is no board providing `periph_usbdev` yet. With `periph_usbdev` this should cause a linker error for a missing implementation of `usbdev_init_lowlevel()`
### Issues/PRs references
fixes a chicken/egg issue with the current usb PR set.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* usbdev: Extend with low level initialization functions
* periph: add low level usbdev initialization
-- File Changes --
M drivers/include/periph/usbdev.h (16)
M drivers/periph_common/init.c (7)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications