Commit 344ac855 authored by hu's avatar hu

调整上电时序

parent 38aa18bc
......@@ -66,6 +66,7 @@
static uint8_t PowerGetNMStatus(void);
extern void SEG_LCD_Window_Switch(uint8_t Sw);
extern void DelayUs(uint32_t time);
Power_Status_t Power_KL30_Init ( void )
{
......@@ -121,6 +122,7 @@ Power_Status_t Power_KL30_Init ( void )
void Power_Sleep_Init(void)
{
uint16_t i = 0;
/*数据*/
Speed_Sleep_Init();
Tacho_Sleep_Init();
......@@ -169,18 +171,25 @@ void Power_Sleep_Init(void)
RSCAN0_CH2_Abort(RSCAN_CHANNEL_BUF_11);
RSCAN0_CH2_Abort(RSCAN_CHANNEL_BUF_12);
RSCAN0_CH2_Abort(RSCAN_CHANNEL_BUF_13);
RSCAN0_Sleep_Init();
VCC12V0_OUT_EN = 0u; /*12V 电源使能*/
VCC05V0_OUT_EN = 0u; /*外设5V 电源使能*/
D1530_EN_MCU_OUT = 0u; /*1530 使能*/
//BL_ACC_EN = 1U; /*8867 使能*/
Fuel_VCC05V_OUT_EN = 0u ; /*燃油电源 使能*/
AIR_5V_OUT_EN = 0u; /*气压 5V*/
ACC5V_LED_PWM_MCU = 0u;
BUZZER_ACC_OUT_EN = 0u;
MCU_STBYB_LCD_OUT = 0;
for (i = 0; i <= 55; i++)
{
DelayUs(10000);
}
//MCU_RSTB_LCD_OUT = 0;
//MCU_DCLK_OUT = 0;
//D1530_EN_MCU_OUT = 0u; /*1530 使能*/
GPIO_Init(GPIO_SLEEP_MODE );
}
......
......@@ -40,7 +40,7 @@
#define GFX_REG_OLDI0CHCR (0xF2002010UL)
#define GFX_REG_OLDI0SKEWCTR (0xF2002070UL)
extern void DelayUs(uint32_t time);
......@@ -452,8 +452,10 @@ void Gfx_Sys_Start(void)
R_WM_DevInit(GFX_WM_UNIT, g_stGfxWMMsgQueue, GFX_WM_MSG_QUEUE_LEN, 0, &g_stGfxIRAMheap, &g_stGfxSDRAMheap);
MCU_STBYB_LCD_OUT = 1U ;
MCU_RSTB_LCD_OUT = 1U ;
MCU_DCLK_OUT = 1u;
DelayUs(20000);
MCU_STBYB_LCD_OUT = 1U ;
R_WM_ScreenTimingSetByName(GFX_WM_UNIT, (const int8_t*)GFX_DISPLAY_NAME);
R_WM_ScreenColorFormatSet(GFX_WM_UNIT, (R_WM_OUTCOLORFMT_RGB888 | R_WM_OUTCOLORFMT_FLAG_SWAP_BR | R_WM_OUTCOLORFMT_FLAG_ENDIAN));
......
......@@ -506,7 +506,7 @@ static void TimerB_BackLight_Demo_Init(void)
//8867_BL_PWM TFT背光
TimerB_PWM_Channel_Init(TIMERB_2_CH1 , TIMERB_CLOCK_0 , TIMERB_HIGH );
TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH1 , 3000U , 0u);
TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH1 , 20000U , 0u);
TimerB_PWM_Channel_Start(TIMERB_2_CH1 );
//水温白灯
......
......@@ -95,7 +95,7 @@ static const r_ddb_Timing_t loc_DisplayMode[] = {
//(uint32_t)R_DDB_DISP_FLAG_VSYNC_ACTHI |
(uint32_t)R_DDB_DISP_FLAG_NEGCLK
),
20000000u},
30000000u},
{"AUO_C103VAN01_1_1280x480",
1280, 480u,
......
......@@ -140,7 +140,6 @@ void Sys_Startup_Init(void)
IGH_5VLED = 1; /* 42-7*/
DelayUs(50000);
VCC12V0_OUT_EN = 1u; /*12V 电源使能 3-3*/
D1530_EN_MCU_OUT = 1u; /*1530 使能 42-14*/
Fuel_VCC05V_OUT_EN = 1u ; /*燃油电源 使能 3-5*/
AIR_5V_OUT_EN = 1u; /*气压 5V 3-4*/
ACC5V_LED_PWM_MCU = 1u; /*42-6*/
......@@ -203,7 +202,10 @@ void Sys_Startup_Init(void)
/*外发要用到EEP数据,位置移动*/
COM_CAN_Init();
Gfx_Sys_Start();
Gfx_Sys_Start(); /*TFT_INIT*/
DelayUs(20000);
D1530_EN_MCU_OUT = 1u; /*1530 使能 42-14*/
}
/**************************************************************************//**
......
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