#ifndef __BSP_RTC_H__ #define __BSP_RTC_H__ #define RTC_LOG_LVL ELOG_LVL_DEBUG #if !defined(LOG_TAG) #define LOG_TAG "bsp_rtc" #endif #undef LOG_LVL #if defined(RTC_LOG_LVL) #define LOG_LVL RTC_LOG_LVL #endif #include #include "stm32g0xx_hal.h" #include "bsp_date.h" #define FLASH_SPI_CS_ENABLE() HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_RESET) #define FLASH_SPI_CS_DISABLE() HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_SET) extern RTC_HandleTypeDef hrtc; extern struct rtc_time systmtime; #define RTC_AUTO_1_SECOND 1000000 #define RTC_OUTPUTSOURCE_NONE 1000000 void MX_RTC_Init(void); int inter_standby(uint16_t standbytime); void Set_Alarm_A_Wakeup(uint16_t standbytime); void GPIO_Set_Lowpower(void); #endif /* __BSP_RTC_H__ */ /******************* (C) COPYRIGHT 2015-2020 ӲʯǶ��ʽ�����Ŷ� *****END OF FILE****/