add usart over DMA Rx/Tx for G070

This commit is contained in:
Edward Emelianov
2023-01-07 14:11:19 +03:00
parent 17c4367b9c
commit 8d0a16612d
17 changed files with 723 additions and 87 deletions

View File

@@ -81,7 +81,8 @@ TRUE_INLINE void StartHSEHSI(int isHSE){
| RCC_PLLCFGR_PLLSRC_HSE;
}else{ // 64MHz from HSI16
RCC->PLLCFGR = (8<<8) | (1<<4)
| RCC_PLLCFGR_PLLREN | RCC_PLLCFGR_PLLPEN /* | RCC_PLLCFGR_PLLQEN */
// enable P and/or Q if need
| RCC_PLLCFGR_PLLREN /* | RCC_PLLCFGR_PLLPEN | RCC_PLLCFGR_PLLQEN */
| RCC_PLLCFGR_PLLSRC_HSI;
}
RCC->CR |= RCC_CR_PLLON;