We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a7be3 commit f247f7fCopy full SHA for f247f7f
libraries/SPI/src/utility/spi_com.c
@@ -29,6 +29,9 @@ extern "C" {
29
uint32_t spi_getClkFreqInst(SPI_TypeDef *spi_inst)
30
{
31
uint32_t spi_freq = SystemCoreClock;
32
+#if defined(STM32WB0x)
33
+ (void)spi_inst; // Avoid unused parameter warning
34
+#else
35
if (spi_inst != NP) {
36
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32G0xx) || \
37
defined(STM32U0xx)
@@ -141,6 +144,7 @@ uint32_t spi_getClkFreqInst(SPI_TypeDef *spi_inst)
141
144
#endif // SUBGHZSPI_BASE
142
145
#endif
143
146
}
147
+#endif // !STM32WB0x
148
return spi_freq;
149
150
0 commit comments