Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISUZU
VC66_7C
Commits
27886e59
Commit
27886e59
authored
Mar 10, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
e25ed3ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
PowerManagement_user.c
...ce/Application/APP/PowerManagement/PowerManagement_user.c
+4
-1
UART.c
source/Driver/UART/UART.c
+5
-2
UART.h
source/Driver/UART/UART.h
+2
-1
No files found.
source/Application/APP/PowerManagement/PowerManagement_user.c
View file @
27886e59
...
...
@@ -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"
...
...
@@ -133,7 +134,7 @@ void Power_Sleep_Init(void)
VCC12V0_OUT_EN
=
1U
;
/*12V 电源使能*/
VCC05V0_OUT_EN
=
1U
;
/*外设5V 电源使能*/
D1530_EN_MCU_OUT
=
1U
;
/*1530 使能*/
BL_ACC_EN
=
1U
;
/*8867 使能*/
BL_ACC_EN
=
1U
;
/*8867 使能*/
Fuel_VCC05V_OUT_EN
=
1U
;
/*燃油电源 使能*/
AIR_5V_OUT_EN
=
1u
;
/*气压 5V*/
ACC5V_LED_PWM_MCU
=
1u
;
...
...
@@ -145,6 +146,8 @@ void Power_Sleep_Init(void)
Tacho_Sleep_Init
();
Coolant_Sleep_Init
();
UART_Sleep_Init
();
GPIO_Init
(
GPIO_SLEEP_MODE
);
}
...
...
source/Driver/UART/UART.c
View file @
27886e59
...
...
@@ -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
))
{
...
...
source/Driver/UART/UART.h
View file @
27886e59
...
...
@@ -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
);
/******************************************************/
/******************************************************/
/******************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment