@@ -1279,10 +1279,10 @@ extern "C" {
12791279#define RTC_TAMPERPIN_PA0 RTC_TAMPERPIN_POS1
12801280#define RTC_TAMPERPIN_PI8 RTC_TAMPERPIN_POS1
12811281
1282- #if defined(STM32H5 ) || defined(STM32H7RS )
1282+ #if defined(STM32H5 ) || defined(STM32H7RS ) || defined( STM32N6 )
12831283#define TAMP_SECRETDEVICE_ERASE_NONE TAMP_DEVICESECRETS_ERASE_NONE
12841284#define TAMP_SECRETDEVICE_ERASE_BKP_SRAM TAMP_DEVICESECRETS_ERASE_BKPSRAM
1285- #endif /* STM32H5 || STM32H7RS */
1285+ #endif /* STM32H5 || STM32H7RS || STM32N6 */
12861286
12871287#if defined(STM32WBA )
12881288#define TAMP_SECRETDEVICE_ERASE_NONE TAMP_DEVICESECRETS_ERASE_NONE
@@ -1294,10 +1294,10 @@ extern "C" {
12941294#define TAMP_SECRETDEVICE_ERASE_ALL TAMP_DEVICESECRETS_ERASE_ALL
12951295#endif /* STM32WBA */
12961296
1297- #if defined(STM32H5 ) || defined(STM32WBA ) || defined(STM32H7RS )
1297+ #if defined(STM32H5 ) || defined(STM32WBA ) || defined(STM32H7RS ) || defined( STM32N6 )
12981298#define TAMP_SECRETDEVICE_ERASE_DISABLE TAMP_DEVICESECRETS_ERASE_NONE
12991299#define TAMP_SECRETDEVICE_ERASE_ENABLE TAMP_SECRETDEVICE_ERASE_ALL
1300- #endif /* STM32H5 || STM32WBA || STM32H7RS */
1300+ #endif /* STM32H5 || STM32WBA || STM32H7RS || STM32N6 */
13011301
13021302#if defined(STM32F7 )
13031303#define RTC_TAMPCR_TAMPXE RTC_TAMPER_ENABLE_BITS_MASK
@@ -1481,7 +1481,7 @@ extern "C" {
14811481#define TIM_TIM3_TI1_COMP1COMP2_OUT TIM_TIM3_TI1_COMP1_COMP2
14821482#endif
14831483
1484- #if defined(STM32U5 )
1484+ #if defined(STM32U5 ) || defined( STM32MP2 )
14851485#define OCREF_CLEAR_SELECT_Pos OCREF_CLEAR_SELECT_POS
14861486#define OCREF_CLEAR_SELECT_Msk OCREF_CLEAR_SELECT_MSK
14871487#endif
@@ -2029,12 +2029,12 @@ extern "C" {
20292029/** @defgroup HAL_RTC_Aliased_Functions HAL RTC Aliased Functions maintained for legacy purpose
20302030 * @{
20312031 */
2032- #if defined(STM32H5 ) || defined(STM32WBA ) || defined(STM32H7RS )
2032+ #if defined(STM32H5 ) || defined(STM32WBA ) || defined(STM32H7RS ) || defined( STM32N6 )
20332033#define HAL_RTCEx_SetBoothardwareKey HAL_RTCEx_LockBootHardwareKey
20342034#define HAL_RTCEx_BKUPBlock_Enable HAL_RTCEx_BKUPBlock
20352035#define HAL_RTCEx_BKUPBlock_Disable HAL_RTCEx_BKUPUnblock
20362036#define HAL_RTCEx_Erase_SecretDev_Conf HAL_RTCEx_ConfigEraseDeviceSecrets
2037- #endif /* STM32H5 || STM32WBA || STM32H7RS */
2037+ #endif /* STM32H5 || STM32WBA || STM32H7RS || STM32N6 */
20382038
20392039/**
20402040 * @}
@@ -3695,7 +3695,7 @@ extern "C" {
36953695#endif
36963696
36973697#if defined(STM32L4 ) || defined(STM32WB ) || defined(STM32G0 ) || defined(STM32G4 ) || defined(STM32L5 ) || \
3698- defined(STM32WL ) || defined(STM32C0 ) || defined(STM32H7RS ) || defined(STM32U0 )
3698+ defined(STM32WL ) || defined(STM32C0 ) || defined( STM32N6 ) || defined(STM32H7RS ) || defined(STM32U0 )
36993699#define RCC_RTCCLKSOURCE_NO_CLK RCC_RTCCLKSOURCE_NONE
37003700#else
37013701#define RCC_RTCCLKSOURCE_NONE RCC_RTCCLKSOURCE_NO_CLK
@@ -3946,7 +3946,8 @@ extern "C" {
39463946 */
39473947#if defined (STM32G0 ) || defined (STM32L5 ) || defined (STM32L412xx ) || defined (STM32L422xx ) || \
39483948 defined (STM32L4P5xx )|| defined (STM32L4Q5xx ) || defined (STM32G4 ) || defined (STM32WL ) || defined (STM32U5 ) || \
3949- defined (STM32WBA ) || defined (STM32H5 ) || defined (STM32C0 ) || defined (STM32H7RS ) || defined (STM32U0 )
3949+ defined (STM32WBA ) || defined (STM32H5 ) || defined (STM32C0 ) || defined (STM32N6 ) || defined (STM32H7RS ) || \
3950+ defined (STM32U0 ) || defined (STM32U3 )
39503951#else
39513952#define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG
39523953#endif
0 commit comments