mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-10 16:25:37 +00:00
new book pages
This commit is contained in:
parent
2a1379db5e
commit
eaab43590e
3 changed files with 28 additions and 0 deletions
|
@ -24,6 +24,8 @@
|
||||||
- [Collision avoidance](./collision-avoidance.md)
|
- [Collision avoidance](./collision-avoidance.md)
|
||||||
- [Interrupt handling](./interrupt-handling.md)
|
- [Interrupt handling](./interrupt-handling.md)
|
||||||
- [Starting a Project from Scratch](./from-scratch.md)
|
- [Starting a Project from Scratch](./from-scratch.md)
|
||||||
|
- [Down the Stack Workbook](./down-the-stack.md)
|
||||||
|
- [BSC Exercise](./bsc-exercise.md)
|
||||||
- [Advanced Workbook](./advanced-workbook.md)
|
- [Advanced Workbook](./advanced-workbook.md)
|
||||||
- [Code Organization](./code-organisation.md)
|
- [Code Organization](./code-organisation.md)
|
||||||
- [Listing USB Devices](./listing-usb-devices.md)
|
- [Listing USB Devices](./listing-usb-devices.md)
|
||||||
|
|
26
embedded-workshop-book/src/bsc-exercise.md
Normal file
26
embedded-workshop-book/src/bsc-exercise.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# BSC Exercise
|
||||||
|
|
||||||
|
In this exercise you will learn how to write a board support crate.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Learning goals
|
||||||
|
* implement buttons functionality
|
||||||
|
* impl blocks, associated functions, methods
|
||||||
|
* generate docs!
|
||||||
|
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
* add field in the board struct
|
||||||
|
* add struct for all buttons
|
||||||
|
* add struct for the single button
|
||||||
|
|
||||||
|
* Read docs, section 8.7 for info about pins and pin configuration
|
||||||
|
* add button bring up to board init
|
||||||
|
|
||||||
|
* add doc lines every where!
|
||||||
|
* add methods in impl block:
|
||||||
|
* detect button push
|
||||||
|
* add another... look at knurling book for inspiration
|
||||||
|
|
||||||
|
|
0
embedded-workshop-book/src/down-the-stack.md
Normal file
0
embedded-workshop-book/src/down-the-stack.md
Normal file
Loading…
Reference in a new issue