You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
744 B
51 lines
744 B
#include "action_process.h"
|
|
#include "sw_timer.h"
|
|
#include "gpio_switch.h"
|
|
#include "gpio_state_led.h"
|
|
#include "gpio_sensor.h"
|
|
#include "eeprom.h"
|
|
#include "buzzer.h"
|
|
#include "segment.h"
|
|
#include "rtc_process.h"
|
|
#include "save_file.h"
|
|
|
|
typedef struct _control_info
|
|
{
|
|
bool isActionRun;
|
|
uint32_t Co2_MaxValue;
|
|
uint32_t Co2_MinValue;
|
|
}CONTROL_INFO;
|
|
|
|
|
|
static CONTROL_INFO Control_Info;
|
|
|
|
|
|
|
|
|
|
|
|
static void Action_Process(void);
|
|
|
|
static void Action_PowerKey_Push(void);
|
|
static void Action_PowerKey_LongPush(void);
|
|
static void Action_Sensor_Read_Process(void);
|
|
|
|
void Action_Initialization(void)
|
|
{
|
|
|
|
SW_Timer_Callback_Register(SW_TIMER_RUN_CONTINUE, 1, Action_Process);
|
|
}
|
|
|
|
|
|
static void Action_Process(void)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|