[riot-notifications] [RIOT-OS/RIOT] [WIP] USBUS: Initial work towards an USB stack (#10916)
notifications at github.com
Wed Feb 13 19:40:05 CET 2019
bergzand commented on this pull request.
> +#if defined(CPU_FAM_SAMD21)
+ PM->AHBMASK.reg |= PM_AHBMASK_USB;
+ GCLK->CLKCTRL.reg = (uint32_t)(GCLK_CLKCTRL_CLKEN |
+ GCLK_CLKCTRL_GEN_GCLK0 |
+ MCLK->AHBMASK.reg |= (MCLK_AHBMASK_USB);
+ GCLK->PCHCTRL[USB_GCLK_ID].reg = GCLK_PCHCTRL_CHEN |
+void usbdev_init(usbdev_t *dev)
+ /* Only one usb device on this board */
+ _usbdev = (sam0_common_usb_t *)dev;
Reworked this to not have a hard dependency on the `sam0_common_usb_t` struct
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications