add PL2303 for STM32F303

This commit is contained in:
Edward Emelianov
2022-02-14 14:10:10 +03:00
parent 89f5932ecb
commit 5f246c16bf
17 changed files with 1733 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ void USB_setup(){
CRS->CR |= CRS_CR_AUTOTRIMEN; // enable auto trim
CRS->CR |= CRS_CR_CEN; // enable freq counter & block CRS->CFGR as read-only
RCC->CFGR |= RCC_CFGR_SW;
// allow RESET and CTRM interrupts
// allow RESET and WKUPM interrupts
USB->CNTR = USB_CNTR_RESETM | USB_CNTR_WKUPM;
// clear flags
USB->ISTR = 0;