Skip to content

Commit 29dd099

Browse files
committed
chore(wl3): add SPI support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 3a6c699 commit 29dd099

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/SPI/src/utility/spi_com.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ extern "C" {
2929
uint32_t spi_getClkFreqInst(SPI_TypeDef *spi_inst)
3030
{
3131
uint32_t spi_freq = SystemCoreClock;
32-
#if defined(STM32WB0x)
32+
#if defined(STM32WB0x) || defined(STM32WL3x)
3333
(void)spi_inst; // Avoid unused parameter warning
34+
spi_freq = SystemCoreClock / 4;
3435
#else
3536
if (spi_inst != NP) {
3637
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32G0xx) || \

0 commit comments

Comments
 (0)