Commit f81483f8 authored by hu's avatar hu

调整图片BUG,增加按键长按功能

parent c3a8dee1
......@@ -352,168 +352,11 @@ void Key_Operation_Up(Key_Event_en_t enKeyEvent)
}
else if (enKeyEvent == KEY_EVENT_LONG_PRESS_1)
{
MenuFlag.Menu_Key_Time++;
if (MenuFlag.Menu_Key_Time > 10)
{
MenuFlag.Menu_Key_Time = 0;
/*设置日期-年*/
if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_11)
{
User_set_Num.Year++;
if (User_set_Num.Year > 99u)
{
User_set_Num.Year = 0u;
}
}
/*设置日期-月*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_12)
{
User_set_Num.Month++;
if (User_set_Num.Month > 12u)
{
User_set_Num.Month = 1u;
}
}
/*设置日期-日*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_13)
{
User_set_Num.Date++;
switch (User_set_Num.Month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
if (User_set_Num.Date > 31u)
{
User_set_Num.Date = 1u;
}
break;
case 4:
case 6:
case 9:
case 11:
if (User_set_Num.Date > 30u)
{
User_set_Num.Date = 1u;
}
break;
case 2:
if (((User_set_Num.Year % 4u == 0u) && (User_set_Num.Year % 100 != 0u)) || (User_set_Num.Year % 400u == 0u))
{
User_set_Num.LeapYear = 1u;
}
else
{
User_set_Num.LeapYear = 0u;
}
if (User_set_Num.LeapYear)
{
if (User_set_Num.Date > 29u)
{
User_set_Num.Date = 1u;
}
}
else
{
if (User_set_Num.Date > 28u)
{
User_set_Num.Date = 1u;
}
}
break;
default:
break;
}
}
/*设置时间-时*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_21)
{
User_set_Num.Hour++;
if (User_set_Num.Hour > 23u)
{
User_set_Num.Hour = 0u;
}
}
/*设置时间-分*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_22)
{
User_set_Num.Minute++;
if (User_set_Num.Minute > 59u)
{
User_set_Num.Minute = 0u;
}
}
/*高速路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_1)
{
if (User_set_Num.User_Gsl < 110)
{
User_set_Num.User_Gsl++;
}
else if (User_set_Num.User_Gsl == 0xFF)
{
User_set_Num.User_Gsl = 20;
}
}
/*一般路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_2)
{
if (User_set_Num.User_Ybl < 110)
{
User_set_Num.User_Ybl++;
}
else if (User_set_Num.User_Ybl == 0xFF)
{
User_set_Num.User_Ybl = 20;
}
}
/*发动机转速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_3)
{
if (User_set_Num.User_Speed < 99)
{
User_set_Num.User_Speed++;
}
else if (User_set_Num.User_Speed == 0xFF)
{
User_set_Num.User_Speed = 0;
}
}
/*急加速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_4)
{
if (User_set_Num.User_JADD < 99)
{
User_set_Num.User_JADD++;
}
else if (User_set_Num.User_JADD == 0xFF)
{
User_set_Num.User_JADD = 5;
}
}
/*急减速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_5)
{
if (User_set_Num.User_JSUB < 99)
{
User_set_Num.User_JSUB++;
}
else if (User_set_Num.User_JSUB == 0xFF)
{
User_set_Num.User_JSUB = 5;
}
}
}
MenuFlag.Menu_Key_Up_Flag = 1;
}
else if (enKeyEvent == KEY_EVENT_NONE)
{
MenuFlag.Menu_Key_Up_Flag = 0;
}
}
/*----无车速,有报警----*/
......@@ -581,6 +424,177 @@ void Key_Operation_Up(Key_Event_en_t enKeyEvent)
}
}
void Menu_Key_Up_Dsp(void)
{
if ( MenuFlag.Menu_Key_Up_Flag == 1)
{
/*设置日期-年*/
if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_11)
{
User_set_Num.Year++;
if (User_set_Num.Year > 99u)
{
User_set_Num.Year = 0u;
}
}
/*设置日期-月*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_12)
{
User_set_Num.Month++;
if (User_set_Num.Month > 12u)
{
User_set_Num.Month = 1u;
}
}
/*设置日期-日*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_13)
{
User_set_Num.Date++;
switch (User_set_Num.Month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
if (User_set_Num.Date > 31u)
{
User_set_Num.Date = 1u;
}
break;
case 4:
case 6:
case 9:
case 11:
if (User_set_Num.Date > 30u)
{
User_set_Num.Date = 1u;
}
break;
case 2:
if (((User_set_Num.Year % 4u == 0u) && (User_set_Num.Year % 100 != 0u)) || (User_set_Num.Year % 400u == 0u))
{
User_set_Num.LeapYear = 1u;
}
else
{
User_set_Num.LeapYear = 0u;
}
if (User_set_Num.LeapYear)
{
if (User_set_Num.Date > 29u)
{
User_set_Num.Date = 1u;
}
}
else
{
if (User_set_Num.Date > 28u)
{
User_set_Num.Date = 1u;
}
}
break;
default:
break;
}
}
/*设置时间-时*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_21)
{
User_set_Num.Hour++;
if (User_set_Num.Hour > 23u)
{
User_set_Num.Hour = 0u;
}
}
/*设置时间-分*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_22)
{
User_set_Num.Minute++;
if (User_set_Num.Minute > 59u)
{
User_set_Num.Minute = 0u;
}
}
/*高速路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_1)
{
if (User_set_Num.User_Gsl < 110)
{
User_set_Num.User_Gsl++;
}
else if (User_set_Num.User_Gsl == 0xFF)
{
User_set_Num.User_Gsl = 20;
}
}
/*一般路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_2)
{
if (User_set_Num.User_Ybl < 110)
{
User_set_Num.User_Ybl++;
}
else if (User_set_Num.User_Ybl == 0xFF)
{
User_set_Num.User_Ybl = 20;
}
}
/*发动机转速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_3)
{
if (User_set_Num.User_Speed < 99)
{
User_set_Num.User_Speed++;
}
else if (User_set_Num.User_Speed == 0xFF)
{
User_set_Num.User_Speed = 0;
}
}
/*急加速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_4)
{
if (User_set_Num.User_JADD < 99)
{
User_set_Num.User_JADD++;
}
else if (User_set_Num.User_JADD == 0xFF)
{
User_set_Num.User_JADD = 5;
}
}
/*急减速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_5)
{
if (User_set_Num.User_JSUB < 99)
{
User_set_Num.User_JSUB++;
}
else if (User_set_Num.User_JSUB == 0xFF)
{
User_set_Num.User_JSUB = 5;
}
}
else
{
;
}
}
else
{
;
}
}
/*******************************DOWN***********************************************
Function: Key_Operation_Down
Description:
......@@ -917,171 +931,11 @@ void Key_Operation_Down(Key_Event_en_t enKeyEvent)
}
else if (enKeyEvent == KEY_EVENT_LONG_PRESS_1)
{
MenuFlag.Menu_Key_Time++;
if (MenuFlag.Menu_Key_Time > 10)
{
MenuFlag.Menu_Key_Time = 0;
/*设置日期-年*/
if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_11)
{
if (User_set_Num.Year > 0u)
{
User_set_Num.Year--;
}
else
{
User_set_Num.Year = 99u;
}
}
/*设置日期-月*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_12)
{
if (User_set_Num.Month > 1u)
{
User_set_Num.Month--;
}
else
{
User_set_Num.Month = 12u;
}
}
/*设置日期-日*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_13)
{
User_set_Num.Date--;
switch (User_set_Num.Month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 31u;
}
break;
case 4:
case 6:
case 9:
case 11:
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 30u;
}
break;
case 2:
if (((User_set_Num.Year % 4u == 0u) && (User_set_Num.Year % 100u != 0u)) || (User_set_Num.Year % 400u == 0u))
{
User_set_Num.LeapYear = 1u;
}
else
{
User_set_Num.LeapYear = 0u;
}
if (User_set_Num.LeapYear)
{
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 29u;
}
}
else
{
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 28u;
}
}
break;
default:
break;
}
}
/*设置时间-时*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_21)
{
if (User_set_Num.Hour > 0u)
{
User_set_Num.Hour--;
}
else
{
User_set_Num.Hour = 23u;
}
}
/*设置时间-分*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_22)
{
if (User_set_Num.Minute > 0u)
{
User_set_Num.Minute--;
}
else
{
User_set_Num.Minute = 59u;
}
}
/*高速路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_1)
{
if ((User_set_Num.User_Gsl > 20) && (User_set_Num.User_Gsl <= 110))
{
User_set_Num.User_Gsl--;
}
else
{
User_set_Num.User_Gsl = 0xFF;
}
}
/*一般路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_2)
{
if ((User_set_Num.User_Ybl > 20) && (User_set_Num.User_Ybl <= 110))
{
User_set_Num.User_Ybl--;
}
else
{
User_set_Num.User_Ybl = 0xFF;
}
}
/*发动机转速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_3)
{
if ((User_set_Num.User_Speed >= 0) && (User_set_Num.User_Speed <= 99))
{
User_set_Num.User_Speed--;
}
}
/*急加速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_4)
{
if ((User_set_Num.User_JADD > 5) && (User_set_Num.User_JADD <= 99))
{
User_set_Num.User_JADD--;
}
else
{
User_set_Num.User_JADD = 0xFF;
}
}
/*急减速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_5)
{
if ((User_set_Num.User_JSUB > 5) && (User_set_Num.User_JSUB <= 99))
{
User_set_Num.User_JSUB--;
}
else
{
User_set_Num.User_JSUB = 0xFF;
}
}
}
MenuFlag.Menu_Key_Down_Flag = 1;
}
else if (enKeyEvent == KEY_EVENT_NONE)
{
MenuFlag.Menu_Key_Down_Flag = 0;
}
}
else
......@@ -1148,6 +1002,181 @@ void Key_Operation_Down(Key_Event_en_t enKeyEvent)
}
}
}
void Menu_Key_Down_Dsp(void)
{
if (MenuFlag.Menu_Key_Down_Flag == 1)
{
/*设置日期-年*/
if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_11)
{
if (User_set_Num.Year > 0u)
{
User_set_Num.Year--;
}
else
{
User_set_Num.Year = 99u;
}
}
/*设置日期-月*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_12)
{
if (User_set_Num.Month > 1u)
{
User_set_Num.Month--;
}
else
{
User_set_Num.Month = 12u;
}
}
/*设置日期-日*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_13)
{
User_set_Num.Date--;
switch (User_set_Num.Month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 31u;
}
break;
case 4:
case 6:
case 9:
case 11:
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 30u;
}
break;
case 2:
if (((User_set_Num.Year % 4u == 0u) && (User_set_Num.Year % 100u != 0u)) || (User_set_Num.Year % 400u == 0u))
{
User_set_Num.LeapYear = 1u;
}
else
{
User_set_Num.LeapYear = 0u;
}
if (User_set_Num.LeapYear)
{
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 29u;
}
}
else
{
if (User_set_Num.Date < 1u)
{
User_set_Num.Date = 28u;
}
}
break;
default:
break;
}
}
/*设置时间-时*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_21)
{
if (User_set_Num.Hour > 0u)
{
User_set_Num.Hour--;
}
else
{
User_set_Num.Hour = 23u;
}
}
/*设置时间-分*/
else if (bCurMenuIDX == _MN_DSP_LEVEL3_4_MENU_22)
{
if (User_set_Num.Minute > 0u)
{
User_set_Num.Minute--;
}
else
{
User_set_Num.Minute = 59u;
}
}
/*高速路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_1)
{
if ((User_set_Num.User_Gsl > 20) && (User_set_Num.User_Gsl <= 110))
{
User_set_Num.User_Gsl--;
}
else
{
User_set_Num.User_Gsl = 0xFF;
}
}
/*一般路*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_2)
{
if ((User_set_Num.User_Ybl > 20) && (User_set_Num.User_Ybl <= 110))
{
User_set_Num.User_Ybl--;
}
else
{
User_set_Num.User_Ybl = 0xFF;
}
}
/*发动机转速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_3)
{
if ((User_set_Num.User_Speed >= 0) && (User_set_Num.User_Speed <= 99))
{
User_set_Num.User_Speed--;
}
}
/*急加速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_4)
{
if ((User_set_Num.User_JADD > 5) && (User_set_Num.User_JADD <= 99))
{
User_set_Num.User_JADD--;
}
else
{
User_set_Num.User_JADD = 0xFF;
}
}
/*急减速*/
else if (bCurMenuIDX == _MN_DSP_LEVEL4_4_MENU_5)
{
if ((User_set_Num.User_JSUB > 5) && (User_set_Num.User_JSUB <= 99))
{
User_set_Num.User_JSUB--;
}
else
{
User_set_Num.User_JSUB = 0xFF;
}
}
else
{
;
}
}
else
{
;
}
}
/*******************************ENTER***********************************************
Function: Key_Operation_Enter
Description:
......@@ -1982,4 +2011,4 @@ void Key_Wakeup_Init_EXample(void)
stKeyInitTem.enKeyIGNRealStatus = KEY_IG_OFF; //
Key_Wakeup_Init(&u8KeyRamData[0], stKeyAttribute, &stKeyInitTem);
}
\ No newline at end of file
}
......@@ -2,9 +2,9 @@
#define KEY_USER_H__
extern void Key_KL30_Init_EXample(void);
extern void Key_Wakeup_Init_EXample(void);
void Menu_Key_Up_Dsp(void);
void Menu_Key_Down_Dsp(void);
#endif
\ No newline at end of file
......@@ -17,8 +17,8 @@
#define FState_COilTimeOutNum 60u /*3S*/
#define SystemSupplierECUHardwareVersionNumberApp ((uint16_t)(10301)) /*硬件版本号 HV:01.02.02*/
#define SystemSupplierECUSoftwareInformationApp ((uint16_t)(10003)) /*软件版本号 SV:01.01.05*/
#define systemSupplierECUFlashInformationApp ((uint16_t)(2)) /*FLASH版本号 FV:00.14*/
#define SystemSupplierECUSoftwareInformationApp ((uint16_t)(10004)) /*软件版本号 SV:01.01.05*/
#define systemSupplierECUFlashInformationApp ((uint16_t)(6)) /*FLASH版本号 FV:00.14*/
typedef struct
{
......@@ -312,7 +312,7 @@ static const GUIGeneralPopupStruct GUIGeneralPopupTable_En[] =
{CN_Alarm_drive_33_image, EN_Alarm_drive_33_wenzi2, EN_Alarm_drive_33_wenzi1, EN_Alarm_stop_36_wenzi1, EN_Alarm_stop_36_wenzi2}, /*46.第七组 充电异常-请与五十铃公司联系*/
{CN_Alarm_drive_55_image, EN_Alarm_drive_55_wenzi1_1, EN_Alarm_drive_55_wenzi1_2, EN_Alarm_drive_55_wenzi1_1, EN_Alarm_stop_55_wenzi1_2}, /*47. AMT異常-请联系经销商*/
{CN_Alarm_drive_37_image, EN_Alarm_drive_37_wenzi, SpriteSize, EN_Alarm_drive_37_wenzi, SpriteSize}, /*48.第八组 补充燃料-油箱单位*/
{CN_Alarm_drive_56_image, EN_Alarm_drive_56_wenzi1, SpriteSize, EN_Alarm_stop_56_wenzi1_1, EN_Alarm_stop_56_wenzi1_2}, /*49. AMT过热-选择合适的档位*/
{CN_Alarm_drive_56_image, EN_Alarm_drive_56_wenzi1, SpriteSize, EN_Alarm_stop_56_wenzi1_1, EN_Alarm_stop_43_wenzi2 }, /*49. AMT过热-选择合适的档位*/
{CN_Alarm_drive_56_image, EN_Alarm_drive_56_wenzi2, SpriteSize, EN_Alarm_drive_56_wenzi2, SpriteSize}, /*50. AMT磨耗-离合器磨损*/
{CN_Alarm_drive_33_image, EN_Alarm_drive_39_wenzi1, SpriteSize, EN_Alarm_drive_39_wenzi1, SpriteSize}, /*51. 低电压报警*/
{CN_Alarm_drive_33_image, EN_Alarm_drive_39_wenzi2, SpriteSize, EN_Alarm_drive_39_wenzi2, SpriteSize}, /*52. 过电压报警*/
......
......@@ -278,15 +278,15 @@ typedef struct
typedef struct
{
uint16_t Key_Menu_Popup_time; /*报警状态持续时间*/
uint8_t Menu_Key_Time; /*按键长按时间记录*/
uint8_t Key_Menu_Popup_Flag; /*报警界面menu按键长按 */
uint8_t Menu_Flag; /*主界面标记*/
uint8_t Menu_Time_Flag; /*从Enter界面确认退出计时*/
uint8_t Menu_Enter_Return; /*进入Enter之前界面*/
uint8_t Menu_Return; /*Enter Return界面切换标记*/
uint16_t Key_Menu_Popup_time; /*报警状态持续时间*/
uint8_t Menu_Key_Time; /*按键长按时间记录*/
uint8_t Key_Menu_Popup_Flag; /*报警界面menu按键长按 */
uint8_t Menu_Popup_Flag; /*界面状态 0-通常 1-报警 2-工厂 3-经销商 4-仪表自我诊断*/
uint8_t Key_MenuTest_Long; /**/
uint8_t Key_MenuTest_ShortNum; /**/
......@@ -297,6 +297,10 @@ typedef struct
uint8_t Meun_Test_Dealer; /*自我诊断模式进入经销商模式标记*/
uint8_t Menu_StaFlag; /**/
uint8_t Menu_Key_Up_Flag;
uint8_t Menu_Key_Down_Flag;
uint16_t reserve; /*预留*/
} _MenuFlag;
EXTERN_MEU_PROCESS _MenuFlag MenuFlag;
......
......@@ -77,7 +77,7 @@ static const SoundAttributeStruct SoundList[SND_INDEX_MAX] =
-------------------------------------------------------------------------------------*/
{/*00 SND_Key_Notremoved */ SND_SRC_Key_Notremoved , SND_TYPE_NORMAL, },
{/* SND_LDWS */ SND_SRC_LDWS , SND_TYPE_NORMAL, },
{/* SND_Collision_Level1*/ SND_SRC_Collision_L1 , SND_TYPE_NORMAL, },
{/* SND_Collision_Level1*/ SND_SRC_Collision_L1 , SND_TYPE_MULTI, },
{/* SND_Collision_Level2*/ SND_SRC_Collision_L2 , SND_TYPE_NORMAL, },
{/* SND_Collision_Level3*/ SND_SRC_Collision_L3 , SND_TYPE_NORMAL, },
{/*01 SND_Braking */ SND_SRC_Braking , SND_TYPE_NORMAL, },
......@@ -93,13 +93,13 @@ static const SoundAttributeStruct SoundList[SND_INDEX_MAX] =
{/*11 SND_DS_SPEED */ SND_SRC_DS_SPEED , SND_TYPE_NORMAL, },
{/*12 SND_ROWS_SPEED */ SND_SRC_ROWS_SPEED , SND_TYPE_NORMAL, },
{/*13 SND_Roll_SPEED */ SND_SRC_Roll_SPEED , SND_TYPE_NORMAL, },
{/*14 SND_EVSC_SPEED */ SND_SRC_EVSC_SPEED , SND_TYPE_NORMAL, },
{/*14 SND_EVSC_SPEED */ SND_SRC_EVSC_SPEED , SND_TYPE_MULTI, },
{/*15 SND_DPD_SPEED1 */ SND_SRC_DPD_SPEED1 , SND_TYPE_NORMAL, },
{/*15 SND_DPD_SPEED2 */ SND_SRC_DPD_SPEED2 , SND_TYPE_NORMAL, },
{/*15 SND_DPD_SPEED4 */ SND_SRC_DPD_SPEED4 , SND_TYPE_NORMAL, },
{/*16 SND_NEES */ SND_SRC_NEES , SND_TYPE_NORMAL, },
{/*17 SND_ECO_STOP */ SND_SRC_ECO_STOP , SND_TYPE_NORMAL, },
{/*18 SND_Cyclone_High4HZ */ SND_SRC_Cyclone_High4HZ , SND_TYPE_NORMAL, },
{/*18 SND_Cyclone_High4HZ */ SND_SRC_Cyclone_High4HZ , SND_TYPE_MULTI, },
{/*18 SND_Cyclone_High0_5 */ SND_SRC_Cyclone_High0_5 , SND_TYPE_NORMAL, },
{/*19 SND_SEATBELT_SPEED */ SND_SRC_SEATBELT_SPEED , SND_TYPE_NORMAL, },
{/*20 SND_Fuel_Saving */ SND_SRC_Fuel_Saving , SND_TYPE_NORMAL, },
......
......@@ -103,13 +103,13 @@ static const SndAttributeStruct SndAttributeTable[SND_SRC_INDEX_MAX] =
{/*11 SND_SRC_DS_SPEED */ 0x00u, 12, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 1000u, },/*11 DS 警报 */
{/*12 SND_SRC_ROWS_SPEED */ 0x00u, 13, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 1000u, },/*12 ROWS 警报 */
{/*13 SND_SRC_Roll_SPEED */ 0x00u, 14, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 1000u, },/*13 Roll 警报 */
{/*14 SND_SRC_EVSC_SPEED */ 0x01u, 15, SND_CYCLE_NONSTOP, SND_MODE_LOOP , 250u, },/*14 4HZ 2 EVSC */
{/*14 SND_SRC_EVSC_SPEED */ 0x01u, 15, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 250u, },/*14 4HZ 2 EVSC */
{/*15 SND_SRC_DPD_SPEED */ 0x03u, 16, 3, SND_MODE_SINGLE, 1000u, },/*15 1HZ 4 DPD 手动再生 */
{/*15 SND_SRC_DPD_SPEED */ 0x03u, 16, 3, SND_MODE_SINGLE, 500u, },/*15 2HZ 4 DPD 手动再生 */
{/*15 SND_SRC_DPD_SPEED */ 0x03u, 16, 3, SND_MODE_SINGLE, 250u, },/*15 4HZ 4 DPD 手动再生 */
{/*16 SND_SRC_NEES */ 0x00u, 17, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 1000u, },/*16 NEES */
{/*17 SND_SRC_ECO_STOP */ 0x00u, 18, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 1000u, },/*17 eco stop */
{/*18 SND_SRC_Cyclone_High */ 0x03u, 19, SND_CYCLE_NONSTOP, SND_MODE_LOOP , 250u, },/*18 4HZ 4 气悬车高调整 */
{/*18 SND_SRC_Cyclone_High */ 0x03u, 19, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 250u, },/*18 4HZ 4 气悬车高调整 */
{/*18 SND_SRC_Cyclone_High */ 0x03u, 19, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 2000u, },/*18 0.5HZ 4 气悬车高调整 */
{/*19 SND_SRC_SEATBELT_SPEED */ 0x02u, 20, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 500u, },/*19 2HZ 3 安全带 */
{/*20 SND_SRC_Fuel_Saving */ 0x03u, 21, SND_CYCLE_NONSTOP, SND_MODE_SINGLE, 1000u, },/*20 1HZ 4 省油耗建议 */
......
......@@ -93,6 +93,7 @@
#include "UART.h"
#include "GenDelay.h"
#include "Key_user.h"
static uint32_t K_Line1ms_count;
extern uint8_t BackOdoFlagSta;
......@@ -281,6 +282,9 @@ void Sys_Run_Mode_100ms_Tasks(void)
Drive_Info_Speed1_Plus_Conversion();
Drive_Info_Speed2_Plus_Conversion();
Menu_Key_Up_Dsp();
Menu_Key_Down_Dsp();
//YZHD_Count++;
//if (YZHD_Count == 20)
//{
......
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