-
Notifications
You must be signed in to change notification settings - Fork 101
Tock 2.0: touch api and example app for 2.0 API #151
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
Conversation
libtock/touch.c
Outdated
}else { | ||
err = TOCK_EALREADY; | ||
} | ||
}else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you run format_all.sh
in examples/
to format the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, this is what it does. I actually ran make format
. I fixed the other }else {
manually, but I missed this one :)
bors r+ |
Build succeeded: |
151: Tock 2.0: touch api and example app for 2.0 API r=phil-levis a=alexandruradovici This pull request adds the touch driver API and example. It should close tock#126 156: Tock 2.0/rng: fix rng_sync yield for callback r=phil-levis a=lschuermann ### Pull Request Overview This fixes a bug introduced with the Tock 2.0 RNG migration, where the `rng_sync` function would return prior to `yield`ing for the callback to occur. I did test the previous PR (tock#146), although I've hit the bugs of tock#154 so my testing methodology wasn't as thorough as I'd hoped it would be (had limited access to ARM boards then). Fixes: f284e25 ("Update RNG to Tock 2.0 system call interface") ### Testing Strategy This pull request was tested by running the `rng` and `number_guess_game` test apps on a Hail. ### TODO or Help Wanted N/A ### Formatting - [x] Ran uncrustify. 157: Tock 2.0: sound pressure API r=phil-levis a=alexandruradovici This PR adds the user space API for the sound pressure driver (tock/tock#2364) and adds the sound pressure driver to the example sensors app. 158: Tock 2.0: ninedof driver API r=phil-levis a=alexandruradovici The PR updates the ninedof driver API. 159: Tock 2.0: nonvolatile storage & app flash driver r=phil-levis a=lschuermann ### Pull Request Overview This pull request ports both the nonvolatile storage driver and the app flash driver to the Tock 2.0 system call interface. It's the counterpart to tock/tock#2362. It furthermore adds a `BADRVAL` error, as indicated in the Tock 2.0 TRD. Drivers can return this error code (with an assigned value of `-1024`) in case a kernel driver returns an unexpected variant which they do not know how to handle. ### Testing Strategy This pull request was tested by running the `nonvolatile_storage` and `app_state` tests on the accompanying [kernel PR](tock/tock#2362). ### TODO or Help Wanted N/A ### Formatting - [x] Ran uncrustify. Co-authored-by: Alexandru Radovici <[email protected]> Co-authored-by: Leon Schuermann <[email protected]>
This pull request adds the touch driver API and example.
It should close #126