Add dcd_musb.c

This commit is contained in:
kkitayam
2021-10-30 23:41:23 +09:00
parent f183d0810b
commit 50ca0dda2c
3 changed files with 845 additions and 10 deletions
+2
View File
@@ -122,6 +122,8 @@ void board_init(void)
for (int i = 0; i < 16; ++i) __NOP();
SYSCTL->SRUSB = 0u;
USB0->CC = USB_CC_CLKEN | (3u << USB_CC_CLKDIV_S); /* 60MHz = 240MHz / 4 */
__DMB(); /* Wait for completion of opening of the clock gate */
}
//--------------------------------------------------------------------+