Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
2bf96612
Commit
2bf96612
authored
Nov 09, 2016
by
Paul Sokolovsky
Browse files
zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions).
parent
e3626b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
)
{
tas
k_sleep
(
MSEC
(
delay
)
)
;
k_sleep
(
delay
);
}
Write
Preview
Supports
Markdown
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