- // tricky: RESET has a weak pull-up, and is wired to a CBUS line. So,
- // we can pull it down (assert reset) from uart-mode, or we can
- // let it float upward from either mode.
- private void reset(boolean on) throws IOException {
- ftdiuart.uart_and_cbus_mode(1<<1, on ? (1<<1) : 0);
- flush();
- if (on) {
- ftdiuart.dbus_mode(dmask);
- flush();
- }
- }
-
- private void avrrst(boolean on) throws IOException { dbang(7, on); }
- private void clk(boolean on) throws IOException { dbang(6, on); }
- private void data(boolean on) throws IOException { dbang(5, on); }
- private boolean initErr() throws IOException { flush(); return (ftdiuart.readPins() & (1<<4))!=0; }
-