Commit 0d1dff89 authored by hu's avatar hu

调整指示灯,调整硬线

parent e339f97b
No preview for this file type
This diff is collapsed.
project .intvect 1536
project .text 298988
project .text 299276
project .rodata 412383
project .secinfo 120
project .syscall 6
......
......@@ -7,85 +7,85 @@
static struct
{
uint8_t Count ;
uint16_t Data[VEH_FILTER_LEN] ;
uint8_t Count;
uint16_t Data[VEH_FILTER_LEN];
} VehcleFilter;
static uint32_t SPEED_PPK = 159246ul ;
static uint32_t SPEED_RADIO = 637 ;
static uint32_t SPEED_PPK = 159246ul;
static uint32_t SPEED_RADIO = 637;
uint16_t Vehicle_ACT_Speed;
uint16_t Vehicle_DISP_Speed;
uint8_t VehicleSpeedValid;
uint8_t Vehicle_CurSeg ;
uint8_t Vehicle_CurSeg;
static uint16_t Cal_VehSpeed(uint16_t Fre, uint8_t Len);
void Speed_KL30_Init(void)
{
uint8_t i ;
uint8_t i;
Vehicle_ACT_Speed = 0u;
Vehicle_DISP_Speed = 0u;
VehicleSpeedValid = 0u;
Vehicle_CurSeg = 0u;
VehcleFilter.Count = 0 ;
for (i = 0 ; i < VEH_FILTER_LEN ; i ++)
VehcleFilter.Count = 0;
for (i = 0; i < VEH_FILTER_LEN; i++)
{
VehcleFilter.Data[ i ] = 0 ;
VehcleFilter.Data[i] = 0;
}
Set_Speed_PPK(159246ul);
}
void Speed_KL15_ON_Init(void)
{
uint8_t i ;
uint8_t i;
Vehicle_ACT_Speed = 0u;
Vehicle_DISP_Speed = 0u;
VehicleSpeedValid = 0u;
Vehicle_CurSeg = 0u;
VehcleFilter.Count = 0 ;
for (i = 0 ; i < VEH_FILTER_LEN ; i ++)
VehcleFilter.Count = 0;
for (i = 0; i < VEH_FILTER_LEN; i++)
{
VehcleFilter.Data[ i ] = 0 ;
VehcleFilter.Data[i] = 0;
}
Veh_Fre_Init(Get_Speed_PPK() / 10);
}
void Speed_KL15_OFF_Init(void)
{
uint8_t i ;
uint8_t i;
Vehicle_ACT_Speed = 0u;
Vehicle_DISP_Speed = 0u;
VehicleSpeedValid = 0u;
Vehicle_CurSeg = 0u;
VehcleFilter.Count = 0 ;
for (i = 0 ; i < VEH_FILTER_LEN ; i ++)
VehcleFilter.Count = 0;
for (i = 0; i < VEH_FILTER_LEN; i++)
{
VehcleFilter.Data[ i ] = 0 ;
VehcleFilter.Data[i] = 0;
}
}
void Speed_Wakeup_Init(void)
{
uint8_t i ;
uint8_t i;
Vehicle_ACT_Speed = 0u;
Vehicle_DISP_Speed = 0u;
VehicleSpeedValid = 0u;
Vehicle_CurSeg = 0u;
for (i = 0 ; i < VEH_FILTER_LEN ; i ++)
for (i = 0; i < VEH_FILTER_LEN; i++)
{
VehcleFilter.Data[ i ] = 0 ;
VehcleFilter.Data[i] = 0;
}
}
void Speed_Sleep_Init(void)
{
uint8_t i ;
uint8_t i;
Vehicle_ACT_Speed = 0u;
Vehicle_DISP_Speed = 0u;
VehicleSpeedValid = 0u;
Vehicle_CurSeg = 0u;
for (i = 0 ; i < VEH_FILTER_LEN ; i ++)
for (i = 0; i < VEH_FILTER_LEN; i++)
{
VehcleFilter.Data[ i ] = 0 ;
VehcleFilter.Data[i] = 0;
}
}
......@@ -93,7 +93,7 @@ void Speed_Processing_Service(void)
{
uint32_t VehValTmp = 0u;
uint32_t PPK = 0u;
//if(Get_Veh_Fre_Event())
// if(Get_Veh_Fre_Event())
//{
// VehValTmp = Cal_VehSpeed(Get_Veh_Fre(),VEH_FILTER_LEN) ;
......@@ -108,68 +108,64 @@ void Speed_Processing_Service(void)
PPK = Get_Speed_PPK();
VehValTmp = Cal_Veh_Frequency();
VehValTmp *= 3600 ;
VehValTmp *= 10 ;
VehValTmp *= 10 ;
VehValTmp /= PPK ;
VehValTmp *= 3600;
VehValTmp *= 10;
VehValTmp *= 10;
VehValTmp /= PPK;
//VehValTmp = Cal_Veh_Frequency();
//VehValTmp *= 3600 ;
//VehValTmp *= 10 ;
//VehValTmp /= PPK ;
// VehValTmp = Cal_Veh_Frequency();
// VehValTmp *= 3600 ;
// VehValTmp *= 10 ;
// VehValTmp /= PPK ;
if (VehValTmp > 2250)
{
VehValTmp = 0 ;
VehicleSpeedValid = 0 ;
VehValTmp = 0;
VehicleSpeedValid = 0;
}
else
{
VehicleSpeedValid = 1 ;
VehicleSpeedValid = 1;
}
Vehicle_ACT_Speed = VehValTmp ;
Vehicle_ACT_Speed = VehValTmp;
//传入表头
//传入表头
VehValTmp = VehSpeedAmplification((uint16_t)VehValTmp);
SetGaugesPara(VehGauges, (uint16_t)VehValTmp);
//获得显示格和显示车速
//获得显示格和显示车速
Vehicle_CurSeg = GetGaugesCurrentPos(VehGauges);
Vehicle_DISP_Speed = GetVehDisVal(Vehicle_CurSeg, &GaugesInfo_Init_Table[VehGauges]);
}
static uint16_t Cal_VehSpeed(uint16_t Fre, uint8_t Len)
{
static uint16_t u16Result = 0 ;
static uint16_t u16Result = 0;
if (Fre > 2000)
{
//do nothing
// do nothing
}
else
{
if (VehcleFilter.Count < Len)
{
VehcleFilter.Data[VehcleFilter.Count] = Fre ;
VehcleFilter.Count ++ ;
VehcleFilter.Data[VehcleFilter.Count] = Fre;
VehcleFilter.Count++;
}
else
{
VehcleFilter.Count = 0 ;
VehcleFilter.Count = 0;
App_SortNByte(VehcleFilter.Data, Len);
u16Result = VehcleFilter.Data[2] ;
u16Result += VehcleFilter.Data[3] ;
u16Result += VehcleFilter.Data[3] ;
u16Result += VehcleFilter.Data[4] ;
u16Result /= 4 ;
u16Result = VehcleFilter.Data[2];
u16Result += VehcleFilter.Data[3];
u16Result += VehcleFilter.Data[3];
u16Result += VehcleFilter.Data[4];
u16Result /= 4;
}
}
return u16Result ;
return u16Result;
}
/*-------------------------------------------------------------------------
......@@ -182,7 +178,7 @@ static uint16_t Cal_VehSpeed(uint16_t Fre, uint8_t Len)
--------------------------------------------------------------------------*/
void Set_Speed_PPK(uint32_t PPK)
{
SPEED_PPK = PPK ;
SPEED_PPK = PPK;
}
/*-------------------------------------------------------------------------
* Function Name : Set_Speed_PPK
......@@ -194,7 +190,7 @@ void Set_Speed_PPK(uint32_t PPK)
--------------------------------------------------------------------------*/
void Set_Speed_Ratio(uint32_t Ratio)
{
SPEED_RADIO = Ratio ;
SPEED_RADIO = Ratio;
}
/*-------------------------------------------------------------------------
* Function Name : Get_Speed_PPK
......@@ -207,8 +203,8 @@ void Set_Speed_Ratio(uint32_t Ratio)
uint32_t Get_Speed_PPK(void)
{
uint32_t u32Result = 0u;
u32Result = SPEED_PPK ;
return u32Result ;
u32Result = SPEED_PPK;
return u32Result;
}
uint16_t Speed_Get_ActualValue(void)
......@@ -233,7 +229,7 @@ uint16_t Speed_Get_Display_Value(void)
--------------------------------------------------------------------------*/
uint8_t Speed_Get_CurSeg(void)
{
return Vehicle_CurSeg ;
return Vehicle_CurSeg;
}
/*-------------------------------------------------------------------------
* Function Name : Speed_Get_Valid
......@@ -245,7 +241,5 @@ uint8_t Speed_Get_CurSeg(void)
--------------------------------------------------------------------------*/
uint8_t Speed_Get_Valid(void)
{
return VehicleSpeedValid ;
return VehicleSpeedValid;
}
#include "GaugesInterface.h"
GetVehDisValGetVehDisVal#include "GaugesInterface.h"
#include "Menu.h"
/**@struct _GaugesInfoInit
*this is _GaugesInfoInit
......
......@@ -6,14 +6,6 @@
#include "TYW_stdint.h"
#include "string.h"
/*
Note ! NOW LineIn only support 254 channel!!!!!
Note ! NOW LineIn only support 254 channel!!!!!
Note ! NOW LineIn only support 254 channel!!!!!
Note ! NOW LineIn only support 254 channel!!!!!
Note ! NOW LineIn only support 254 channel!!!!!
*/
/*所有硬线输入的索引*/
typedef enum
{
......
......@@ -65,8 +65,8 @@ const Line_In_Attribute_st_t g_stLineInAttribute[LINE_IN_MAX] =
{ LINE_IN_LEVEL_HIGH, 200U, 0U, LINE_IN_IG_ON, LINE_IN_Get_ILLUMINATION,}, /*A06 ILLUMINATION 背光有效*/
{ LINE_IN_LEVEL_LOW, 200U, 0U, LINE_IN_IG_ON, LINE_IN_Get_RET_BLENDING,}, /*A10 RET_BLENDING*/
{ LINE_IN_LEVEL_LOW, 200U, 0U, LINE_IN_IG_ON, LINE_IN_Get_BRAKE,}, /*A21 BRAKE*/
{ LINE_IN_LEVEL_HIGH, 200U, 0U, LINE_IN_IG_ONOFF, LINE_IN_Get_TURN_R,}, /*A26 TURN_R*/
{ LINE_IN_LEVEL_HIGH, 200U, 0U, LINE_IN_IG_ONOFF, LINE_IN_Get_TURN_L,}, /*A27 TURN_L*/
{ LINE_IN_LEVEL_HIGH, 20U, 0U, LINE_IN_IG_ONOFF, LINE_IN_Get_TURN_R,}, /*A26 TURN_R*/
{ LINE_IN_LEVEL_HIGH, 20U, 0U, LINE_IN_IG_ONOFF, LINE_IN_Get_TURN_L,}, /*A27 TURN_L*/
{ LINE_IN_LEVEL_LOW, 200U, 0U, LINE_IN_IG_ON, LINE_IN_Get_ABS_DETECT,}, /*A33 ABS_DETECT*/
{ LINE_IN_LEVEL_HIGH, 200U, 0U, LINE_IN_IG_ON, LINE_IN_Get_PTO,}, /*B01 PTO*/
{ LINE_IN_LEVEL_LOW, 200U, 0U, LINE_IN_IG_ON, LINE_IN_Get_GLOW,}, /*B05 GLOW*/
......
......@@ -109,6 +109,8 @@ Power_Status_t Power_KL30_Init ( void )
BL_ACC_EN = 1U; /*8867 使能*/
Fuel_VCC05V_OUT_EN = 1U ; /*燃油电源 使能*/
AIR_5V_OUT_EN = 1u; /*气压 5V*/
ACC5V_LED_PWM_MCU = 1u;
IS31_Init();
Sound_Scheduler_Init();
Sound_Player_Init();
......@@ -146,6 +148,7 @@ void Power_Sleep_Init(void)
BL_ACC_EN = 1U; /*8867 使能*/
Fuel_VCC05V_OUT_EN = 1U ; /*燃油电源 使能*/
AIR_5V_OUT_EN = 1u; /*气压 5V*/
ACC5V_LED_PWM_MCU = 1u;
IS31_Shutdown();
......@@ -198,6 +201,7 @@ Power_Status_t Power_Wakeup_Init ( void )
BL_ACC_EN = 1U; /*8867 使能*/
Fuel_VCC05V_OUT_EN = 1U ; /*燃油电源 使能*/
AIR_5V_OUT_EN = 1u; /*气压 5V*/
ACC5V_LED_PWM_MCU = 1u;
IS31_Init();
/*报警调度初始化*/
......
......@@ -14,7 +14,7 @@ void SEG_LED_HI_BEAM_T(uint8_t seg_status);
void SEG_LED_Rr_FOG_LAMP_T(uint8_t seg_status);
void SEG_LED_MIL_T(uint8_t seg_status);
void SEG_LED_SVS_T(uint8_t seg_status);
void SEG_LED_H_S_A__T(uint8_t seg_status);
void SEG_LED_H_S_A_T(uint8_t seg_status);
void SEG_LED_RETARDER_T(uint8_t seg_status);
void SEG_LED_AUTO_LEVELING_T(uint8_t seg_status);
void SEG_LED_ROWS_L(uint8_t seg_status);
......
......@@ -7,53 +7,49 @@
typedef enum
{
em_LED_INTER_DIFF_LOCK_T ,
em_LED_FOUR_MUL_FOUR_T ,
em_LED_EXH_BRAKE_T ,
em_LED_QOS_GLOW_T ,
em_LED_HI_BEAM_T ,
em_LED_Rr_FOG_LAMP_T ,
em_LED_MIL_T ,
em_LED_SVS_T ,
em_LED_H_S_A__T ,
em_LED_RETARDER_T ,
em_LED_AUTO_LEVELING_T ,
em_LED_ROWS_L ,
em_LED_BSM_OFF_L ,
em_LED_AEBS_OFF_L ,
em_LED_LDWS_L ,
em_LED_SRS_L ,
em_LED_ENG_OIL_L ,
em_LED_CHARG_L ,
em_LED_SEAT_BELT_L ,
em_LED_RR_DIFF_LOCK_L ,
em_LED_TPMS_L ,
em_LED_ASR_or_EVSC_OFF_L ,
em_LED_EVSC_L ,
em_LED_eco_stop_OFF_L ,
em_LED_AMT_L ,
em_LED_WEAR_IND_L ,
em_LED_TRAILER_BRAKE_R ,
em_LED_BRAKE_AIR_or_EBS_YELLOW_R ,
em_LED_ACC_AIR_R ,
em_LED_ABS_R ,
em_LED_PARK_BRAKE_R ,
em_LED_BRAKE_AIR_or_EBS_RED_R ,
em_LED_BRAKE_LOCK_R ,
em_LED_AIR_SUS_R ,
em_LED_TRAILER_ABS_U ,
em_LED_WORKING_LAMP_U ,
em_LED_TRAILER_ABS_INFO_U ,
LED_Max ,
em_LED_INTER_DIFF_LOCK_T,
em_LED_FOUR_MUL_FOUR_T,
em_LED_EXH_BRAKE_T,
em_LED_QOS_GLOW_T,
em_LED_HI_BEAM_T,
em_LED_Rr_FOG_LAMP_T,
em_LED_MIL_T,
em_LED_SVS_T,
em_LED_H_S_A__T,
em_LED_RETARDER_T,
em_LED_AUTO_LEVELING_T,
em_LED_ROWS_L,
em_LED_BSM_OFF_L,
em_LED_AEBS_OFF_L,
em_LED_LDWS_L,
em_LED_SRS_L,
em_LED_ENG_OIL_L,
em_LED_CHARG_L,
em_LED_SEAT_BELT_L,
em_LED_RR_DIFF_LOCK_L,
em_LED_TPMS_L,
em_LED_ASR_or_EVSC_OFF_L,
em_LED_EVSC_L,
em_LED_eco_stop_OFF_L,
em_LED_AMT_L,
em_LED_WEAR_IND_L,
em_LED_TRAILER_BRAKE_R,
em_LED_BRAKE_AIR_or_EBS_YELLOW_R,
em_LED_ACC_AIR_R,
em_LED_ABS_R,
em_LED_PARK_BRAKE_R,
em_LED_BRAKE_AIR_or_EBS_RED_R,
em_LED_BRAKE_LOCK_R,
em_LED_AIR_SUS_R,
em_LED_TRAILER_ABS_U,
em_LED_WORKING_LAMP_U,
em_LED_TRAILER_ABS_INFO_U,
LED_Max,
} LED_Idx_t;
typedef uint8_t ( * LED_Judgment ) ( void );
typedef void ( * LED_Execution ) ( uint8_t led_status );
typedef uint8_t (*LED_Judgment)(void);
typedef void (*LED_Execution)(uint8_t led_status);
typedef struct
{
......@@ -86,11 +82,10 @@ typedef struct
extern const LED_Attribute_st LED_Attribute[LED_Max];
void Telltales_SetPara(ExternalPara_st *Para);
void Telltales_Management(void); /*50ms*/
void Telltales_Left_Right_KL30_Init(void);
void Telltales_Left_Right_Management_Service(void) ;/*must put into 10ms task*/
void Telltales_Left_Right_Management_Service(void); /*must put into 10ms task*/
void Telltales_IG_ON_Work(void);
void Telltales_IGOFF_Work(void);
void Test_LED_AllLight(void);
......@@ -99,10 +94,6 @@ void Telltales_Wakeup_Init(void);
void Telltales_KL30_Init(void);
void Telltales_KL15_Init(void);
void LED_RIGHT_G_Execution(uint8_t led_status);
void LED_LEFT_G_Execution(uint8_t led_status);
uint8_t LED_RIGHT_G_Judgement(void);
......@@ -114,10 +105,6 @@ uint8_t GET_LED_POSITION_G(void);
void Write_LED_READY_G_Execution(uint8_t led_status);
uint8_t GET_LED_READY_G_Execution(void);
/*ZH:*/
/*LED点灯条件判别函数*/
uint8_t LED_INTER_DIFF_LOCK_T_Judgement(void);
......@@ -128,7 +115,7 @@ uint8_t LED_HI_BEAM_T_Judgement(void);
uint8_t LED_Rr_FOG_LAMP_T_Judgement(void);
uint8_t LED_MIL_T_Judgement(void);
uint8_t LED_SVS_T_Judgement(void);
uint8_t LED_H_S_A__T_Judgement(void);
uint8_t LED_H_S_A_T_Judgement(void);
uint8_t LED_RETARDER_T_Judgement(void);
uint8_t LED_AUTO_LEVELING_T_Judgement(void);
uint8_t LED_ROWS_L_Judgement(void);
......@@ -158,8 +145,6 @@ uint8_t LED_TRAILER_ABS_U_Judgement(void);
uint8_t LED_WORKING_LAMP_U_Judgement(void);
uint8_t LED_TRAILER_ABS_INFO_U_Judgement(void);
/*LED执行函数*/
void LED_INTER_DIFF_LOCK_T_Execution(uint8_t led_status);
void LED_FOUR_MUL_FOUR_T_Execution(uint8_t led_status);
......@@ -169,7 +154,7 @@ void LED_HI_BEAM_T_Execution(uint8_t led_status);
void LED_Rr_FOG_LAMP_T_Execution(uint8_t led_status);
void LED_MIL_T_Execution(uint8_t led_status);
void LED_SVS_T_Execution(uint8_t led_status);
void LED_H_S_A__T_Execution(uint8_t led_status);
void LED_H_S_A_T_Execution(uint8_t led_status);
void LED_RETARDER_T_Execution(uint8_t led_status);
void LED_AUTO_LEVELING_T_Execution(uint8_t led_status);
void LED_ROWS_L_Execution(uint8_t led_status);
......@@ -200,9 +185,4 @@ void LED_WORKING_LAMP_U_Execution(uint8_t led_status);
void LED_TRAILER_ABS_INFO_U_Execution(uint8_t led_status);
/*:ZH*/
#endif
......@@ -3,7 +3,6 @@
#include "TYW_stdint.h"
void Write_LED_RGIHT_G_Judgement(uint8_t led_status);
void Write_LED_LEFT_G_Judgement(uint8_t led_status);
......@@ -11,14 +10,3 @@ uint8_t GET_LED_RIGHT_G_Judgement(void);
uint8_t GET_LED_LEFT_G_Judgement(void);
#endif
......@@ -252,9 +252,9 @@ void DoCAN_L_Data_Request ( uint32_t Identifier, uint8_t dlc, uint8_t Data[] )
LinkTxCtrl.Data[i] = FILLER_BYTE;
}
RSCAN0_SendCH0_TxBuf0(LinkTxCtrl.Identifier,8U,1U,LinkTxCtrl.Data);
RSCAN0_SendCH0_TxBuf0(LinkTxCtrl.Identifier, 8U, 1U, LinkTxCtrl.Data);
#else
RSCAN0_SendCH0_TxBuf0(LinkTxCtrl.Identifier,8U,1U,LinkTxCtrl.Data);
RSCAN0_SendCH0_TxBuf0(LinkTxCtrl.Identifier, 8U, 1U, LinkTxCtrl.Data);
#endif
LinkTxCtrl.Busy = 1u;
}
......
......@@ -35,6 +35,7 @@ void CD4051B_KL15Init(void)
CD4051B_CurrentChannel = 0u;
}
/****************************************************************************
CD4051B_ChannelSet
CD4051B_C_MCU CD4051B_B_MCU CD4051B_A_MCU Channel ON
......@@ -61,6 +62,7 @@ void CD4051B_ChannelSet(CD4051BChannel Ch)
;
}
}
/****************************************************************************
函数名:CD4051B_ChannelGet
形参:无
......@@ -102,6 +104,7 @@ void CD4051B_ReadSignal_Serviece(void)
CD4051B_ChannelSet(channel);
}
/****************************************************************************
CD4051B_Debounce_Service
......@@ -152,6 +155,7 @@ void CD4051B_Debounce_Service(void)
}
}
}
/****************************************************************************
CD4051B_GetComValue
......
......@@ -99,7 +99,7 @@ extern uint16_t CD4051B_GeneralCOM_Value[COMTotal][MaxChannel];
#define CD4051_COM5_X6_IN (CD4051B_GeneralCOM_Value[COM5][Channel6]) /*B31*/
#define CD4051_COM5_X7_IN (CD4051B_GeneralCOM_Value[COM5][Channel7]) /*B30*/
/*COM6映射PCB*/
#define CD4051_COM6_X0_IN (CD4051B_GeneralCOM_Value[COM6][Channel0]) /*A06*/
#define CD4051_COM6_X0_IN (CD4051B_GeneralCOM_Value[COM6][Channel0]) /*B06*/
#define CD4051_COM6_X1_IN (CD4051B_GeneralCOM_Value[COM6][Channel1]) /*B07*/
#define CD4051_COM6_X2_IN (CD4051B_GeneralCOM_Value[COM6][Channel2]) /*B08*/
#define CD4051_COM6_X3_IN (CD4051B_GeneralCOM_Value[COM6][Channel3]) /*B05*/
......
/**************************************************************************//**
/**************************************************************************
* \file Tasks.c
* \brief Task list
* \details
......@@ -9,7 +9,7 @@
* V1.0.0 Initial release
* \par Copyright:
* (c) Heilongjiang TYW Electronics co., LTD
******************************************************************************/
******************************************************************************/
#include "r_typedefs.h"
#include "Sys_Scheduler.h"
#include "rh850_macros.h"
......@@ -17,7 +17,6 @@
#include "Analog_Signals.h"
#include "RTC.h"
#include "Watchdog.h"
#include "debugger.h"
......@@ -33,7 +32,6 @@
#include "System_Monitor.h"
#include "Common_Interface.h"
#include "Services_ODO_User.h"
#include "Data_CoolantTemperature.h"
#include "Data_VehicleSpeed.h"
......@@ -93,10 +91,10 @@
#include "Buzzer.h"
/*******************************************************************************
* *
* 系统常规运行模式(SYS_MODE_OFF / SYS_MODE_ON / SYS_MODE_STANDBY )任务列表 *
* *
*******************************************************************************/
* *
* 系统常规运行模式(SYS_MODE_OFF / SYS_MODE_ON / SYS_MODE_STANDBY )任务列表 *
* *
*******************************************************************************/
/*==============================================================================
伪实时任务
......@@ -109,13 +107,9 @@ void Sys_Run_Mode_Pseudo_Real_Time_Tasks(void)
UDS_Server_Application_Service();
IS31_Service();
BU98R10_Update_Service();
}
/*============================================================================*/
/*==============================================================================
2ms周期执行任务
------------------------------------------------------------------------------*/
......@@ -147,12 +141,12 @@ void Sys_Run_Mode_10ms_Tasks(void)
Data_Mileage_Write_EEPROM();
Line_In_Debounce_Service();
Telltales_Management();
//Test_LED_AllLight();
// Test_LED_AllLight();
Key_Service();
CAN_BUSOFF_Recover();
DisplayServices();
/*表头调度函数 added by yutian*/
UserGaugeSchedule();/*在主循环中调用*/
UserGaugeSchedule(); /*在主循环中调用*/
/*end*/
CD4051B_ReadSignal_Serviece();
Sound_Play_Service();
......@@ -163,7 +157,6 @@ void Sys_Run_Mode_10ms_Tasks(void)
}
/*============================================================================*/
/*==============================================================================
20ms周期执行任务
------------------------------------------------------------------------------*/
......@@ -179,19 +172,15 @@ void Sys_Run_Mode_20ms_Tasks(void)
DrivingSupport_Processing_Service();
AirPressure_Processing_Service();
Voltmeter_Processing_Service();
Buzzer_Track_Play_Service();
Sound_Management_Service();
CD4051B_Debounce_Service();
Seg_Display_Service();
Seg_Buffer_Commit();
BU98R10_Update_Request();
Buzzer_Track_Play_Service();
}
/*============================================================================*/
/*==============================================================================
50ms周期执行任务
------------------------------------------------------------------------------*/
......@@ -203,12 +192,11 @@ void Sys_Run_Mode_50ms_Tasks(void)
Data_Service_Gear_Processing();
Speed_PPK_Processing();
Sound_Scheduling_Service();
//BGTask();
// BGTask();
IS31_Scan_Refresh();
}
/*============================================================================*/
/*==============================================================================
100ms周期执行任务
------------------------------------------------------------------------------*/
......@@ -219,16 +207,16 @@ void Sys_Run_Mode_100ms_Tasks(void)
RTE_RTC_Services_100Ms_Cbk();
Data_ODO_Processing();
Data_Trip_Processing();
//Data_Avg_Speed_Processing();
// Data_Avg_Speed_Processing();
Data_TPMS_Value_Processing();
Data_Service_Gear_Processing();
Data_Ambient_Temperature_Processing();
//Display_Schedule_Service();/*显示函数入口*/
//Menu_Display_Service();
//External_Influence_ENERGY_RECOVERY_LEVEL_Select();
//LongTimeNoKey_Operation();
//Menu_Get_Battery_Sts_Exist();
// Display_Schedule_Service();/*显示函数入口*/
// Menu_Display_Service();
// External_Influence_ENERGY_RECOVERY_LEVEL_Select();
// LongTimeNoKey_Operation();
// Menu_Get_Battery_Sts_Exist();
Popups_Management_Service();
Popup_Scheduling_Service();
/*综合油耗信息*/
......@@ -239,29 +227,27 @@ void Sys_Run_Mode_100ms_Tasks(void)
Data_FuelCounsumpThisTime();
/*加油后行车信息*/
Data_Info_Last_Refueling();
}
/*============================================================================*/
/*******************************************************************************
* *
* 系统休眠模式(SYS_MODE_SLEEP)任务列表 *
* *
*******************************************************************************/
* *
* 系统休眠模式(SYS_MODE_SLEEP)任务列表 *
* *
*******************************************************************************/
/*==============================================================================
休眠模式下执行的后台任务
------------------------------------------------------------------------------*/
void Sys_Sleep_Mode_Tasks(void)
{
}
/*============================================================================*/
/*******************************************************************************
* *
* 精确的50us计时任务列表 *
* *
*******************************************************************************/
* *
* 精确的50us计时任务列表 *
* *
*******************************************************************************/
/*==============================================================================
精确的50us计时任务 禁止添加修改列表中的任务
------------------------------------------------------------------------------*/
......@@ -272,7 +258,7 @@ void Sys_Exact_50us_Tasks(void)
COM_NM_Process();
COM_TX_Process();
DoCAN_Timer_Update(50);
//TimerB_Fre_Timeout(50);
// TimerB_Fre_Timeout(50);
Cal_Veh_Cycle(SPEED_SIGNAL_PWM_IN); /*车速输入,非捕获方式 20211018*/
PerCounter++;
if (PerCounter >= 20 * 5)
......@@ -285,10 +271,10 @@ void Sys_Exact_50us_Tasks(void)
/*============================================================================*/
/*******************************************************************************
* *
* 精确的100ms计时任务列表 *
* *
*******************************************************************************/
* *
* 精确的100ms计时任务列表 *
* *
*******************************************************************************/
/*==============================================================================
精确的100ms计时任务 禁止添加修改列表中的任务
------------------------------------------------------------------------------*/
......@@ -300,8 +286,7 @@ void Sys_Exact_100ms_Tasks(void)
}
/*============================================================================*/
void APP_Startup_Init (uint8_t startMode)
void APP_Startup_Init(uint8_t startMode)
{
Power_Management_Init(startMode);
}
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