Exemplo n.º 1
0
        void halt()
        {
            MapConfig cfg = new MapConfig();

            cfg.map_idx = 0xff;
            edio.setConfig(cfg);
            cmd('h');
            if (edio.rx8() != 0)
            {
                throw new Exception("Unexpected response at USB halt");
            }
        }