385 Commits

Author SHA1 Message Date
bors[bot]
ff334e74fd Merge #197
197: use_core() is required for #![no_std] compatible generated bindings r=therealprof a=david-perez



Co-authored-by: david-perez <hallaplay835@gmail.com>
2019-07-16 13:47:34 +00:00
david-perez
8b72c1e16a use_core() is required for #![no_std] compatible generated bindings 2019-07-16 00:08:35 +01:00
bors[bot]
b229e8ed5c Merge #196
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>
2019-07-11 21:37:37 +00:00
Sergey Matyukevich
314a00be58 fixup: address review comments
Address review comments by @andre-richter: proof-reading

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
2019-07-11 21:43:19 +03:00
Sergey Matyukevich
18557e7486 concurrency: add note about const-fn feature in cortex-m crate
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>
2019-07-09 23:15:49 +03:00
Sergey Matyukevich
a0f62dd355 concurrency: example of mutable reference to shared resource
Add example of mutable reference to shared resource
using borrow_mut and deref_mut.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
2019-07-09 22:39:50 +03:00
bors[bot]
ef27b517dc Merge #194
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>
2019-06-18 22:59:47 +00:00
Eric Huss
a7da551162 Fix link for more strict commonmark interpretation.
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.
2019-06-18 15:55:07 -07:00
bors[bot]
f0c75b75f9 Merge #193
193: Qemu md changes r=therealprof a=stefaneicher



Co-authored-by: Stefan Eicher <stefan.eicher@swisscom.com>
2019-06-03 10:49:02 +00:00
Stefan Eicher
b003f33afa create section ## Program Overview
to make obvious that this is no part of those sections
### Using `cargo-generate`
### Using `git`
### Using neither
2019-06-03 11:05:36 +02:00
Stefan Eicher
a9e976af03 move "**IMPORTANT** We'll use the name "app" for the project name"
since the term app is already used before
2019-06-03 11:05:36 +02:00
Stefan Eicher
c0f7b63c30 delete "Using the command line:" to make the documentation style consistent to the previous command line blocks 2019-06-03 11:05:36 +02:00
Stefan Eicher
753d71acb9 add comment to run "cargo install cargo-generate" first 2019-06-03 11:05:36 +02:00
Stefan Eicher
51845ac403 Update headings to get the the following TOC
# 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
2019-06-03 11:05:29 +02:00
bors[bot]
9858872bd1 Merge #167
167: Update linux.md r=korken89 a=flip111

https://github.com/rust-embedded/book/issues/136

https://github.com/rust-embedded/book/issues/137

Co-authored-by: flip111 <flip101@gmail.com>
Co-authored-by: Vadim Kaushan <admin@disasm.info>
2019-05-02 18:56:54 +00:00
Vadim Kaushan
abb79175fb Remove obsoleve AUR instructions 2019-05-01 21:38:22 +02:00
Vadim Kaushan
4f7338edc9 Merge branch 'master' into patch-10 2019-05-01 21:36:31 +02:00
bors[bot]
8f366fec4f Merge #165
165: Clarify list of available targets for installation r=korken89 a=adamgreig



Co-authored-by: Adam Greig <adam@adamgreig.com>
2019-05-01 15:35:35 +00:00
bors[bot]
cd672551b9 Merge #188
188: minor grammar fix r=andre-richter a=erichschroeter

This reads better.

Co-authored-by: Erich Schroeter <erichschroeter@gmail.com>
2019-04-29 18:32:58 +00:00
Erich Schroeter
df601ce501 minor grammar fix 2019-04-29 13:30:12 -05:00
bors[bot]
de3d55f521 Merge #185
185: Minor fixes r=therealprof a=nickgolangi

As per issue https://github.com/rust-embedded/book/issues/184.

I removed the word "long" as well, to further shift the tone from teaching toward collaboration.

Co-authored-by: nickgolangi <48889034+nickgolangi@users.noreply.github.com>
2019-04-22 12:58:28 +00:00
nickgolangi
6e2cc8fc49 Change to first person and improve tone 2019-04-20 12:03:22 -04:00
nickgolangi
2546d1771b Grammar fix 2019-04-20 12:01:43 -04:00
bors[bot]
7989c72360 Merge #183
183: fix #182 r=jamesmunns a=tim-seoss

PR for #182

Co-authored-by: Tim Small <tim@seoss.co.uk>
2019-04-04 12:14:37 +00:00
Tim Small
5c6b0165c0 Whitespace (re-wrap). 2019-04-04 12:53:09 +01:00
Tim Small
d5fd57d9a5 Fix grammar-o https://github.com/rust-embedded/book/issues/182 2019-04-04 12:52:01 +01:00
bors[bot]
ee6d62c1e7 Merge #179
179: Add openocd to list of installable packages r=therealprof a=TheNeikos

