Skip to content

Commit

Permalink
chore(U0): add SPI support
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Sep 5, 2024
1 parent d15a7c3 commit 1bd67fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/SPI/src/utility/spi_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ uint32_t spi_getClkFreqInst(SPI_TypeDef *spi_inst)
{
uint32_t spi_freq = SystemCoreClock;
if (spi_inst != NP) {
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32G0xx)
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32G0xx) || \
defined(STM32U0xx)
/* SPIx source CLK is PCKL1 */
spi_freq = HAL_RCC_GetPCLK1Freq();
#else
Expand Down

0 comments on commit 1bd67fe

Please sign in to comment.