Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
toki
components
libxil
Commits
cb8e547d
Commit
cb8e547d
authored
Oct 21, 2022
by
Octavio Delgadillo
Browse files
Restore change by Huber: [fix] sleep functions must have libc signatures
parent
8d71e68a
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/common/xil/sleep.h
View file @
cb8e547d
...
...
@@ -75,8 +75,8 @@ extern "C" {
(timeout>0) ? 0 : -1; \
} )
void
usleep
(
unsigned
long
useconds
);
void
sleep
(
unsigned
int
seconds
);
int
usleep
(
unsigned
long
useconds
);
unsigned
int
sleep
(
unsigned
int
seconds
);
int
usleep_R5
(
unsigned
long
useconds
);
unsigned
sleep_R5
(
unsigned
int
seconds
);
int
usleep_MB
(
unsigned
long
useconds
);
...
...
src/xil_sleepcommon.c
View file @
cb8e547d
...
...
@@ -39,7 +39,7 @@
* @note none
*
*****************************************************************************/
void
sleep
(
unsigned
int
seconds
)
unsigned
int
sleep
(
unsigned
int
seconds
)
{
#if defined (ARMR5)
sleep_R5
(
seconds
);
...
...
@@ -65,7 +65,7 @@
* @note none
*
*****************************************************************************/
void
usleep
(
unsigned
long
useconds
)
int
usleep
(
unsigned
long
useconds
)
{
#if defined (ARMR5)
usleep_R5
(
useconds
);
...
...
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