Update src/portability/portability.md

Co-Authored-By: therealprof <daniel@eggers-club.de>
This commit is contained in:
James Munns
2018-10-30 10:46:10 +01:00
committed by GitHub
parent 32173c42a0
commit 2c339bfa24

View File

@@ -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)