mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-25 07:18:08 +00:00
17ebad4a3c
at some point cortex-m-rtic fixed a memory safety bug: RTIC was not marking the cortex_m::Peripherals singleton as "taken" in its pre-init code. This made it possible to create two instances of the singleton, e.g. by calling `cortex_m::Peripherals::take` in an RTIC app. the fix included a breaking change: it makes `Peripherals::take` return `None` from within an RTIC app. This breaks the use of `dk::init`, which `take`s those `Peripherals`, within an RTIC app and thus breaks most of the exercises / examples in the advanced workshop this PR fixes the issue by making `dk::init` not `take` the `Peripherals`. For more details read in-line comments in the diff |
||
---|---|---|
.. | ||
dk | ||
dongle | ||
.gitignore |