Commit graph

19 commits

Author SHA1 Message Date
Mirabellensaft 59f20c1c05 fix dangling usb 2022-01-12 17:02:33 +01:00
Mirabellensaft ca262675e8 info! -> println! 2022-01-10 14:31:07 +01:00
Lotte Steenbrink b672967d8a use defmt in training materials 2022-01-10 14:28:15 +01:00
Lotte Steenbrink 57f433204b [untested] switch rest of dk over to defmt as well 2022-01-10 14:24:44 +01:00
Lotte Steenbrink 11f82978e9 dk lib: minor formatting improvement 2022-01-10 14:24:44 +01:00
Lotte Steenbrink af4b9e3b76 k: move to defmt 2022-01-10 14:24:44 +01:00
Jorge Aparicio 5ff9fd0f8a move dk BSP to nrf52840-hal 0.12.1 2021-03-16 13:06:55 +01:00
Jorge Aparicio 450b3b77a9 make rustfmt happy 2021-01-28 16:14:44 +01:00
Jorge Aparicio 17ebad4a3c adapt to breaking changes in cortex-m-rtic 0.5.x
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
2021-01-28 16:02:53 +01:00
Lotte Steenbrink 529f5ea34c use probe-run instead of dk-run 2020-08-17 14:34:07 +02:00
Jorge Aparicio ea2fc91029
Merge pull request #9 from ferrous-systems/puzzle-ch25
puzzle hints, recv_timeout, etc.
2020-06-25 11:40:21 +00:00
Jorge Aparicio 80cb2caa09 add a compiler fence before exiting
the rtt-target implementation is light on compiler fences so the compiler could
be doing unwanted reordering of memory operations. At least patch up a place
where these orderings may result in an observable change of behavior
2020-06-24 17:20:42 +02:00
Jorge Aparicio 9c1e496ef5 dk: print message before exiting 2020-06-24 16:57:53 +02:00
Lotte Steenbrink 56abdbad34 increase rtt buffer & number of attach retries 2020-06-24 15:32:04 +02:00
Lotte Steenbrink d7cc36d237 boards/dk/src/lib.rs: increase rtt bufsz, set mode to blocking for beginner 2020-06-24 11:31:47 +02:00
Jorge Aparicio 8140c7bba9 WIP: show recv_timeout API
TODO update text
2020-06-23 11:28:27 +02:00
Jorge Aparicio 3983ee5310 - beginner and advanced Cargo features
- more work on advanced text
- update hex files
2020-06-11 13:48:35 +02:00
Jorge Aparicio 31c331c1a3 - dk: API docs
- advanced: adapt to changes in usb2 dependency
- dk: add reminder to connect the USB cable to port J3
2020-06-09 18:17:30 +02:00
Jorge Aparicio 53d10f9a4a squashed 2020-06-09 11:58:27 +02:00