Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
cfb7e96d
Commit
cfb7e96d
authored
3 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
change(uart): Use low power HIRC8 for uart clock
parent
01dab506
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!477
change(uart): Use low power HIRC8 for uart clock
Pipeline
#5231
passed
3 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/sdk/Libraries/Boards/card10/Source/board.c
+5
-1
5 additions, 1 deletion
lib/sdk/Libraries/Boards/card10/Source/board.c
with
5 additions
and
1 deletion
lib/sdk/Libraries/Boards/card10/Source/board.c
+
5
−
1
View file @
cfb7e96d
...
@@ -65,7 +65,7 @@ const uart_cfg_t uart_cfg = {
...
@@ -65,7 +65,7 @@ const uart_cfg_t uart_cfg = {
.
flow
=
UART_FLOW_CTRL_DIS
,
.
flow
=
UART_FLOW_CTRL_DIS
,
.
pol
=
UART_FLOW_POL_DIS
,
.
pol
=
UART_FLOW_POL_DIS
,
.
baud
=
CONSOLE_BAUD
,
.
baud
=
CONSOLE_BAUD
,
.
clksel
=
UART_CLKSEL_
SYS
TE
M
.
clksel
=
UART_CLKSEL_
ALTERNA
TE
};
};
const
sys_cfg_uart_t
uart_sys_cfg
=
{
const
sys_cfg_uart_t
uart_sys_cfg
=
{
...
@@ -117,6 +117,8 @@ int Console_Init(void)
...
@@ -117,6 +117,8 @@ int Console_Init(void)
{
{
int
err
;
int
err
;
SYS_ClockSourceEnable
(
SYS_CLOCK_HIRC8
);
if
((
err
=
UART_Init
(
ConsoleUart
,
&
uart_cfg
,
&
uart_sys_cfg
))
!=
E_NO_ERROR
)
{
if
((
err
=
UART_Init
(
ConsoleUart
,
&
uart_cfg
,
&
uart_sys_cfg
))
!=
E_NO_ERROR
)
{
return
err
;
return
err
;
}
}
...
@@ -133,6 +135,8 @@ int Console_Shutdown(void)
...
@@ -133,6 +135,8 @@ int Console_Shutdown(void)
return
err
;
return
err
;
}
}
SYS_ClockSourceDisable
(
SYS_CLOCK_HIRC8
);
return
E_NO_ERROR
;
return
E_NO_ERROR
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment