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

Expose 64-bit timers to the userspace alarm capsule #3355

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

alistair23
Copy link
Contributor

Pull Request Overview

This builds on top of #3343 and exposes the 64-bit timers to userspace.

Currently a draft until #3343 is merged

Testing Strategy

Running libtock-c timer applications

TODO or Help Wanted

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Allow the current time (now) to be a 64-bit value.

When userspace performs a relative expiration syscall we calculate the
current time as 64-bits. If userspace passes a reference time it's only
a 32-bit value, but we update the top 32-bits to match the current time.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
@github-actions github-actions bot added HIL This affects a Tock HIL interface. kernel nrf Change pertains to the nRF5x family of MCUs. stm32 Change pertains to the stm32 family of MCUSs labels Dec 15, 2022
@alistair23 alistair23 changed the title Alistair/64 bit alarm Expose 64-bit timers to the userspace alarm capsule Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HIL This affects a Tock HIL interface. kernel nrf Change pertains to the nRF5x family of MCUs. stm32 Change pertains to the stm32 family of MCUSs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant