rewrite Cpu Timer0 API