C library for hardware abstraction on embedded systems