Skip to content

Commit b7ce938

Browse files
committed
fix(wb0): HAL radio module guards
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 815a2f9 commit b7ce938

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

system/Drivers/STM32WB0x_HAL_Driver/Src/stm32wb0x_hal_radio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/** @addtogroup STM32WB0x_HAL_Driver
2323
* @{
2424
*/
25+
#ifdef HAL_RADIO_MODULE_ENABLED
2526

2627
/** @addtogroup RADIO
2728
* @{
@@ -1802,7 +1803,7 @@ void HAL_RADIO_TXRX_SEQ_IRQHandler(void)
18021803
/**
18031804
* @}
18041805
*/
1805-
1806+
#endif /* HAL_RADIO_MODULE_ENABLED */
18061807
/**
18071808
* @}
18081809
*/

system/Drivers/STM32WB0x_HAL_Driver/Src/stm32wb0x_hal_radio_timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
/** @addtogroup STM32WB0x_HAL_Driver
5757
* @{
5858
*/
59-
59+
#ifdef HAL_RADIO_TIMER_MODULE_ENABLED
6060
/** @addtogroup RADIO_TIMER
6161
* @brief HAL RADIO TIMER module driver
6262
* @{
@@ -1825,7 +1825,7 @@ void HAL_RADIO_TIMER_ERROR_IRQHandler(void)
18251825
/**
18261826
* @}
18271827
*/
1828-
1828+
#endif /* HAL_RADIO_TIMER_MODULE_ENABLED */
18291829
/**
18301830
* @}
18311831
*/

0 commit comments

Comments
 (0)