This commit is contained in:
hathach
2019-11-25 10:42:32 +07:00
parent 58e8265964
commit c691dc4cb2
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -66,7 +66,7 @@ void board_init(void)
SysTick_Config(CONF_CPU_FREQUENCY / 1000);
#endif
// USB
// USB Pin, Clock init
/* Clear SYSIO 10 & 11 for USB DM & DP */
hri_matrix_clear_CCFG_SYSIO_reg(MATRIX, CCFG_SYSIO_SYSIO10 | CCFG_SYSIO_SYSIO11);
@@ -77,8 +77,6 @@ void board_init(void)
/* USB Device mode & Transceiver active */
hri_matrix_write_CCFG_USBMR_reg(MATRIX, CCFG_USBMR_USBMODE);
// NVIC_EnableIRQ(UDP_IRQn);
// Attach
hri_udp_write_TXVC_reg(UDP, UDP_TXVC_PUON);
}