Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
a4232d53
Commit
a4232d53
authored
Oct 08, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:新增off到on时清串口发送buffer
parent
faec2a26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+1
-0
RTE_UART.c
...are/Source/Device/Cmsemicon/BAT32A279/RTE/UART/RTE_UART.c
+9
-0
RTE_UART.h
...are/Source/Device/Cmsemicon/BAT32A279/RTE/UART/RTE_UART.h
+1
-0
No files found.
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
a4232d53
...
...
@@ -131,6 +131,7 @@ static void Power_IG_ON_Init(void)
Fuel_KL15_Init
();
//RTE_GPIO_Set_Level(Blacklight_PWM, 1);
FaultCode_Init
();
mwAmt630hUartSendDatainit
();
AMT630H_Animation_IGON
();
// Amt630hInit();
AMT630H_GUI_SELFCHECK_STS_INIT
();
...
...
Firmware/Source/Device/Cmsemicon/BAT32A279/RTE/UART/RTE_UART.c
View file @
a4232d53
...
...
@@ -321,6 +321,15 @@ void mwAmt630hUartSendIsr(void)
mwAmt630hSerialSendValid
=
0
;
}
}
void
mwAmt630hUartSendDatainit
(
void
)
{
memset
(
mwAmt630hSerialSendBuffer
,
00
,
sizeof
(
mwAmt630hSerialSendBuffer
));
mwAmt630hSerialDataIndex
=
0
;
mwAmt630hSerialSendCnts
=
0
;
mwAmt630hSerialSendFillCnts
=
0
;
mwAmt630hSerialSendValid
=
0
;
}
/*
Data:要发送数据的指针,
请确认是全局变量的指针,且指向的数据在发送完成之前不会被改变。
...
...
Firmware/Source/Device/Cmsemicon/BAT32A279/RTE/UART/RTE_UART.h
View file @
a4232d53
...
...
@@ -59,5 +59,6 @@ extern uint32_t RTE_UART_Init(UART_Channel_en_t enUARTCh, UART_Channel_Config_st
extern
void
RTE_UART_Sleep_Init
(
UART_Channel_en_t
enUARTCh
);
extern
void
mwAmt630hUartSendData
(
uint8_t
*
data
,
uint32_t
length
);
extern
void
mwAmt630hUartSendIsr
(
void
);
extern
void
mwAmt630hUartSendDatainit
(
void
);
#endif
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