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

Kees Bakker notifications at github.com
Wed Feb 13 20:54:51 CET 2019


keestux commented on this pull request.



> +#include "debug.h"
+
+#define _USBUS_MSG_QUEUE_SIZE    (8)
+extern const usbus_handler_driver_t _ep0_driver;
+
+/* Forward declaration of the generic USBUS event callback */
+static void _event_cb(usbdev_t *usbdev, usbdev_event_t event);
+/* Forward declaration of the endpoint USBUS event callback */
+static void _event_ep_cb(usbdev_ep_t *ep, usbdev_event_t event);
+
+static void *_usbus_thread(void *args);
+
+void usbus_init(usbus_t *usbus, usbdev_t *usbdev)
+{
+    /* TODO: Check if memset works/is necessary */
+    memset(usbus, 0, sizeof(usbus));

Shouldn't this be `sizeof(*usbus)` ?

-- 
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-203416034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190213/5c1c7ee6/attachment-0001.html>


More information about the notifications mailing list