Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

alexandruradovici
Copy link
Contributor

@alexandruradovici alexandruradovici commented Dec 30, 2020

This pull request adds the touch driver API and example.

It should close #126

@phil-levis phil-levis added the tock-2.0 Pull request is part of the transition to Tock 2.0 label Dec 30, 2020
libtock/touch.c Outdated
}else {
err = TOCK_EALREADY;
}
}else {
Copy link
Contributor

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?

Copy link
Contributor Author

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 :)

@phil-levis
Copy link
Contributor

bors r+

@bors bors bot merged commit 6e4f23e into tock:tock-2.0-dev Jan 22, 2021
@bors
Copy link
Contributor

bors bot commented Jan 22, 2021

Build succeeded:

tyler-potyondy pushed a commit to tyler-potyondy/libtock-c that referenced this pull request Mar 13, 2024
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tock-2.0 Pull request is part of the transition to Tock 2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants