48 #define BKP_OFFSET (BKP_BASE - PERIPH_BASE) 53 #define CR_OFFSET (BKP_OFFSET + 0x30) 54 #define TPAL_BitNumber 0x01 55 #define CR_TPAL_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (TPAL_BitNumber * 4)) 58 #define TPE_BitNumber 0x00 59 #define CR_TPE_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (TPE_BitNumber * 4)) 64 #define CSR_OFFSET (BKP_OFFSET + 0x34) 65 #define TPIE_BitNumber 0x02 66 #define CSR_TPIE_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (TPIE_BitNumber * 4)) 69 #define TIF_BitNumber 0x09 70 #define CSR_TIF_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (TIF_BitNumber * 4)) 73 #define TEF_BitNumber 0x08 74 #define CSR_TEF_BB (PERIPH_BB_BASE + (CSR_OFFSET * 32) + (TEF_BitNumber * 4)) 79 #define RTCCR_CAL_MASK ((uint16_t)0xFF80) 80 #define RTCCR_MASK ((uint16_t)0xFC7F) 190 tmpreg |= BKP_RTCOutputSource;
210 tmpreg |= CalibrationValue;
224 __IO uint32_t tmp = 0;
232 *(
__IO uint32_t *) tmp = Data;
243 __IO uint32_t tmp = 0;
251 return (*(
__IO uint16_t *) tmp);
uint16_t BKP_ReadBackupRegister(uint16_t BKP_DR)
Reads data from the specified Data Backup Register.
void BKP_TamperPinLevelConfig(uint16_t BKP_TamperPinLevel)
Configures the Tamper Pin active level.
void BKP_RTCOutputConfig(uint16_t BKP_RTCOutputSource)
Select the RTC output source to output on the Tamper pin.
void BKP_ITConfig(FunctionalState NewState)
Enables or disables the Tamper Pin Interrupt.
void assert_param(int val)
This file contains all the functions prototypes for the BKP firmware library.
void RCC_BackupResetCmd(FunctionalState NewState)
Forces or releases the Backup domain reset.
#define IS_FUNCTIONAL_STATE(STATE)
void BKP_TamperPinCmd(FunctionalState NewState)
Enables or disables the Tamper Pin activation.
FlagStatus BKP_GetFlagStatus(void)
Checks whether the Tamper Pin Event flag is set or not.
void BKP_DeInit(void)
Deinitializes the BKP peripheral registers to their default reset values.
#define IS_BKP_TAMPER_PIN_LEVEL(LEVEL)
#define IS_BKP_CALIBRATION_VALUE(VALUE)
This file contains all the functions prototypes for the RCC firmware library.
#define IS_BKP_RTC_OUTPUT_SOURCE(SOURCE)
void BKP_ClearFlag(void)
Clears Tamper Pin Event pending flag.
ITStatus BKP_GetITStatus(void)
Checks whether the Tamper Pin Interrupt has occurred or not.
void BKP_SetRTCCalibrationValue(uint8_t CalibrationValue)
Sets RTC Clock Calibration value.
void BKP_ClearITPendingBit(void)
Clears Tamper Pin Interrupt pending bit.
void BKP_WriteBackupRegister(uint16_t BKP_DR, uint16_t Data)
Writes user data to the specified Data Backup Register.