218: fixed typo in Interrupts.md r=therealprof a=tessi
Just fixing a double-`to` I encountered while reading the book.
Thanks for the great content ❤️
Co-authored-by: Philipp Tessenow <philipp@tessenow.org>
216: Fix `impl Gpio` -> `impl GpioConfig` r=andre-richter a=andebjor
In the two sections "Peripherals as State Machines" and "Design
Contracts" of the "Static Guarantees" chapter, `impl Gpio` was
incorrectly used in place of `impl GpioConfig` at one place in each
section.
Co-authored-by: Björn Andersson <andebjor@gmail.com>
In the two sections "Peripherals as State Machines" and "Design
Contracts" of the "Static Guarantees" chapter, `impl Gpio` was
incorrectly used in place of `impl GpioConfig` at one place in each
section.
This commit fixes that.
203: semihosting: add comment adding feature flag to panic-semihosting r=therealprof a=chibby0ne
This wasn't entirely trivial to find if you've never worked with feature
flags for dependencies. Hopefully it helps others out there.
Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
Co-authored-by: Antonio Gutierrez <chibby0ne@gmail.com>
This wasn't entirely trivial to find if you've never worked with feature
flags for dependencies. Hopefully it helps others out there.
Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
202: install/verify: fix next section link r=jamesmunns a=chibby0ne
The next section in the book is the "Getting Started", not the already
seen section Hardware in the same chapter.
Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
Co-authored-by: Antonio Gutierrez <chibby0ne@gmail.com>
The next section in the book is the "Getting Started", not the already
seen section Hardware in the same chapter.
Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
198: Syst small fix r=adamgreig a=thalesfragoso
To comply with `cortex-m` docs (https://docs.rs/cortex-m/0.6.0/cortex_m/peripheral/struct.SYST.html)
> NOTE The reference manual indicates that:
>
>"The SysTick counter reload and current value are undefined at reset, the correct initialization >sequence for the SysTick counter is:
>
> Program reload value
> Clear current value
> Program Control and Status register"
>
>The sequence translates to self.set_reload(x); self.clear_current(); self.enable_counter()
I think this just slipped through, since the other example on systick does that.
Co-authored-by: thalesfragoso <thales.fragosoz@gmail.com>
196: concurrency: update shared resource examples r=andre-richter a=geomatsi
Hi all,
This PR suggests the following updates for the section on concurrency:
1. Use lazy_static macro to declare shared resources
Suggested example of shared resource declaration does not compile
neither on stable (edition 2018) nor on nightly with the following error:
"error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants"
2. Add example of mutable references to shared resources
Regards,
Sergey
Co-authored-by: Sergey Matyukevich <geomatsi@gmail.com>
At the moment cortex-m crate hides const versions of some functions,
including Mutex::new(), behind the const-fn feature. So this feature
needs to be enabled to cortex-m in Cargo.toml for shared resource
examples.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
194: Fix link for more strict commonmark interpretation. r=therealprof a=ehuss
mdbook will be moving to a newer version of pulldown-cmark which more
closely follows the commonmark spec. Link labels do not allow square brackets.
Co-authored-by: Eric Huss <eric@huss.org>
# QEMU
## Creating a non standard Rust program
### Using `cargo-generate`
### Using `git`
### Using neither
## Cross compiling
## Inspecting
## Running
## Debugging
pull request is related to https://github.com/rust-embedded/book/issues/186
177: Update no-std.md to remove obsolete FAQ link r=adamgreig a=nvll
Per issue #97
Co-authored-by: Christopher Anderson <nvll@users.noreply.github.com>