Commit 862e457e authored by 陈家乐's avatar 陈家乐

🐞 fix:代码评审问题:背光源文件删除无用函数、变量

parent 3a04da4b
......@@ -9,15 +9,15 @@
#define BACK_LIGHT_DAY 1000
#define BACK_LIGHT_NIGHT 600
//_Light g_Light;
uint8_t LED_Turnoff = 0;
uint8_t LED_Turnon = 0;
void BackLight_Init(void)
{
//g_Light.Light_Day = 0XFFFF;
//g_Light.Light_Night = 0XFFFF;
LED_Turnoff = 0;
LED_Turnon = 0;
}
// uint8_t LED_Turnoff = 0;
// uint8_t LED_Turnon = 0;
// void BackLight_Init(void)
// {
// //g_Light.Light_Day = 0XFFFF;
// //g_Light.Light_Night = 0XFFFF;
// LED_Turnoff = 0;
// LED_Turnon = 0;
// }
void BackLight_Process(void)
{
......
......@@ -2,17 +2,17 @@
#define _BACKLIGHT_H_
#include "common.h"
#include "Application.h"
typedef struct
{
uint8_t Duty;
uint8_t Cycle;
uint16_t Light_Night;
uint16_t Light_Day;
} _Light;
//typedef struct
//{
// uint8_t Duty;
// uint8_t Cycle;
// uint16_t Light_Night;
// uint16_t Light_Day;
//} _Light;
extern _Light g_Light;
//extern _Light g_Light;
void BackLight_Init(void);
//void BackLight_Init(void);
void BackLight_Process(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment