/* Checks whether the Tamper Pin Event flag is set or not.  */
FlagStatus BKP_GetFlagStatus(void)
/* Checks whether the Tamper Pin Event flag is set or not.  */
FlagStatus BKP_GetFlagStatus(void)
{
    return ((BKP->CSR & BKP_CSR_TEF) ? SET : RESET);
}