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

Koen Zandberg notifications at github.com
Wed Feb 13 20:58:08 CET 2019


bergzand 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));

Yes

Noticed it after I rebased and pushed everything :cry:

Fixed

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


More information about the notifications mailing list