mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-18 16:28:22 +00:00
Compare commits
2 commits
3ae002e00b
...
b7fca7dc70
Author | SHA1 | Date | |
---|---|---|---|
b7fca7dc70 | |||
fd981f98dc |
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue