Commit 27886e59 authored by hu's avatar hu

debug

parent e25ed3ae
......@@ -42,6 +42,7 @@
#include "GUI.h"
#include "Data_Fuel_User.h"
#include "UART.h"
#include "kwp2000_tp.h"
#include "kwp2000_protocol.h"
#include "kwp2000_service.h"
......@@ -145,6 +146,8 @@ void Power_Sleep_Init(void)
Tacho_Sleep_Init();
Coolant_Sleep_Init();
UART_Sleep_Init();
GPIO_Init(GPIO_SLEEP_MODE );
}
......
......@@ -17,7 +17,7 @@
/*******************************************************************/
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
return penUARTCfg->u32UARTbps;
}
void UART_Sleep_Init(UART_Channel_en_t enUARTCh)
void UART_Sleep_Init(void)
{
uint32_t u32UARTCount = 0UL;
uint32_t u32UARTAddressBase = 0UL;
uint32_t u32UARTAddress = 0UL;
UART_Channel_en_t enUARTCh;
enUARTCh = UART_RLIN32;
if ((enUARTCh < UART_RLIN_MAX))
{
......
......@@ -51,7 +51,8 @@ extern void UART_Ch3_Send_Multiple_Byte(uint8_t *Data, uint8_t Len);
/*首次上30和每次唤醒时调用*/
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