Skip to content

Commit 478038c

Browse files
juickarerwango
authored andcommitted
stm32cube: stm32wbaxx: Fix missing definitions for WBA2x series
Fix to encapsulate the header files of WWDG and TSC to avoid build errors due to missing definitions in the SoC header files. Signed-off-by: Julien Racki <julien.racki-ext@st.com>
1 parent 21d2c68 commit 478038c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

stm32cube/stm32wbaxx/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,9 @@ Patch List:
5353
drivers/include/stm32wbaxx_hal_conf.h
5454
stm32cube/stm32wbaxx/CMakeLists.txt
5555

56+
*Fix to encapsulate the header files of WWDG and TSC to avoid build errors
57+
due to missing definitions in the WBA2 SoC header files.
58+
Impacted files:
59+
drivers/include/stm32wbaxx_hal_tsc.h
60+
drivers/include/stm32wbaxx_hal_wwdg.h
5661
See release_note.html from STM32Cube

stm32cube/stm32wbaxx/drivers/include/stm32wbaxx_hal_tsc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern "C" {
2727
/* Includes ------------------------------------------------------------------*/
2828
#include "stm32wbaxx_hal_def.h"
2929

30+
#if defined (TSC)
3031

3132
/** @addtogroup STM32WBAxx_HAL_Driver
3233
* @{
@@ -858,6 +859,8 @@ void HAL_TSC_ErrorCallback(TSC_HandleTypeDef *htsc);
858859
* @}
859860
*/
860861

862+
#endif /* TSC */
863+
861864
#ifdef __cplusplus
862865
}
863866
#endif

stm32cube/stm32wbaxx/drivers/include/stm32wbaxx_hal_wwdg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ extern "C" {
2727
/* Includes ------------------------------------------------------------------*/
2828
#include "stm32wbaxx_hal_def.h"
2929

30+
#if defined (WWDG)
31+
3032
/** @addtogroup STM32WBAxx_HAL_Driver
3133
* @{
3234
*/
@@ -299,6 +301,8 @@ void HAL_WWDG_EarlyWakeupCallback(WWDG_HandleTypeDef *hwwdg);
299301
* @}
300302
*/
301303

304+
#endif /* WWDG */
305+
302306
#ifdef __cplusplus
303307
}
304308
#endif

0 commit comments

Comments
 (0)