This commit is contained in:
Hierophect 2019-11-20 12:07:12 -05:00
parent bd9893ab98
commit 3d1b6d9fc8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ STATIC uint32_t get_busclock(SPI_TypeDef * instance) {
if(instance == SPI2) return HAL_RCC_GetPCLK1Freq();
#endif
#ifdef SPI3
if(instance == SPI2) return HAL_RCC_GetPCLK1Freq();
if(instance == SPI3) return HAL_RCC_GetPCLK1Freq();
#endif
return HAL_RCC_GetPCLK2Freq();
}