#ifndef __USER_FLASH_H #define __USER_FLASH_H #include "main.h" enum LORA_RECV_CONFIG{ LEVEL_0 = 0, LEVEL_1 = 1, LEVEL_2 = 2, LEVEL_3 = 3, LEVEL_4 = 4, LEVEL_5 = 5, LEVEL_6 = 6, LEVEL_7 = 7, LEVEL_8 = 8 }; #define INTERVAL_TIME_LEVEL_0 6 //30s #define INTERVAL_TIME_LEVEL_1 12 //60s #define INTERVAL_TIME_LEVEL_2 36 //180s #define INTERVAL_TIME_LEVEL_3 60 //5min #define INTERVAL_TIME_LEVEL_4 120 //10min #define INTERVAL_TIME_LEVEL_5 180 //15min #define INTERVAL_TIME_LEVEL_6 360 //30min #define INTERVAL_TIME_LEVEL_7 720 //60min #define INTERVAL_TIME_LEVEL_8 255 uint8_t save_config(uint16_t config); uint16_t read_config(void); #endif /* __USER_FLASH_H */