Update src/portability/portability.md

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

View File

@@ -47,7 +47,7 @@ Such a **HAL implementation** can come in various flavours:
### Driver
A driver implements a set of custom functionality for an internal or external component, connected to a peripheral implementating the embedded-hal traits. Typical examples for such drivers include various sensors (temperatur, magnetometer, accelerometer, light), display devices (LED arays, LCD displays) and actors (motors, relais).
A driver implements a set of custom functionality for an internal or external component, connected to a peripheral implementing the embedded-hal traits. Typical examples for such drivers include various sensors (temperatur, magnetometer, accelerometer, light), display devices (LED arays, LCD displays) and actors (motors, relais).
A driver has to be initialised with an instance of type that implements a certain `trait` of the embedded-hal which is ensured via trait bound and provides its own type instance with a custom set of methods allowing to interact with the driven device.