diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-10-16 14:21:36 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-16 14:21:36 +0000 |
| commit | d81a203ee264c8bb77eaae18944d4cace7b1683c (patch) | |
| tree | 762c46eb57c8485c787cdaa45a9e6d660e0ed0ea /Cargo.example.toml | |
| parent | 05bc4d198e558a153d78e0fa07228c73023c4b5b (diff) | |
| parent | 66d70cd146b44a2b3115d306cc9a785d84b45288 (diff) | |
| parent | 4c0fa03c14b95726e4107a65e54601e07d6653ae (diff) | |
Merge #429 #431
429: nrf/uarte: do not use WFE on drop. r=Dirbaio a=Dirbaio
- It disturbs other stuff that uses WFE/SEV in the system. I ran into issues with this.
- It needs the irq handler to check for RXTO/TXSTOPPED errors, which makes it slower.
431: interrupt: transmute instead of steal. r=Dirbaio a=Dirbaio
That steal method has a TAKEN=true write [here](https://github.com/rust-embedded/cortex-m/blob/6b013138b734b9bbeb24a345f75d2bcc1c69fa8d/src/peripheral/mod.rs#L180).
This is not zero cost, we don't want it. Transmute instead, which is zero cost.
Co-authored-by: Dario Nieuwenhuis <[email protected]>
