Fix compile warning in HAWThread
Add HAL Header/Interface
Fix compile warning in HAWThread
Add HAL Header/Interface
Merge branch 'topic/hal' of github.com:Hamdor/SE2-2.3 into topic/hal
Move HWaccess in its own hal folder
Update HAL Class Diagram
Add `abstract_inout` as interface for IO
The HAL will work with all classes which provide the virtual functions of
`abstract_inout`. This allows us to create stubs for test purpose.
Update HAL Diagrams
Make all functions `abstract`. I think C++ round-trip would
create pure virtual functions.
Fix some includes, also added IOCTLADDR
`IOCTLADDR` is the control register. The control register
is used to set a port bit to output or input.
Fix more includes
Add implementation and header of `iowrapper`
This class is based on `abstract_inout` and talks to the hardware.
It wrap the access to `in8()` and `out8()` of `hw/inout.h`.
`HWaccess` can have a pointer to a `abstract_inout` object
Rename `out8()` and `in8()` of `abstract_inout`
Due to a name conflict with `::in8()` and `::out8` the name
of both functions has changed to `inbyte()` and `outbyte()`.
Add TODO notes to `HWaccess`
Add implementation for `HWaccess`
this is not complete yet. This version can't read the height sensor.
Also this is completly untested because of the not working simulation.
Add destructor to `hwaccess`
This is not needed yet, but the class should clean itself up.
Fix usage of `in8()` and `out8()`
seems `hw/inout.h` is not enough, `ioaccess.h`, `sys/neutrino.h`
need to be included also.
Rewrote Blink_Thread to work with our HAL
Add `IOCTLADDRB`, `IOCTLADDRC` and its masks
The masks are `IOCTLPORTB` and `IOCTLPORTC`, values are estimated.