embedded-trainings-2020/embedded-workshop-book/src/uarte-implementation.md

10 lines
472 B
Markdown
Raw Normal View History

2023-02-21 15:24:57 +00:00
# Write the Uarte implementation
## Step-by-Step Solution
* add field to the board struct
* add struct for the instance, how to figure out what the type of the inner field is
* create instance in init, add baudrate, parity etc.
* add to instantiation of board struct
* impl fmt::Write for the Uarte struct, simple write does not work because of dma
* example code with button is not a good idea for the simple button implementation.
I think this is plenty for an hour.