The openocd package is now in the community repository of Archlinux.

https://www.archlinux.org/packages/community/x86_64/openocd/

Co-authored-by: Marcel Müller <com2040@gmail.com>
2019-03-28 10:27:31 +00:00
bors[bot]
07fd3880ea Merge #180
180: Fix test errors. r=korken89 a=ehuss

Upstream rust-lang/rust requires `mdbook test` to pass.  See https://github.com/rust-lang/rust/pull/59366#issuecomment-475965444

Co-authored-by: Eric Huss <eric@huss.org>
2019-03-27 15:40:52 +00:00
Eric Huss
9f103c2a8a Fix test errors. 2019-03-24 10:38:01 -07:00
Marcel Müller
b85f872b72 Add openocd to list of installable packages
The openocd package is now in the community repository of Archlinux.

https://www.archlinux.org/packages/community/x86_64/openocd/
2019-03-14 16:31:21 +01:00
bors[bot]
4240940431 Merge #170
170: Update qemu.md r=adamgreig a=flip111

https://github.com/rust-embedded/book/issues/144

Co-authored-by: flip111 <flip101@gmail.com>
2019-03-11 21:46:26 +00:00
bors[bot]
f2c70371a2 Merge #177
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>
2019-03-10 22:02:59 +00:00
Christopher Anderson
61cba82edc Update no-std.md to remove obsolete FAQ link
Per issue #97
2019-03-10 13:54:59 -07:00
bors[bot]
fe2038cadd Merge #176
176: We've come a long way :) r=therealprof a=jamesmunns



Co-authored-by: James Munns <james.munns@ferrous-systems.com>
2019-03-05 21:10:59 +00:00
bors[bot]
c706cce858 Merge #175
175: Correct link to team r=therealprof a=jamesmunns



Co-authored-by: James Munns <james.munns@ferrous-systems.com>
2019-03-05 21:08:25 +00:00
James Munns
e8019bcd01 We've come a long way :) 2019-03-05 22:07:12 +01:00
James Munns
ba6a5e8409 Correct link to team 2019-03-05 22:05:29 +01:00
bors[bot]
07166af479 Merge #173
173: Update some book links to their new homes. r=thejpster a=ehuss



Co-authored-by: Eric Huss <eric@huss.org>
2019-03-05 14:03:06 +00:00
Eric Huss
915b85bb5a Update some book links to their new homes. 2019-03-04 10:03:16 -08:00
bors[bot]
9e656ead82 Merge #174
174: Small text changes r=therealprof a=Niederb

Some small changes I did while reading.
Feel fee to incorporate what you like and discard the rest.

Co-authored-by: Thomas Niederberger <thomas@niederb.ch>
2019-03-03 16:03:26 +00:00
Thomas Niederberger
133f4f069e Small text changes 2019-03-03 15:30:59 +01:00
bors[bot]
2503da484f Merge #172
172: Update tooling.md r=japaric a=flip111

https://github.com/rust-embedded/book/issues/143

Co-authored-by: flip111 <flip101@gmail.com>
2019-02-19 09:53:33 +00:00
bors[bot]
9dc02c120e Merge #169
169: Update hardware.md r=therealprof a=flip111

https://github.com/rust-embedded/book/issues/140

Co-authored-by: flip111 <flip101@gmail.com>
Co-authored-by: Daniel Egger <daniel@eggers-club.de>
2019-02-18 23:08:12 +00:00
Daniel Egger
7014327b9c Update src/intro/hardware.md
Co-Authored-By: flip111 <flip101@gmail.com>
2019-02-18 23:05:03 +00:00
flip111
d17fac823a Update hardware.md 2019-02-18 22:55:30 +00:00
bors[bot]
1d06b78898 Merge #171
171: install-macos: remove Homebrew tap command r=therealprof a=vitorgalvao

You don’t need to

```bash
brew tap armmbed/formulae
brew install armmbed/formulae/arm-none-eabi-gcc
```

You either

```bash
brew tap armmbed/formulae
brew install arm-none-eabi-gcc
```

Or you

```bash
brew install armmbed/formulae/arm-none-eabi-gcc
```

Which taps and installs in a single command.

Co-authored-by: Vítor Galvão <info@vitorgalvao.com>
2019-02-18 22:45:33 +00:00
flip111
8893a33bf8 Update hardware.md 2019-02-18 22:18:39 +00:00
flip111
ee2cd6d5c1 Update tooling.md 2019-02-18 21:52:29 +00:00
bors[bot]
9b1540f7c5 Merge #168
168: Update SUMMARY.md r=andre-richter a=flip111



Co-authored-by: flip111 <flip101@gmail.com>
2019-02-18 21:51:18 +00:00
Vítor Galvão
73a4a5876b install-macos: remove Homebrew tap command 2019-02-18 21:24:13 +00:00