This commit is contained in:
Hierophect 2019-11-20 12:07:12 -05:00
parent bd9893ab98
commit 3d1b6d9fc8

View File

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