mirror of
https://github.com/im-tomu/fomu-workshop.git
synced 2024-09-20 03:10:12 +00:00
docs: add shell-session to example sessions
For https://github.com/im-tomu/fomu-workshop/issues/144#issuecomment-595993657 mark the session types of examples so that the automagic copynpaste handling knows how to figure out which parts to copy, rather than defaulting to copying everything.
This commit is contained in:
parent
fda6bed5ca
commit
a0c992335a
@ -254,7 +254,7 @@ As an alternative to C, the `Rust Language <https://www.rust-lang.org/>`_ can be
|
||||
To install Rust, follow the instructions on https://rustup.rs/. After installing Rust, we can install support for RISCV
|
||||
targets using ``rustup``:
|
||||
|
||||
.. session::
|
||||
.. session:: shell-session
|
||||
|
||||
$ rustup target add riscv32i-unknown-none-elf
|
||||
info: downloading component 'rust-std' for 'riscv32i-unknown-none-elf'
|
||||
@ -264,7 +264,7 @@ targets using ``rustup``:
|
||||
A Rust version of the C program used above is located in the ``riscv-rust-blink`` directory. Change into that directory,
|
||||
and build it using ``cargo``, the Rust package manager:
|
||||
|
||||
.. session::
|
||||
.. session:: shell-session
|
||||
|
||||
$ cargo build --release
|
||||
Compiling semver-parser v0.7.0
|
||||
@ -292,7 +292,7 @@ and build it using ``cargo``, the Rust package manager:
|
||||
The resulting binary is located in the target subfolder: ``target/riscv32i-unknown-none-elf/release/riscv-rust-blink``. It can
|
||||
be flashed using the ``flash.sh`` script, also located in the ``riscv-rust-blink`` folder:
|
||||
|
||||
.. session::
|
||||
.. session:: shell-session
|
||||
|
||||
$ ./flash.sh
|
||||
dfu-suffix (dfu-util) 0.9
|
||||
|
@ -15,7 +15,7 @@ Enter the ``verilog/blink-expanded`` directory and build the demo by using ``mak
|
||||
**Make sure you set the ``FOMU_REV`` value to match your hardware! See
|
||||
the Required Hardware section.**
|
||||
|
||||
.. session::
|
||||
.. session:: shell-session
|
||||
|
||||
$ make FOMU_REV=$FOMU_REV
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user