Started working on a HAL.
Merge pull request #1 from antoinealb/hardware_abstraction

Started working on a HAL.