fix typo
This commit is contained in:
parent
bd9893ab98
commit
3d1b6d9fc8
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user