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
bc7ca7ca
Commit
bc7ca7ca
authored
Apr 29, 2016
by
Pavol Rusnak
Committed by
Paul Sokolovsky
May 07, 2016
Browse files
unix/mphalport: Add mp_hal_delay_us() for consistency with other ports.
parent
13d06a83
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/mphalport.h
View file @
bc7ca7ca
...
...
@@ -35,6 +35,7 @@ void mp_hal_stdio_mode_raw(void);
void
mp_hal_stdio_mode_orig
(
void
);
static
inline
void
mp_hal_delay_ms
(
mp_uint_t
ms
)
{
usleep
((
ms
)
*
1000
);
}
static
inline
void
mp_hal_delay_us
(
mp_uint_t
us
)
{
usleep
(
us
);
}
#define RAISE_ERRNO(err_flag, error_val) \
{ if (err_flag == -1) \
...
...
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