Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
firmware
Commits
657b062c
Commit
657b062c
authored
Sep 16, 2021
by
schneider
Browse files
fix(pycardium): Optimize usage of epic_sleep
parent
bc4c4fb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycardium/mphalport.c
View file @
657b062c
...
...
@@ -260,7 +260,7 @@ static void systick_delay(uint32_t us)
/* Add some error margin to avoid issues with the clock accuracy
* of epicardium. We will account for the actual time via our
* (accurate) systick */
epic_sleep
(
sleep_time
/
2
);
epic_sleep
(
sleep_time
*
8
/
10
);
/* epic_sleep() can return early if there was an interrupt
* coming from epicardium side.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment