[riot-notifications] [RIOT-OS/RIOT] USBUS: Initial work towards an USB stack (#10916)

Koen Zandberg notifications at github.com
Thu Mar 28 22:57:06 CET 2019


bergzand commented on this pull request.



> +                                                 @ref usbus_t) */
+    const usbus_handler_driver_t *driver;   /**< driver for this handler */
+    usbus_interface_t *iface;               /**< Interface this handler belongs
+                                                 to */
+    uint32_t flags;                         /**< Report flags */
+};
+
+/**
+ * @brief USBUS context struct
+ */
+struct usbus {
+    usbus_string_t manuf;                           /**< Manufacturer string                   */
+    usbus_string_t product;                         /**< Product string                        */
+    usbus_string_t config;                          /**< Configuration string                  */
+    usbus_endpoint_t ep_out[USBDEV_NUM_ENDPOINTS];  /**< USBUS OUT endpoints                   */
+    usbus_endpoint_t ep_in[USBDEV_NUM_ENDPOINTS];   /**< USBUS IN endpoints                    */

One "big" change with the latest fixup is that the `usbus_endpoint_t`'s are now statically allocated within the usbus context struct. This effectively moves them from each handler to the central context. A number equal to the usbdev endpoints is allocated, effectively matching them.

-- 
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/10916#pullrequestreview-220294327
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190328/c2b7dabd/attachment.html>


More information about the notifications mailing list