CELIS/APPLICATION/Sleep/Sleep.h

59 lines
903 B
C
Raw Normal View History

/*
* @Description:
* @Version:
* @Author: Arnold
* @Date: 2023-11-24 17:20:20
* @LastEditTime: 2023-11-24 18:45:10
*/
#ifndef __User_H_
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include "led.h"
#include "chipid.h"
#include "delay.h"
#include "sys.h"
#include "timer.h"
#include "usart.h"
#include "can.h"
#include "adc.h"
#include "ADS1015.h"
#include "dc300.h"
#include "24cxx.h"
#include "sd.h"
#include "common.h"
#include "stm32f10x_exti.h"
#include "stm32f10x_pwr.h"
#include "stm32f10x_rtc.h"
#include "app_pwr_manage.h"
#include "spi.h"
enum MCU_Sleep_State
{
ActiveState,/* <20><>Ծ״̬ */
standby_condition,/* <20>ȴ<EFBFBD>״̬ */
Go_to_sleep,/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
};
void PwrManageWorkPlus(void);
void RTC_Init(void);
#define MAX_Scount 300 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
// struct MCU_Sleep
// {
// enum MCU_Sleep_State MCU_PowerState;/* MCU<43>״̬ */
// };
#endif