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

Koen Zandberg notifications at github.com
Sat Feb 2 17:00:40 CET 2019


bergzand commented on this pull request.



> +        USB_PADCAL_TRANSP((*(uint32_t *)USB_FUSES_TRANSP_ADDR >>
+                           USB_FUSES_TRANSP_Pos)) |
+        USB_PADCAL_TRANSN((*(uint32_t *)USB_FUSES_TRANSN_ADDR >>
+                           USB_FUSES_TRANSN_Pos)) |
+        USB_PADCAL_TRIM((*(uint32_t *)USB_FUSES_TRIM_ADDR >>
+                         USB_FUSES_TRIM_Pos));
+
+    USB->DEVICE.CTRLB.bit.SPDCONF = 0x0;
+    _enable_irq();
+    /* Interrupt configuration */
+    NVIC_EnableIRQ(USB_IRQn);
+}
+
+void usb_attach(void)
+{
+    /* Datasheet is not clear whether device starts detached */

This served as a reminder for myself to check this. As you said, this doesn't belong here, I'm removing it.

-- 
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_r253269699
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190202/657f51c7/attachment.html>


More information about the notifications mailing list