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

Add GPIO example #498

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Add GPIO example #498

merged 3 commits into from
Sep 13, 2023

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Aug 8, 2023

Simple GPIO interrupt example. Tested on the nRF52840dk.

@bradjc bradjc mentioned this pull request Aug 8, 2023
examples/gpio.rs Outdated Show resolved Hide resolved
@bradjc
Copy link
Contributor Author

bradjc commented Aug 11, 2023

jrvanwhy added a commit to jrvanwhy/libtock-rs that referenced this pull request Aug 24, 2023
This PR defines a Minimum Supported Rust Version. It specifies that toolchain in `rust-toolchain`, so `rustup` will use that toolchain by default. The `test-stable` make action is removed, as it is now redundant.

We still need the nightly toolchain for Miri. Instead of specifying the nightly toolchain version via the command line, I created a new `nightly/rust-toolchain.toml` file that specifies the toolchain. The benefit is this makes `rustup` automatically install the nightly toolchain *including Miri*. This should stop the toil we currently have where every time the Rust toolchain is updated, everyone using `make test` has to manually install new toolchains and Miri. The downside is it's kinda ugly.

I set the MSRV to 1.70 so this doesn't conflict with tock#498.

I will send another PR that adds `rust-version.workspace = true` to all the `Cargo.toml` files in this repository; I didn't want to clutter this PR with those changes.
jrvanwhy added a commit to jrvanwhy/libtock-rs that referenced this pull request Aug 24, 2023
This PR defines a Minimum Supported Rust Version. It specifies that toolchain in `rust-toolchain`, so `rustup` will use that toolchain by default. The `test-stable` make action is removed, as it is now redundant.

We still need the nightly toolchain for Miri. Instead of specifying the nightly toolchain version via the command line, I created a new `nightly/rust-toolchain.toml` file that specifies the toolchain. The benefit is this makes `rustup` automatically install the nightly toolchain *including Miri*. This should stop the toil we currently have where every time the Rust toolchain is updated, everyone using `make test` has to manually install new toolchains and Miri. The downside is it's kinda ugly.

I set the MSRV to 1.70 so this doesn't conflict with tock#498.

I will send another PR that adds `rust-version.workspace = true` to all the `Cargo.toml` files in this repository; I didn't want to clutter this PR with those changes.
@jrvanwhy jrvanwhy added this pull request to the merge queue Sep 13, 2023
Merged via the queue into master with commit cda8737 Sep 13, 2023
3 checks passed
@jrvanwhy jrvanwhy deleted the example-gpio branch September 13, 2023 22:09
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.

3 participants