Intro to testing

This commit is contained in:
Mirabellensaft 2023-03-07 16:58:17 +01:00
parent 373e791693
commit a1e990b1e9

View file

@ -1,9 +1,17 @@
# BSC Exercise
In this exercise you will learn how to write a board support crate.
The template `dk_bsc/src/lib.rs` already contains the LED and Timer implementations. You will implement the buttons and the UARTE peripheral.
In this exercise you will learn how to write a board support crate by implementing buttons and the UARTE peripheral.
Note: Introduction to the exercise is a guided tour through the template, and it's architecture. Make the participants aware of the placeholders for their implementations. run the hello example on the unmodified lib.
The template `down-the-stack/dk_bsc/src/lib.rs` already contains the LED and Timer implementations.
You can test after each step by running the following command out of `down-the-stack/apps`
```
cargo run --bin hello
```
This program will not call any of the functions you are implementing, so it does not matter if they are incomplete. It will refuse to build if there are errors present in the lib!
Note for trainer: Introduction to the exercise is a guided tour through the template, and it's architecture. Make the participants aware of the placeholders for their implementations. run the hello example on the unmodified lib.
## You will learn how to