return f;
}
+static const char *portname = "/dev/cu.usbserial-AL0254JM";
+
static void usage(const char *argv0)
{
printf("usage:\n"
"%s [options]\n"
- " -d <ttydevice> (default /dev/ttyUSB0)\n"
+ " -d <ttydevice> (default %s)\n"
" -r <file> [size] dump the cart (default 4MB)\n"
" -w <file> [size] program the flash (def. file size)\n"
" -s <file> [size] simple write (SRAM, etc, def. file size)\n"
" -8 8bit flash\n"
" -v verify written data\n"
" -i get info about the flash chip\n"
- , argv0);
+ , argv0, portname);
exit(1);
}
int main(int argc, char *argv[])
{
- const char *portname = "/dev/ttyUSB0";
const char *fname_w = NULL;
const char *fname_r = NULL;
const char *fname_ws = NULL;