Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
2bf96612
Commit
2bf96612
authored
Nov 09, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions).
parent
e3626b48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
zephyr/mphalport.h
zephyr/mphalport.h
+2
-2
No files found.
zephyr/mphalport.h
View file @
2bf96612
...
...
@@ -19,9 +19,9 @@ static inline mp_uint_t mp_hal_ticks_cpu(void) {
}
static
inline
void
mp_hal_delay_us
(
mp_uint_t
delay
)
{
task_sleep
(
USEC
(
delay
)
);
k_busy_wait
(
delay
);
}
static
inline
void
mp_hal_delay_ms
(
mp_uint_t
delay
)
{
task_sleep
(
MSEC
(
delay
)
);
k_sleep
(
delay
);
}
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