Commit 27886e59 authored by hu's avatar hu

debug

parent e25ed3ae
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include "GUI.h" #include "GUI.h"
#include "Data_Fuel_User.h" #include "Data_Fuel_User.h"
#include "UART.h"
#include "kwp2000_tp.h" #include "kwp2000_tp.h"
#include "kwp2000_protocol.h" #include "kwp2000_protocol.h"
#include "kwp2000_service.h" #include "kwp2000_service.h"
...@@ -133,7 +134,7 @@ void Power_Sleep_Init(void) ...@@ -133,7 +134,7 @@ void Power_Sleep_Init(void)
VCC12V0_OUT_EN = 1U; /*12V 电源使能*/ VCC12V0_OUT_EN = 1U; /*12V 电源使能*/
VCC05V0_OUT_EN = 1U; /*外设5V 电源使能*/ VCC05V0_OUT_EN = 1U; /*外设5V 电源使能*/
D1530_EN_MCU_OUT = 1U; /*1530 使能*/ D1530_EN_MCU_OUT = 1U; /*1530 使能*/
BL_ACC_EN = 1U; /*8867 使能*/ BL_ACC_EN = 1U; /*8867 使能*/
Fuel_VCC05V_OUT_EN = 1U ; /*燃油电源 使能*/ Fuel_VCC05V_OUT_EN = 1U ; /*燃油电源 使能*/
AIR_5V_OUT_EN = 1u; /*气压 5V*/ AIR_5V_OUT_EN = 1u; /*气压 5V*/
ACC5V_LED_PWM_MCU = 1u; ACC5V_LED_PWM_MCU = 1u;
...@@ -145,6 +146,8 @@ void Power_Sleep_Init(void) ...@@ -145,6 +146,8 @@ void Power_Sleep_Init(void)
Tacho_Sleep_Init(); Tacho_Sleep_Init();
Coolant_Sleep_Init(); Coolant_Sleep_Init();
UART_Sleep_Init();
GPIO_Init(GPIO_SLEEP_MODE ); GPIO_Init(GPIO_SLEEP_MODE );
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
/*******************************************************************/ /*******************************************************************/
uint32_t UART_Init(UART_Channel_en_t enUARTCh, UART_Channel_Config_st_t *penUARTCfg); uint32_t UART_Init(UART_Channel_en_t enUARTCh, UART_Channel_Config_st_t *penUARTCfg);
void UART_Sleep_Init(UART_Channel_en_t enUARTCh); void UART_Sleep_Init(void);
/*******************************************************************/ /*******************************************************************/
/*******************************************************************/ /*******************************************************************/
/*******************************************************************/ /*******************************************************************/
...@@ -237,11 +237,14 @@ uint32_t UART_Init(UART_Channel_en_t enUARTCh, UART_Channel_Config_st_t *penUART ...@@ -237,11 +237,14 @@ uint32_t UART_Init(UART_Channel_en_t enUARTCh, UART_Channel_Config_st_t *penUART
return penUARTCfg->u32UARTbps; return penUARTCfg->u32UARTbps;
} }
void UART_Sleep_Init(UART_Channel_en_t enUARTCh) void UART_Sleep_Init(void)
{ {
uint32_t u32UARTCount = 0UL; uint32_t u32UARTCount = 0UL;
uint32_t u32UARTAddressBase = 0UL; uint32_t u32UARTAddressBase = 0UL;
uint32_t u32UARTAddress = 0UL; uint32_t u32UARTAddress = 0UL;
UART_Channel_en_t enUARTCh;
enUARTCh = UART_RLIN32;
if ((enUARTCh < UART_RLIN_MAX)) if ((enUARTCh < UART_RLIN_MAX))
{ {
......
...@@ -51,7 +51,8 @@ extern void UART_Ch3_Send_Multiple_Byte(uint8_t *Data, uint8_t Len); ...@@ -51,7 +51,8 @@ extern void UART_Ch3_Send_Multiple_Byte(uint8_t *Data, uint8_t Len);
/*首次上30和每次唤醒时调用*/ /*首次上30和每次唤醒时调用*/
extern uint32_t UART_Init(UART_Channel_en_t enUARTCh, UART_Channel_Config_st_t *penUARTCfg); extern uint32_t UART_Init(UART_Channel_en_t enUARTCh, UART_Channel_Config_st_t *penUARTCfg);
/*休眠时调用*/ /*休眠时调用*/
extern void UART_Sleep_Init(UART_Channel_en_t enUARTCh); //extern void UART_Sleep_Init(UART_Channel_en_t enUARTCh);
extern void UART_Sleep_Init(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