new book pages

This commit is contained in:
Mirabellensaft 2023-02-14 18:46:54 +01:00
parent 2a1379db5e
commit eaab43590e
3 changed files with 28 additions and 0 deletions

View file

@ -24,6 +24,8 @@
- [Collision avoidance](./collision-avoidance.md)
- [Interrupt handling](./interrupt-handling.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)
- [Code Organization](./code-organisation.md)
- [Listing USB Devices](./listing-usb-devices.md)

View 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