mirror of
https://github.com/nkbai/book.git
synced 2026-09-05 22:14:54 +08:00
Update src/portability/portability.md
Co-Authored-By: therealprof <daniel@eggers-club.de>
This commit is contained in:
@@ -18,7 +18,7 @@ How do we do this in Rust? Enter **embedded-hal**...
|
||||
|
||||
## What is embedded-hal?
|
||||
|
||||
In a nutshell it is a set of traits which define implementation contracts between **HAL implementations**, **drivers** and **applications (or firmwares)**. Those contracts include both capabilities (i.e. if a trait is implemented for a certain type, it is easy to see that a **HAL implementation** provides a certain capability) and methods (i.e. if you can construct a type implementing a trait it is guarenteed that you have the methods specified in the trait available).
|
||||
In a nutshell it is a set of traits which define implementation contracts between **HAL implementations**, **drivers** and **applications (or firmwares)**. Those contracts include both capabilities (i.e. if a trait is implemented for a certain type, the **HAL implementation** provides a certain capability) and methods (i.e. if you can construct a type implementing a trait it is guarenteed that you have the methods specified in the trait available).
|
||||
|
||||
Some of the defined traits in **embedded-hal** are:
|
||||
* GPIO (input and output pins)
|
||||
|
||||
Reference in New Issue
Block a user