From eaab43590e62dd9087552a7349d397318ee1329a Mon Sep 17 00:00:00 2001 From: Mirabellensaft Date: Tue, 14 Feb 2023 18:46:54 +0100 Subject: [PATCH] new book pages --- embedded-workshop-book/src/SUMMARY.md | 2 ++ embedded-workshop-book/src/bsc-exercise.md | 26 ++++++++++++++++++++ embedded-workshop-book/src/down-the-stack.md | 0 3 files changed, 28 insertions(+) create mode 100644 embedded-workshop-book/src/bsc-exercise.md create mode 100644 embedded-workshop-book/src/down-the-stack.md diff --git a/embedded-workshop-book/src/SUMMARY.md b/embedded-workshop-book/src/SUMMARY.md index 1e79ec4..696a806 100644 --- a/embedded-workshop-book/src/SUMMARY.md +++ b/embedded-workshop-book/src/SUMMARY.md @@ -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) diff --git a/embedded-workshop-book/src/bsc-exercise.md b/embedded-workshop-book/src/bsc-exercise.md new file mode 100644 index 0000000..cb603da --- /dev/null +++ b/embedded-workshop-book/src/bsc-exercise.md @@ -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 + + diff --git a/embedded-workshop-book/src/down-the-stack.md b/embedded-workshop-book/src/down-the-stack.md new file mode 100644 index 0000000..e69de29