Sun Nov 23 18:26:04 CET 2008

problems shutting down uart mode

When I use EXIT_UART_MODE, the chip won't properly reconnect on next
start.  When I don't do this, the pickit isn't closed down properly.
I don't know what this is..

Anyways, the following code works as a hackaround:

          (uart-write 1 6)
          (msleep 100)
          (unless (uart-try-read)
            (printf "uart-start hack\n")))