[riot-notifications] [RIOT-OS/RIOT] usbdev: Add low level initialization to `periph_init()` (#11213)

Hauke Petersen notifications at github.com
Mon Mar 25 10:13:33 CET 2019


haukepetersen commented on this pull request.



> @@ -355,6 +355,22 @@ typedef struct usbdev_driver {
     int (*ready)(usbdev_ep_t *ep, size_t len);
 } usbdev_driver_t;
 
+/**
+ * @brief Low level USB peripheral driver initialization
+ *
+ * This function prepares all usbdev peripherals available for initialization
+ */
+void usbdev_init_lowlevel(void);
+
+/**
+ * @brief Retrieve usbdev context from the peripheral
+ *
+ * @param num   usbdev peripheral number to retrieve
+ *
+ * @returns     the usbdev context at index @p num
+ */
+usbdev_t *usbdev_get_ctx(unsigned num);

+1

-- 
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/11213#discussion_r268542867
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190325/16194363/attachment.html>


More information about the notifications mailing list