Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timer: proper way to check POSIX timers support #136

Merged
merged 1 commit into from
May 29, 2024
Merged

timer: proper way to check POSIX timers support #136

merged 1 commit into from
May 29, 2024

Conversation

hippo5329
Copy link
Contributor

The _POSIX_TIMERS macros can be used to determine the degree of a host's support for the posix timers API.

The POSIX definition (2018 edition) says that:

_POSIX_TIMERS

The implementation supports timers. This symbol shall always be set to the value 200809L.

It's defined in the <unistd.h> header.

Tested on esp32, pico and teensy4.

The _POSIX_TIMERS macros can be used to determine the degree of a
host's support for the posix timers API.

The POSIX definition (2018 edition) says that:

_POSIX_TIMERS

The implementation supports timers. This symbol shall always
be set to the value 200809L.

It's defined in the <unistd.h> header.

Tested on esp32, pico and teensy4.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
@pablogs9 pablogs9 merged commit 523b06d into micro-ROS:main May 29, 2024
20 checks passed
@hippo5329 hippo5329 deleted the pr-timer branch May 29, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants