add alarm ok on 9s12, port is not ok on mingw