Commit 3b3a9d2f authored by 李鑫3's avatar 李鑫3

feat:GTX400检测台

parent ac97d7f2
...@@ -84,4 +84,6 @@ extern uint8_t HWout[8]; ...@@ -84,4 +84,6 @@ extern uint8_t HWout[8];
extern const uint32_t diagKeyP1; extern const uint32_t diagKeyP1;
extern const uint32_t diagKeyP2; extern const uint32_t diagKeyP2;
extern uint16_t Light_Sensing(uint8_t bytH, uint8_t bytL); extern uint16_t Light_Sensing(uint8_t bytH, uint8_t bytL);
extern void PMPRead(void);
extern uint8_t zhenduanstep2;
#endif #endif
...@@ -11,9 +11,9 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) ...@@ -11,9 +11,9 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
key_left =1; // key_left =1;
Gen_TimeDelay ( 100 *1000,50U); // Gen_TimeDelay ( 100 *1000,50U);
key_left =0; // key_left =0;
} }
...@@ -167,7 +167,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent) ...@@ -167,7 +167,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{ {
if(MENU_CHECK_STEP==2) if(MENU_CHECK_STEP==2)
{ {
LINE_RESET=1; key_left=1;
shortflag=1; shortflag=1;
} }
...@@ -177,7 +177,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent) ...@@ -177,7 +177,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{ {
if(MENU_CHECK_STEP==2) if(MENU_CHECK_STEP==2)
{ {
LINE_RESET=1; key_left=1;
longflag=1; longflag=1;
} }
......
...@@ -287,20 +287,22 @@ else ...@@ -287,20 +287,22 @@ else
if(longflag == 1) if(longflag == 1)
{ {
// key_left=1;
queren_delay++; queren_delay++;
if(queren_delay==25) if(queren_delay==25)
{ {
LINE_RESET=0; // key_left=0;
queren_delay=0; queren_delay=0;
longflag=0; longflag=0;
} }
} }
else if(shortflag==1) else if(shortflag==1)
{ {
// key_left=1;
queren_delay2++; queren_delay2++;
if(queren_delay2==10) if(queren_delay2==10)
{ {
LINE_RESET=0; // key_left=0;
queren_delay2=0; queren_delay2=0;
shortflag=0; shortflag=0;
} }
...@@ -363,7 +365,7 @@ else ...@@ -363,7 +365,7 @@ else
if((MENU_CHECK_STEP==8) || (MENU_CHECK_STEP==0)) if(MENU_CHECK_STEP==6)
{ {
key_left=1; key_left=1;
leftad2++; leftad2++;
...@@ -377,7 +379,7 @@ else ...@@ -377,7 +379,7 @@ else
} }
if(MENU_CHECK_STEP==8) if(MENU_CHECK_STEP==6)
{ {
key_right=1; key_right=1;
rightadd++; rightadd++;
...@@ -392,22 +394,22 @@ else ...@@ -392,22 +394,22 @@ else
} }
if((MENU_CHECK_STEP==6) || (MENU_CHECK_STEP==7)) // if((MENU_CHECK_STEP==6) || (MENU_CHECK_STEP==7))
{ // {
if( shoubing == 1) // if( shoubing == 1)
{ // {
key_right=1; // key_right=1;
delay_d++; // delay_d++;
if(delay_d==30) // if(delay_d==30)
{ // {
key_right=0; // key_right=0;
delay_d=0; // delay_d=0;
shoubing=0; // shoubing=0;
} // }
} // }
} // }
// if((rightflg==1) && (leftflg==1)) // if((rightflg==1) && (leftflg==1))
// { // {
...@@ -486,36 +488,6 @@ else ...@@ -486,36 +488,6 @@ else
} }
} }
else if((MENU_CHECK_STEP==5) &&(igonoff ==4)) else if((MENU_CHECK_STEP==5) &&(igonoff ==4))
{
delay++;
// POWER_CTRL_KL30 = 0u; //B+
POWER_CTRL_KL15 = 0u; //KL15
LINE_OUT_cartoon=0;
if(delay==11)
{
// POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15 = 1u; //KL15
LINE_OUT_cartoon=1;
delay=0;
igonoff=5;
}
}
else if((MENU_CHECK_STEP==6) &&(igonoff ==5))
{
delay++;
// POWER_CTRL_KL30 = 0u; //B+
POWER_CTRL_KL15 = 0u; //KL15
LINE_OUT_cartoon=0;
if(delay==11)
{
// POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15 = 1u; //KL15
LINE_OUT_cartoon=1;
delay=0;
igonoff=6;
}
}
else if((MENU_CHECK_STEP==7) &&(igonoff ==6))
{ {
delay++; delay++;
// POWER_CTRL_KL30 = 0u; //B+ // POWER_CTRL_KL30 = 0u; //B+
...@@ -527,10 +499,10 @@ else ...@@ -527,10 +499,10 @@ else
POWER_CTRL_KL15 = 1u; //KL15 POWER_CTRL_KL15 = 1u; //KL15
LINE_OUT_cartoon=1; LINE_OUT_cartoon=1;
delay=0; delay=0;
igonoff=7; igonoff=5;
} }
} }
else if((MENU_CHECK_STEP==8) &&(igonoff ==7)) else if((MENU_CHECK_STEP==6) &&(igonoff ==5))
{ {
delay++; delay++;
// POWER_CTRL_KL30 = 0u; //B+ // POWER_CTRL_KL30 = 0u; //B+
...@@ -542,10 +514,10 @@ else ...@@ -542,10 +514,10 @@ else
POWER_CTRL_KL15 = 1u; //KL15 POWER_CTRL_KL15 = 1u; //KL15
LINE_OUT_cartoon=1; LINE_OUT_cartoon=1;
delay=0; delay=0;
igonoff=8; igonoff=6;
} }
} }
else if((MENU_CHECK_STEP==9) &&(igonoff ==8)) else if((MENU_CHECK_STEP==7) &&(igonoff ==6))
{ {
delay++; delay++;
POWER_CTRL_KL30 = 0u; //B+ POWER_CTRL_KL30 = 0u; //B+
...@@ -560,7 +532,12 @@ else ...@@ -560,7 +532,12 @@ else
igonoff=0; igonoff=0;
} }
} }
if(MENU_CHECK_STEP==7)
{
PMPRead();
}
} }
/*=================================================================*/ /*=================================================================*/
......
This diff is collapsed.
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