update to CubeMX 6.14.0, FW_H7 1.12.1
This commit is contained in:
@ -252,7 +252,9 @@ typedef struct
|
||||
#define LL_RTC_ISR_ITSF RTC_ISR_ITSF
|
||||
#define LL_RTC_ISR_RECALPF RTC_ISR_RECALPF
|
||||
#define LL_RTC_ISR_TAMP3F RTC_ISR_TAMP3F
|
||||
#if defined(RTC_TAMPER2_SUPPORT)
|
||||
#define LL_RTC_ISR_TAMP2F RTC_ISR_TAMP2F
|
||||
#endif /* RTC_TAMPER2_SUPPORT */
|
||||
#define LL_RTC_ISR_TAMP1F RTC_ISR_TAMP1F
|
||||
#define LL_RTC_ISR_TSOVF RTC_ISR_TSOVF
|
||||
#define LL_RTC_ISR_TSF RTC_ISR_TSF
|
||||
@ -280,9 +282,11 @@ typedef struct
|
||||
#define LL_RTC_CR_ALRBIE RTC_CR_ALRBIE
|
||||
#define LL_RTC_CR_ALRAIE RTC_CR_ALRAIE
|
||||
#if !defined(TAMP)
|
||||
#if defined(RTC_TAMPxIE_SUPPORT)
|
||||
#define LL_RTC_TAMPCR_TAMP3IE RTC_TAMPCR_TAMP3IE
|
||||
#define LL_RTC_TAMPCR_TAMP2IE RTC_TAMPCR_TAMP2IE
|
||||
#define LL_RTC_TAMPCR_TAMP1IE RTC_TAMPCR_TAMP1IE
|
||||
#endif /* RTC_TAMPxIE_SUPPORT */
|
||||
#define LL_RTC_TAMPCR_TAMPIE RTC_TAMPCR_TAMPIE
|
||||
#endif /* !TAMP */
|
||||
/**
|
||||
@ -527,13 +531,17 @@ typedef struct
|
||||
* @{
|
||||
*/
|
||||
#define LL_RTC_TAMPER_1 RTC_TAMPCR_TAMP1E /*!< RTC_TAMP1 input detection */
|
||||
#if defined(RTC_TAMPER2_SUPPORT)
|
||||
#define LL_RTC_TAMPER_2 RTC_TAMPCR_TAMP2E /*!< RTC_TAMP2 input detection */
|
||||
#endif /* RTC_TAMPER2_SUPPORT */
|
||||
#define LL_RTC_TAMPER_3 RTC_TAMPCR_TAMP3E /*!< RTC_TAMP3 input detection */
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup RTC_LL_EC_TAMPER_MASK TAMPER MASK
|
||||
* @note These values are not applicable to the STM32H723/33, STM32H725/35 and STM32H730 devices,
|
||||
* and have been kept for backward compatibility.
|
||||
* @{
|
||||
*/
|
||||
#define LL_RTC_TAMPER_MASK_TAMPER1 RTC_TAMPCR_TAMP1MF /*!< Tamper 1 event generates a trigger event. TAMP1F is masked and internally cleared by hardware.The backup registers are not erased */
|
||||
@ -544,6 +552,8 @@ typedef struct
|
||||
*/
|
||||
|
||||
/** @defgroup RTC_LL_EC_TAMPER_NOERASE TAMPER NO ERASE
|
||||
* @note These values are not applicable to the STM32H723/33, STM32H725/35 and STM32H730 devices,
|
||||
* and have been kept for backward compatibility.
|
||||
* @{
|
||||
*/
|
||||
#define LL_RTC_TAMPER_NOERASE_TAMPER1 RTC_TAMPCR_TAMP1NOERASE /*!< Tamper 1 event does not erase the backup registers. */
|
||||
@ -903,7 +913,7 @@ __STATIC_INLINE void LL_RTC_SetHourFormat(RTC_TypeDef *RTCx, uint32_t HourFormat
|
||||
* @arg @ref LL_RTC_HOURFORMAT_24HOUR
|
||||
* @arg @ref LL_RTC_HOURFORMAT_AMPM
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetHourFormat(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetHourFormat(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CR, RTC_CR_FMT));
|
||||
}
|
||||
@ -935,7 +945,7 @@ __STATIC_INLINE void LL_RTC_SetAlarmOutEvent(RTC_TypeDef *RTCx, uint32_t AlarmOu
|
||||
* @arg @ref LL_RTC_ALARMOUT_ALMB
|
||||
* @arg @ref LL_RTC_ALARMOUT_WAKEUP
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutEvent(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutEvent(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CR, RTC_CR_OSEL));
|
||||
}
|
||||
@ -992,7 +1002,7 @@ __STATIC_INLINE void LL_RTC_SetAlarmOutputType(RTC_TypeDef *RTCx, uint32_t Outpu
|
||||
* @arg @ref LL_RTC_ALARM_OUTPUTTYPE_OPENDRAIN
|
||||
* @arg @ref LL_RTC_ALARM_OUTPUTTYPE_PUSHPULL
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutputType(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetAlarmOutputType(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->OR, RTC_OR_ALARMOUTTYPE));
|
||||
}
|
||||
@ -1078,7 +1088,7 @@ __STATIC_INLINE void LL_RTC_SetOutputPolarity(RTC_TypeDef *RTCx, uint32_t Polari
|
||||
* @arg @ref LL_RTC_OUTPUTPOLARITY_PIN_HIGH
|
||||
* @arg @ref LL_RTC_OUTPUTPOLARITY_PIN_LOW
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetOutputPolarity(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetOutputPolarity(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CR, RTC_CR_POL));
|
||||
}
|
||||
@ -1112,7 +1122,7 @@ __STATIC_INLINE void LL_RTC_DisableShadowRegBypass(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsShadowRegBypassEnabled(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsShadowRegBypassEnabled(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CR, RTC_CR_BYPSHAD) == (RTC_CR_BYPSHAD)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -1173,7 +1183,7 @@ __STATIC_INLINE void LL_RTC_SetSynchPrescaler(RTC_TypeDef *RTCx, uint32_t SynchP
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data = 0 and Max_Data = 0x7F
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetAsynchPrescaler(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetAsynchPrescaler(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->PRER, RTC_PRER_PREDIV_A) >> RTC_PRER_PREDIV_A_Pos);
|
||||
}
|
||||
@ -1184,7 +1194,7 @@ __STATIC_INLINE uint32_t LL_RTC_GetAsynchPrescaler(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data = 0 and Max_Data = 0x7FFF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetSynchPrescaler(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_GetSynchPrescaler(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->PRER, RTC_PRER_PREDIV_S));
|
||||
}
|
||||
@ -1376,7 +1386,7 @@ __STATIC_INLINE void LL_RTC_TIME_SetFormat(RTC_TypeDef *RTCx, uint32_t TimeForma
|
||||
* @arg @ref LL_RTC_TIME_FORMAT_AM_OR_24
|
||||
* @arg @ref LL_RTC_TIME_FORMAT_PM
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetFormat(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetFormat(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TR, RTC_TR_PM));
|
||||
}
|
||||
@ -1411,7 +1421,7 @@ __STATIC_INLINE void LL_RTC_TIME_SetHour(RTC_TypeDef *RTCx, uint32_t Hours)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetHour(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetHour(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->TR, (RTC_TR_HT | RTC_TR_HU))) >> RTC_TR_HU_Pos);
|
||||
}
|
||||
@ -1446,7 +1456,7 @@ __STATIC_INLINE void LL_RTC_TIME_SetMinute(RTC_TypeDef *RTCx, uint32_t Minutes)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetMinute(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetMinute(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TR, (RTC_TR_MNT | RTC_TR_MNU)) >> RTC_TR_MNU_Pos);
|
||||
}
|
||||
@ -1481,7 +1491,7 @@ __STATIC_INLINE void LL_RTC_TIME_SetSecond(RTC_TypeDef *RTCx, uint32_t Seconds)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TR, (RTC_TR_ST | RTC_TR_SU)) >> RTC_TR_SU_Pos);
|
||||
}
|
||||
@ -1535,7 +1545,7 @@ __STATIC_INLINE void LL_RTC_TIME_Config(RTC_TypeDef *RTCx, uint32_t Format12_24,
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Combination of hours, minutes and seconds (Format: 0x00HHMMSS).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_Get(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_Get(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
uint32_t temp;
|
||||
|
||||
@ -1575,7 +1585,7 @@ __STATIC_INLINE void LL_RTC_TIME_DisableDayLightStore(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_IsDayLightStoreEnabled(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_IsDayLightStoreEnabled(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CR, RTC_CR_BKP) == (RTC_CR_BKP)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -1617,7 +1627,7 @@ __STATIC_INLINE void LL_RTC_TIME_IncHour(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Sub second value (number between 0 and 65535)
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSubSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TIME_GetSubSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->SSR, RTC_SSR_SS));
|
||||
}
|
||||
@ -1674,7 +1684,7 @@ __STATIC_INLINE void LL_RTC_DATE_SetYear(RTC_TypeDef *RTCx, uint32_t Year)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x99
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetYear(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetYear(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->DR, (RTC_DR_YT | RTC_DR_YU))) >> RTC_DR_YU_Pos);
|
||||
}
|
||||
@ -1713,7 +1723,7 @@ __STATIC_INLINE void LL_RTC_DATE_SetWeekDay(RTC_TypeDef *RTCx, uint32_t WeekDay)
|
||||
* @arg @ref LL_RTC_WEEKDAY_SATURDAY
|
||||
* @arg @ref LL_RTC_WEEKDAY_SUNDAY
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetWeekDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetWeekDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->DR, RTC_DR_WDU) >> RTC_DR_WDU_Pos);
|
||||
}
|
||||
@ -1767,7 +1777,7 @@ __STATIC_INLINE void LL_RTC_DATE_SetMonth(RTC_TypeDef *RTCx, uint32_t Month)
|
||||
* @arg @ref LL_RTC_MONTH_NOVEMBER
|
||||
* @arg @ref LL_RTC_MONTH_DECEMBER
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetMonth(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetMonth(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->DR, (RTC_DR_MT | RTC_DR_MU))) >> RTC_DR_MU_Pos);
|
||||
}
|
||||
@ -1797,7 +1807,7 @@ __STATIC_INLINE void LL_RTC_DATE_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x31
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_GetDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->DR, (RTC_DR_DT | RTC_DR_DU))) >> RTC_DR_DU_Pos);
|
||||
}
|
||||
@ -1865,7 +1875,7 @@ __STATIC_INLINE void LL_RTC_DATE_Config(RTC_TypeDef *RTCx, uint32_t WeekDay, uin
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Combination of WeekDay, Day, Month and Year (Format: 0xWWDDMMYY).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_Get(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_DATE_Get(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
uint32_t temp;
|
||||
|
||||
@ -1944,7 +1954,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetMask(RTC_TypeDef *RTCx, uint32_t Mask)
|
||||
* @arg @ref LL_RTC_ALMA_MASK_SECONDS
|
||||
* @arg @ref LL_RTC_ALMA_MASK_ALL
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMask(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMask(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMAR, RTC_ALRMAR_MSK4 | RTC_ALRMAR_MSK3 | RTC_ALRMAR_MSK2 | RTC_ALRMAR_MSK1));
|
||||
}
|
||||
@ -1994,7 +2004,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x31
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMAR, (RTC_ALRMAR_DT | RTC_ALRMAR_DU))) >> RTC_ALRMAR_DU_Pos);
|
||||
}
|
||||
@ -2031,7 +2041,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetWeekDay(RTC_TypeDef *RTCx, uint32_t WeekDay)
|
||||
* @arg @ref LL_RTC_WEEKDAY_SATURDAY
|
||||
* @arg @ref LL_RTC_WEEKDAY_SUNDAY
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetWeekDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetWeekDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMAR, RTC_ALRMAR_DU) >> RTC_ALRMAR_DU_Pos);
|
||||
}
|
||||
@ -2058,7 +2068,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetTimeFormat(RTC_TypeDef *RTCx, uint32_t TimeF
|
||||
* @arg @ref LL_RTC_ALMA_TIME_FORMAT_AM
|
||||
* @arg @ref LL_RTC_ALMA_TIME_FORMAT_PM
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetTimeFormat(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetTimeFormat(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMAR, RTC_ALRMAR_PM));
|
||||
}
|
||||
@ -2086,7 +2096,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetHour(RTC_TypeDef *RTCx, uint32_t Hours)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetHour(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetHour(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMAR, (RTC_ALRMAR_HT | RTC_ALRMAR_HU))) >> RTC_ALRMAR_HU_Pos);
|
||||
}
|
||||
@ -2114,7 +2124,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetMinute(RTC_TypeDef *RTCx, uint32_t Minutes)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMinute(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetMinute(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMAR, (RTC_ALRMAR_MNT | RTC_ALRMAR_MNU))) >> RTC_ALRMAR_MNU_Pos);
|
||||
}
|
||||
@ -2142,7 +2152,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetSecond(RTC_TypeDef *RTCx, uint32_t Seconds)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMAR, (RTC_ALRMAR_ST | RTC_ALRMAR_SU))) >> RTC_ALRMAR_SU_Pos);
|
||||
}
|
||||
@ -2214,7 +2224,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetSubSecondMask(RTC_TypeDef *RTCx, uint32_t Ma
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0xF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecondMask(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecondMask(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMASSR, RTC_ALRMASSR_MASKSS) >> RTC_ALRMASSR_MASKSS_Pos);
|
||||
}
|
||||
@ -2237,7 +2247,7 @@ __STATIC_INLINE void LL_RTC_ALMA_SetSubSecond(RTC_TypeDef *RTCx, uint32_t Subsec
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x7FFF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMA_GetSubSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMASSR, RTC_ALRMASSR_SS));
|
||||
}
|
||||
@ -2310,7 +2320,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetMask(RTC_TypeDef *RTCx, uint32_t Mask)
|
||||
* @arg @ref LL_RTC_ALMB_MASK_SECONDS
|
||||
* @arg @ref LL_RTC_ALMB_MASK_ALL
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMask(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMask(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMBR, RTC_ALRMBR_MSK4 | RTC_ALRMBR_MSK3 | RTC_ALRMBR_MSK2 | RTC_ALRMBR_MSK1));
|
||||
}
|
||||
@ -2360,7 +2370,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x31
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMBR, (RTC_ALRMBR_DT | RTC_ALRMBR_DU))) >> RTC_ALRMBR_DU_Pos);
|
||||
}
|
||||
@ -2397,7 +2407,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetWeekDay(RTC_TypeDef *RTCx, uint32_t WeekDay)
|
||||
* @arg @ref LL_RTC_WEEKDAY_SATURDAY
|
||||
* @arg @ref LL_RTC_WEEKDAY_SUNDAY
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetWeekDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetWeekDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMBR, RTC_ALRMBR_DU) >> RTC_ALRMBR_DU_Pos);
|
||||
}
|
||||
@ -2424,7 +2434,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetTimeFormat(RTC_TypeDef *RTCx, uint32_t TimeF
|
||||
* @arg @ref LL_RTC_ALMB_TIME_FORMAT_AM
|
||||
* @arg @ref LL_RTC_ALMB_TIME_FORMAT_PM
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTimeFormat(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetTimeFormat(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMBR, RTC_ALRMBR_PM));
|
||||
}
|
||||
@ -2452,7 +2462,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetHour(RTC_TypeDef *RTCx, uint32_t Hours)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetHour(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetHour(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMBR, (RTC_ALRMBR_HT | RTC_ALRMBR_HU))) >> RTC_ALRMBR_HU_Pos);
|
||||
}
|
||||
@ -2480,7 +2490,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetMinute(RTC_TypeDef *RTCx, uint32_t Minutes)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMinute(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetMinute(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMBR, (RTC_ALRMBR_MNT | RTC_ALRMBR_MNU))) >> RTC_ALRMBR_MNU_Pos);
|
||||
}
|
||||
@ -2508,7 +2518,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetSecond(RTC_TypeDef *RTCx, uint32_t Seconds)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)((READ_BIT(RTCx->ALRMBR, (RTC_ALRMBR_ST | RTC_ALRMBR_SU))) >> RTC_ALRMBR_SU_Pos);
|
||||
}
|
||||
@ -2580,7 +2590,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetSubSecondMask(RTC_TypeDef *RTCx, uint32_t Ma
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0xF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecondMask(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecondMask(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMBSSR, RTC_ALRMBSSR_MASKSS) >> RTC_ALRMBSSR_MASKSS_Pos);
|
||||
}
|
||||
@ -2603,7 +2613,7 @@ __STATIC_INLINE void LL_RTC_ALMB_SetSubSecond(RTC_TypeDef *RTCx, uint32_t Subsec
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x7FFF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_ALMB_GetSubSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->ALRMBSSR, RTC_ALRMBSSR_SS));
|
||||
}
|
||||
@ -2689,7 +2699,7 @@ __STATIC_INLINE void LL_RTC_TS_SetActiveEdge(RTC_TypeDef *RTCx, uint32_t Edge)
|
||||
* @arg @ref LL_RTC_TIMESTAMP_EDGE_RISING
|
||||
* @arg @ref LL_RTC_TIMESTAMP_EDGE_FALLING
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetActiveEdge(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetActiveEdge(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CR, RTC_CR_TSEDGE));
|
||||
}
|
||||
@ -2702,7 +2712,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetActiveEdge(RTC_TypeDef *RTCx)
|
||||
* @arg @ref LL_RTC_TS_TIME_FORMAT_AM
|
||||
* @arg @ref LL_RTC_TS_TIME_FORMAT_PM
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetTimeFormat(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetTimeFormat(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSTR, RTC_TSTR_PM));
|
||||
}
|
||||
@ -2715,7 +2725,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetTimeFormat(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetHour(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetHour(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSTR, RTC_TSTR_HT | RTC_TSTR_HU) >> RTC_TSTR_HU_Pos);
|
||||
}
|
||||
@ -2728,7 +2738,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetHour(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetMinute(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetMinute(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSTR, RTC_TSTR_MNT | RTC_TSTR_MNU) >> RTC_TSTR_MNU_Pos);
|
||||
}
|
||||
@ -2741,7 +2751,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetMinute(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0x59
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSTR, RTC_TSTR_ST | RTC_TSTR_SU));
|
||||
}
|
||||
@ -2759,7 +2769,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetSecond(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Combination of hours, minutes and seconds.
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetTime(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetTime(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSTR,
|
||||
RTC_TSTR_HT | RTC_TSTR_HU | RTC_TSTR_MNT | RTC_TSTR_MNU | RTC_TSTR_ST | RTC_TSTR_SU));
|
||||
@ -2778,7 +2788,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetTime(RTC_TypeDef *RTCx)
|
||||
* @arg @ref LL_RTC_WEEKDAY_SATURDAY
|
||||
* @arg @ref LL_RTC_WEEKDAY_SUNDAY
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetWeekDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetWeekDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSDR, RTC_TSDR_WDU) >> RTC_TSDR_WDU_Pos);
|
||||
}
|
||||
@ -2803,7 +2813,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetWeekDay(RTC_TypeDef *RTCx)
|
||||
* @arg @ref LL_RTC_MONTH_NOVEMBER
|
||||
* @arg @ref LL_RTC_MONTH_DECEMBER
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetMonth(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetMonth(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSDR, RTC_TSDR_MT | RTC_TSDR_MU) >> RTC_TSDR_MU_Pos);
|
||||
}
|
||||
@ -2816,7 +2826,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetMonth(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x01 and Max_Data=0x31
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetDay(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetDay(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSDR, RTC_TSDR_DT | RTC_TSDR_DU));
|
||||
}
|
||||
@ -2833,7 +2843,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetDay(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Combination of Weekday, Day and Month
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetDate(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetDate(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSDR, RTC_TSDR_WDU | RTC_TSDR_MT | RTC_TSDR_MU | RTC_TSDR_DT | RTC_TSDR_DU));
|
||||
}
|
||||
@ -2844,7 +2854,7 @@ __STATIC_INLINE uint32_t LL_RTC_TS_GetDate(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0xFFFF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetSubSecond(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TS_GetSubSecond(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TSSSR, RTC_TSSSR_SS));
|
||||
}
|
||||
@ -2916,13 +2926,14 @@ __STATIC_INLINE void LL_RTC_TS_DisableOnTamper(RTC_TypeDef *RTCx)
|
||||
/**
|
||||
* @brief Enable RTC_TAMPx input detection
|
||||
* @rmtoll TAMPCR TAMP1E LL_RTC_TAMPER_Enable
|
||||
* TAMPCR TAMP2E LL_RTC_TAMPER_Enable
|
||||
* TAMPCR TAMP2E LL_RTC_TAMPER_Enable (*)
|
||||
* TAMPCR TAMP3E LL_RTC_TAMPER_Enable
|
||||
* @param RTCx RTC Instance
|
||||
* @param Tamper This parameter can be a combination of the following values:
|
||||
* @arg @ref LL_RTC_TAMPER_1
|
||||
* @arg @ref LL_RTC_TAMPER_2
|
||||
* @arg @ref LL_RTC_TAMPER_2 (*)
|
||||
* @arg @ref LL_RTC_TAMPER_3
|
||||
* (*) Not applicable to all devices.
|
||||
*
|
||||
* @retval None
|
||||
*/
|
||||
@ -2934,13 +2945,14 @@ __STATIC_INLINE void LL_RTC_TAMPER_Enable(RTC_TypeDef *RTCx, uint32_t Tamper)
|
||||
/**
|
||||
* @brief Clear RTC_TAMPx input detection
|
||||
* @rmtoll TAMPCR TAMP1E LL_RTC_TAMPER_Disable
|
||||
* TAMPCR TAMP2E LL_RTC_TAMPER_Disable
|
||||
* TAMPCR TAMP2E LL_RTC_TAMPER_Disable (*)
|
||||
* TAMPCR TAMP3E LL_RTC_TAMPER_Disable
|
||||
* @param RTCx RTC Instance
|
||||
* @param Tamper This parameter can be a combination of the following values:
|
||||
* @arg @ref LL_RTC_TAMPER_1
|
||||
* @arg @ref LL_RTC_TAMPER_2
|
||||
* @arg @ref LL_RTC_TAMPER_2 (*)
|
||||
* @arg @ref LL_RTC_TAMPER_3
|
||||
* (*) Not applicable to all devices.
|
||||
*
|
||||
* @retval None
|
||||
*/
|
||||
@ -2951,6 +2963,8 @@ __STATIC_INLINE void LL_RTC_TAMPER_Disable(RTC_TypeDef *RTCx, uint32_t Tamper)
|
||||
|
||||
/**
|
||||
* @brief Enable Tamper mask flag
|
||||
* @note This API shall not be used with STM32H723/33, STM32H725/35 and STM32H730 devices,
|
||||
* and has been kept for backward compatibility.
|
||||
* @note Associated Tamper IT must not enabled when tamper mask is set.
|
||||
* @rmtoll TAMPCR TAMP1MF LL_RTC_TAMPER_EnableMask
|
||||
* TAMPCR TAMP2MF LL_RTC_TAMPER_EnableMask
|
||||
@ -2970,6 +2984,8 @@ __STATIC_INLINE void LL_RTC_TAMPER_EnableMask(RTC_TypeDef *RTCx, uint32_t Mask)
|
||||
|
||||
/**
|
||||
* @brief Disable Tamper mask flag
|
||||
* @note This API shall not be used with STM32H723/33, STM32H725/35 and STM32H730 devices,
|
||||
* and has been kept for backward compatibility.
|
||||
* @rmtoll TAMPCR TAMP1MF LL_RTC_TAMPER_DisableMask
|
||||
* TAMPCR TAMP2MF LL_RTC_TAMPER_DisableMask
|
||||
* TAMPCR TAMP3MF LL_RTC_TAMPER_DisableMask
|
||||
@ -2988,6 +3004,8 @@ __STATIC_INLINE void LL_RTC_TAMPER_DisableMask(RTC_TypeDef *RTCx, uint32_t Mask)
|
||||
|
||||
/**
|
||||
* @brief Enable backup register erase after Tamper event detection
|
||||
* @note This API shall not be used with STM32H723/33, STM32H725/35 and STM32H730 devices,
|
||||
* and has been kept for backward compatibility.
|
||||
* @rmtoll TAMPCR TAMP1NOERASE LL_RTC_TAMPER_EnableEraseBKP
|
||||
* TAMPCR TAMP2NOERASE LL_RTC_TAMPER_EnableEraseBKP
|
||||
* TAMPCR TAMP3NOERASE LL_RTC_TAMPER_EnableEraseBKP
|
||||
@ -3006,6 +3024,8 @@ __STATIC_INLINE void LL_RTC_TAMPER_EnableEraseBKP(RTC_TypeDef *RTCx, uint32_t Ta
|
||||
|
||||
/**
|
||||
* @brief Disable backup register erase after Tamper event detection
|
||||
* @note This API shall not be used with STM32H723/33, STM32H725/35 and STM32H730 devices,
|
||||
* and has been kept for backward compatibility.
|
||||
* @rmtoll TAMPCR TAMP1NOERASE LL_RTC_TAMPER_DisableEraseBKP
|
||||
* TAMPCR TAMP2NOERASE LL_RTC_TAMPER_DisableEraseBKP
|
||||
* TAMPCR TAMP3NOERASE LL_RTC_TAMPER_DisableEraseBKP
|
||||
@ -3070,7 +3090,7 @@ __STATIC_INLINE void LL_RTC_TAMPER_SetPrecharge(RTC_TypeDef *RTCx, uint32_t Dura
|
||||
* @arg @ref LL_RTC_TAMPER_DURATION_4RTCCLK
|
||||
* @arg @ref LL_RTC_TAMPER_DURATION_8RTCCLK
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetPrecharge(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPPRCH));
|
||||
}
|
||||
@ -3101,7 +3121,7 @@ __STATIC_INLINE void LL_RTC_TAMPER_SetFilterCount(RTC_TypeDef *RTCx, uint32_t Fi
|
||||
* @arg @ref LL_RTC_TAMPER_FILTER_4SAMPLE
|
||||
* @arg @ref LL_RTC_TAMPER_FILTER_8SAMPLE
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetFilterCount(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPFLT));
|
||||
}
|
||||
@ -3140,7 +3160,7 @@ __STATIC_INLINE void LL_RTC_TAMPER_SetSamplingFreq(RTC_TypeDef *RTCx, uint32_t S
|
||||
* @arg @ref LL_RTC_TAMPER_SAMPLFREQDIV_512
|
||||
* @arg @ref LL_RTC_TAMPER_SAMPLFREQDIV_256
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPFREQ));
|
||||
}
|
||||
@ -3148,13 +3168,14 @@ __STATIC_INLINE uint32_t LL_RTC_TAMPER_GetSamplingFreq(RTC_TypeDef *RTCx)
|
||||
/**
|
||||
* @brief Enable Active level for Tamper input
|
||||
* @rmtoll TAMPCR TAMP1TRG LL_RTC_TAMPER_EnableActiveLevel
|
||||
* TAMPCR TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel
|
||||
* TAMPCR TAMP2TRG LL_RTC_TAMPER_EnableActiveLevel (*)
|
||||
* TAMPCR TAMP3TRG LL_RTC_TAMPER_EnableActiveLevel
|
||||
* @param RTCx RTC Instance
|
||||
* @param Tamper This parameter can be a combination of the following values:
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP1
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP2
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP2 (*)
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP3
|
||||
* (*) Not applicable to all devices.
|
||||
*
|
||||
* @retval None
|
||||
*/
|
||||
@ -3166,13 +3187,14 @@ __STATIC_INLINE void LL_RTC_TAMPER_EnableActiveLevel(RTC_TypeDef *RTCx, uint32_t
|
||||
/**
|
||||
* @brief Disable Active level for Tamper input
|
||||
* @rmtoll TAMPCR TAMP1TRG LL_RTC_TAMPER_DisableActiveLevel
|
||||
* TAMPCR TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel
|
||||
* TAMPCR TAMP2TRG LL_RTC_TAMPER_DisableActiveLevel (*)
|
||||
* TAMPCR TAMP3TRG LL_RTC_TAMPER_DisableActiveLevel
|
||||
* @param RTCx RTC Instance
|
||||
* @param Tamper This parameter can be a combination of the following values:
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP1
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP2
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP2 (*)
|
||||
* @arg @ref LL_RTC_TAMPER_ACTIVELEVEL_TAMP3
|
||||
* (*) Not applicable to all devices.
|
||||
*
|
||||
* @retval None
|
||||
*/
|
||||
@ -3490,7 +3512,7 @@ __STATIC_INLINE void LL_RTC_WAKEUP_Disable(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_IsEnabled(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_IsEnabled(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CR, RTC_CR_WUTE) == (RTC_CR_WUTE)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3527,7 +3549,7 @@ __STATIC_INLINE void LL_RTC_WAKEUP_SetClock(RTC_TypeDef *RTCx, uint32_t WakeupCl
|
||||
* @arg @ref LL_RTC_WAKEUPCLOCK_CKSPRE
|
||||
* @arg @ref LL_RTC_WAKEUPCLOCK_CKSPRE_WUT
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetClock(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetClock(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CR, RTC_CR_WUCKSEL));
|
||||
}
|
||||
@ -3551,7 +3573,7 @@ __STATIC_INLINE void LL_RTC_WAKEUP_SetAutoReload(RTC_TypeDef *RTCx, uint32_t Val
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0xFFFF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetAutoReload(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_WAKEUP_GetAutoReload(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->WUTR, RTC_WUTR_WUT));
|
||||
}
|
||||
@ -3656,7 +3678,7 @@ __STATIC_INLINE void LL_RTC_BAK_SetRegister(RTC_TypeDef *RTCx, uint32_t BackupRe
|
||||
* @arg @ref LL_RTC_BKP_DR31
|
||||
* @retval Value between Min_Data=0x00 and Max_Data=0xFFFFFFFF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_BAK_GetRegister(RTC_TypeDef *RTCx, uint32_t BackupRegister)
|
||||
__STATIC_INLINE uint32_t LL_RTC_BAK_GetRegister(const RTC_TypeDef *RTCx, uint32_t BackupRegister)
|
||||
{
|
||||
uint32_t tmp;
|
||||
|
||||
@ -3707,7 +3729,7 @@ __STATIC_INLINE uint32_t LL_RTC_BAK_GetRegister(RTC_TypeDef *RTCx, uint32_t Back
|
||||
* @param Data Value between Min_Data=0x00 and Max_Data=0xFFFFFFFF
|
||||
* @retval None
|
||||
*/
|
||||
__STATIC_INLINE void LL_RTC_BKP_SetRegister(TAMP_TypeDef *TAMPx, uint32_t BackupRegister, uint32_t Data)
|
||||
__STATIC_INLINE void LL_RTC_BKP_SetRegister(const TAMP_TypeDef *TAMPx, uint32_t BackupRegister, uint32_t Data)
|
||||
{
|
||||
uint32_t tmp;
|
||||
|
||||
@ -3805,7 +3827,7 @@ __STATIC_INLINE void LL_RTC_CAL_SetOutputFreq(RTC_TypeDef *RTCx, uint32_t Freque
|
||||
* @arg @ref LL_RTC_CALIB_OUTPUT_1HZ
|
||||
* @arg @ref LL_RTC_CALIB_OUTPUT_512HZ
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CR, RTC_CR_COE | RTC_CR_COSEL));
|
||||
}
|
||||
@ -3832,7 +3854,7 @@ __STATIC_INLINE void LL_RTC_CAL_SetPulse(RTC_TypeDef *RTCx, uint32_t Pulse)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_IsPulseInserted(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_IsPulseInserted(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CALR, RTC_CALR_CALP) == (RTC_CALR_CALP)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3865,7 +3887,7 @@ __STATIC_INLINE void LL_RTC_CAL_SetPeriod(RTC_TypeDef *RTCx, uint32_t Period)
|
||||
* @arg @ref LL_RTC_CALIB_PERIOD_16SEC
|
||||
* @arg @ref LL_RTC_CALIB_PERIOD_8SEC
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CALR, RTC_CALR_CALW8 | RTC_CALR_CALW16));
|
||||
}
|
||||
@ -3890,7 +3912,7 @@ __STATIC_INLINE void LL_RTC_CAL_SetMinus(RTC_TypeDef *RTCx, uint32_t CalibMinus)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval Value between Min_Data=0x00 and Max_Data= 0x1FF
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return (uint32_t)(READ_BIT(RTCx->CALR, RTC_CALR_CALM));
|
||||
}
|
||||
@ -3911,7 +3933,7 @@ __STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ITS(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ITS(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_ITSF) == (RTC_ISR_ITSF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3922,7 +3944,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ITS(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RECALP(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RECALP(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_RECALPF) == (RTC_ISR_RECALPF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3933,21 +3955,23 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RECALP(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP3(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP3(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_TAMP3F) == (RTC_ISR_TAMP3F)) ? 1UL : 0UL);
|
||||
}
|
||||
|
||||
#if defined(RTC_TAMPER2_SUPPORT)
|
||||
/**
|
||||
* @brief Get RTC_TAMP2 detection flag
|
||||
* @rmtoll ISR TAMP2F LL_RTC_IsActiveFlag_TAMP2
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_TAMP2F) == (RTC_ISR_TAMP2F)) ? 1UL : 0UL);
|
||||
}
|
||||
#endif /* RTC_TAMPER2_SUPPORT */
|
||||
|
||||
/**
|
||||
* @brief Get RTC_TAMP1 detection flag
|
||||
@ -3955,7 +3979,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP2(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_TAMP1F) == (RTC_ISR_TAMP1F)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3966,7 +3990,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TAMP1(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSOV(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSOV(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_TSOVF) == (RTC_ISR_TSOVF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3977,7 +4001,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TSOV(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TS(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TS(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_TSF) == (RTC_ISR_TSF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3988,7 +4012,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_TS(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUT(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUT(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_WUTF) == (RTC_ISR_WUTF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -3999,7 +4023,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUT(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRB(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRB(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_ALRBF) == (RTC_ISR_ALRBF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4010,7 +4034,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRB(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRA(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRA(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_ALRAF) == (RTC_ISR_ALRAF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4037,6 +4061,7 @@ __STATIC_INLINE void LL_RTC_ClearFlag_TAMP3(RTC_TypeDef *RTCx)
|
||||
WRITE_REG(RTCx->ISR, (~((RTC_ISR_TAMP3F | RTC_ISR_INIT) & 0x0000FFFFU) | (RTCx->ISR & RTC_ISR_INIT)));
|
||||
}
|
||||
|
||||
#if defined(RTC_TAMPER2_SUPPORT)
|
||||
/**
|
||||
* @brief Clear RTC_TAMP2 detection flag
|
||||
* @rmtoll ISR TAMP2F LL_RTC_ClearFlag_TAMP2
|
||||
@ -4047,6 +4072,7 @@ __STATIC_INLINE void LL_RTC_ClearFlag_TAMP2(RTC_TypeDef *RTCx)
|
||||
{
|
||||
WRITE_REG(RTCx->ISR, (~((RTC_ISR_TAMP2F | RTC_ISR_INIT) & 0x0000FFFFU) | (RTCx->ISR & RTC_ISR_INIT)));
|
||||
}
|
||||
#endif /* RTC_TAMPER2_SUPPORT */
|
||||
|
||||
/**
|
||||
* @brief Clear RTC_TAMP1 detection flag
|
||||
@ -4120,7 +4146,7 @@ __STATIC_INLINE void LL_RTC_ClearFlag_ALRA(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INIT(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INIT(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_INITF) == (RTC_ISR_INITF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4131,7 +4157,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INIT(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RS(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_RS(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_RSF) == (RTC_ISR_RSF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4153,7 +4179,7 @@ __STATIC_INLINE void LL_RTC_ClearFlag_RS(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INITS(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INITS(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_INITS) == (RTC_ISR_INITS)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4164,7 +4190,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_INITS(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_SHP(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_SHP(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_SHPF) == (RTC_ISR_SHPF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4175,7 +4201,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_SHP(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUTW(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUTW(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_WUTWF) == (RTC_ISR_WUTWF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4186,7 +4212,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_WUTW(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRBW(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRBW(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_ALRBWF) == (RTC_ISR_ALRBWF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4197,7 +4223,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRBW(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRAW(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsActiveFlag_ALRAW(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->ISR, RTC_ISR_ALRAWF) == (RTC_ISR_ALRAWF)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4706,6 +4732,7 @@ __STATIC_INLINE void LL_RTC_DisableIT_ALRA(RTC_TypeDef *RTCx)
|
||||
}
|
||||
|
||||
#if !defined(TAMP)
|
||||
#if defined(RTC_TAMPxIE_SUPPORT)
|
||||
/**
|
||||
* @brief Enable Tamper 3 interrupt
|
||||
* @rmtoll TAMPCR TAMP3IE LL_RTC_EnableIT_TAMP3
|
||||
@ -4728,6 +4755,7 @@ __STATIC_INLINE void LL_RTC_DisableIT_TAMP3(RTC_TypeDef *RTCx)
|
||||
CLEAR_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMP3IE);
|
||||
}
|
||||
|
||||
#if defined(RTC_TAMPER2_SUPPORT)
|
||||
/**
|
||||
* @brief Enable Tamper 2 interrupt
|
||||
* @rmtoll TAMPCR TAMP2IE LL_RTC_EnableIT_TAMP2
|
||||
@ -4749,6 +4777,7 @@ __STATIC_INLINE void LL_RTC_DisableIT_TAMP2(RTC_TypeDef *RTCx)
|
||||
{
|
||||
CLEAR_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMP2IE);
|
||||
}
|
||||
#endif /* RTC_TAMPER2_SUPPORT */
|
||||
|
||||
/**
|
||||
* @brief Enable Tamper 1 interrupt
|
||||
@ -4771,6 +4800,7 @@ __STATIC_INLINE void LL_RTC_DisableIT_TAMP1(RTC_TypeDef *RTCx)
|
||||
{
|
||||
CLEAR_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMP1IE);
|
||||
}
|
||||
#endif /* RTC_TAMPxIE_SUPPORT */
|
||||
|
||||
/**
|
||||
* @brief Enable all Tamper Interrupt
|
||||
@ -4801,7 +4831,7 @@ __STATIC_INLINE void LL_RTC_DisableIT_TAMP(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TS(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TS(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CR, RTC_CR_TSIE) == (RTC_CR_TSIE)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4812,7 +4842,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TS(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_WUT(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_WUT(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CR, RTC_CR_WUTIE) == (RTC_CR_WUTIE)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4823,7 +4853,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_WUT(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRB(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRB(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CR, RTC_CR_ALRBIE) == (RTC_CR_ALRBIE)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4834,19 +4864,20 @@ __STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRB(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRA(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_ALRA(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->CR, RTC_CR_ALRAIE) == (RTC_CR_ALRAIE)) ? 1UL : 0UL);
|
||||
}
|
||||
|
||||
#if !defined(TAMP)
|
||||
#if defined(RTC_TAMPxIE_SUPPORT)
|
||||
/**
|
||||
* @brief Check if Tamper 3 interrupt is enabled or not
|
||||
* @rmtoll TAMPCR TAMP3IE LL_RTC_IsEnabledIT_TAMP3
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP3(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP3(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMP3IE) == (RTC_TAMPCR_TAMP3IE)) ? 1UL : 0UL);
|
||||
}
|
||||
@ -4857,7 +4888,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP3(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP2(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP2(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMP2IE) == (RTC_TAMPCR_TAMP2IE)) ? 1UL : 0UL);
|
||||
|
||||
@ -4869,10 +4900,11 @@ __STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP2(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP1(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP1(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMP1IE) == (RTC_TAMPCR_TAMP1IE)) ? 1UL : 0UL);
|
||||
}
|
||||
#endif /* RTC_TAMPxIE_SUPPORT */
|
||||
|
||||
/**
|
||||
* @brief Check if all the TAMPER interrupts are enabled or not
|
||||
@ -4880,7 +4912,7 @@ __STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP1(RTC_TypeDef *RTCx)
|
||||
* @param RTCx RTC Instance
|
||||
* @retval State of bit (1 or 0).
|
||||
*/
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP(RTC_TypeDef *RTCx)
|
||||
__STATIC_INLINE uint32_t LL_RTC_IsEnabledIT_TAMP(const RTC_TypeDef *RTCx)
|
||||
{
|
||||
return ((READ_BIT(RTCx->TAMPCR, RTC_TAMPCR_TAMPIE) == (RTC_TAMPCR_TAMPIE)) ? 1UL : 0UL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user