Forked from  max10s-libstb-hal