Platform independent library for embedded systems