227: Setting output to `high` needs a `true` argument r=therealprof a=Rosto75
See the comment in line 239.
Co-authored-by: Tomasz Różański <rosto@tlen.pl>
226: Add licence notes to index.md r=therealprof a=thejpster
After discussions with someone who had re-used material without attribution, we agreed it would be useful to make the licence terms more prominent to those reading the rendered book (as opposed to browsing the Github repo).
Co-authored-by: Jonathan 'theJPster' Pallant <github@thejpster.org.uk>
After discussions with someone who had re-used material without attribution, we agreed it would be useful to make the licence terms more prominent to those reading the rendered book (as opposed to browsing the Github repo).
224: Make typestate initialization notes correct r=therealprof a=Logan-Hunter
As written previously, the note after the initial typestate
programming example saying that there's no direct way to create
a Foo object wasn't quite accurate; in the sample given you
definitely could, since Foo and FooBuilder weren't isolated
into a module. Isolated Foo and FooBuilder into a module to
make the statement correct.
Co-authored-by: Logan Hunter <loganhunter27@gmail.com>
As written previously, the note after the initial typestate
programming example saying that there's no direct way to create
a Foo object wasn't quite accurate; in the sample given you
definitely could, since Foo and FooBuilder weren't isolated
into a module. Isolated Foo and FooBuilder into a module to
make the statement correct.
219: Mention discovery book more prominently r=thejpster a=phansch
Hi, I just started reading the book and only by chance found the discovery book via the bookshelf.
I think it's worth mentioning it explicitly somewhere on this page for people who are not familiar with embedded development.
Co-authored-by: Philipp Hansch <dev@phansch.net>
222: Replace nursery links with rust-lang links r=thejpster a=phansch
Both repos have been moved to the `rust-lang` org and the links are
still redirecting properly. This way we just avoid the redirect and make
the link shorter.
Co-authored-by: Philipp Hansch <dev@phansch.net>
223: Add a Glossary appendix page r=thejpster a=phansch
Same structure as the [rustc-guide] basically.
I added some initial abbreviations and hope the explanations are correct.
I think it would be nice to get this merged without much iteration, so other people can start filling things in, too.
Closes#220
[rustc-guide]: https://rust-lang.github.io/rustc-guide/appendix/glossary.html#appendix-c-glossary
Co-authored-by: Philipp Hansch <dev@phansch.net>
Both repos have been moved to the `rust-lang` org and the links are
still redirecting properly. This way we just avoid the redirect and make
the link shorter.
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