[riot-notifications] [RIOT-OS/RIOT] usbus: Add automated test (#12267)

Dylan Laduranty notifications at github.com
Wed Sep 18 12:39:59 CEST 2019


dylad commented on this pull request.



> + *
+ * @param dev   usbdev mock device state
+ * @param ep    usbdev mock device endpoint
+ * @param len   length supplied to the ready call
+ */
+typedef void (*usbdev_mock_ready_cb_t)(usbdev_mock_t *dev,
+                                       usbdev_mock_ep_t *ep,
+                                       size_t len);
+
+/**
+ * @brief usbdev mock device
+ */
+struct usbdev_mock {
+    usbdev_t usbdev;                    /**< Generic usbdev device          */
+    usbdev_mock_ep_t in[1];             /**< IN endpoints                   */
+    usbdev_mock_ep_t out[1];            /**< OUT endpoints                  */

Then you should consider to use a `#define` ;)

-- 
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/12267#discussion_r325603423
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190918/2d82d108/attachment.htm>


More information about the notifications mailing list