Compare commits

...

2 commits

Author SHA1 Message Date
Jonathan Pallant b7fca7dc70
Update down-the-stack-book/src/the_hal.md
Co-authored-by: Tanks Transfeld <Mirabellensaft@users.noreply.github.com>
2023-03-23 13:54:16 +00:00
Jonathan Pallant fd981f98dc
Update down-the-stack-book/src/the_hal.md
Co-authored-by: Tanks Transfeld <Mirabellensaft@users.noreply.github.com>
2023-03-23 13:53:58 +00:00

View file

@ -74,7 +74,7 @@ This differs widely across MCUs (ST, Nordic, Espressif, Atmel, etc). Some MCUs (
## Correctness by design
* HALs want to make it hard to do the wrong thing
* Is a UART driver any use, if you haven't configured at least one TX pin and one RX pin?
* Is a UART driver of any use, if you haven't configured at least one TX pin and one RX pin?
* Should the UART driver check you've done that?
---
@ -93,5 +93,5 @@ let pins = hal::uarte::Pins {
let uarte = hal::uarte::Uarte::new(periph.UARTE1, pins, Parity::EXCLUDED, Baudrate::BAUD115200);
```
This is example is for the nRF52. We'll use it later in the example.
This is an example for the nRF52. We'll use it later in the example.