nrf-rs / nrf-hal

A Rust HAL for the nRF family of devices
Apache License 2.0
503 stars 139 forks source link

add rtic serial interrupt example #363

Open elwerene opened 2 years ago

elwerene commented 2 years ago

I'm sorry I didn't get the gdb runnter to run, so I could only test a version with probe-rs (sth similiar like here: https://github.com/elwerene/nrf52833-rtic-serial-interrupt).

It took me some hours to get a working version with lots of help from people hanging around at the nRF Rust Matrix channel.

I also only could test the code on nrf52833. Should I remove the other features, or will it work on them?

jonas-schievink commented 2 years ago

Note that we're not currently merging any more examples due to https://github.com/nrf-rs/nrf-hal/issues/358

elwerene commented 2 years ago

Oops.. well that's reasonable! Maybe it's enough to have it as an open pull request so people can find it :)

elwerene commented 2 years ago

I'm feeling stupid now as that's exactly where I could have found a more or less working example in https://github.com/nrf-rs/nrf-hal/pull/102 :/

elwerene commented 2 years ago

Could I somehow work this into the documentation? I really don't want anyone else to have to follow my path to UART interrupts.