FreeCalypso > hg > freecalypso-tools
view loadtools/compalram.c @ 238:08ad558c1fbc
CHANGES: exitcodes.h addition documented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 20 Aug 2017 18:40:03 +0000 |
parents | e7502631a0f9 |
children | 8c011177adb9 |
line wrap: on
line source
/* * This module contains the main() function for fc-compalram, a trivial * utility that feeds a binary download image to Compal's bootloader * and then switches into serial tty pass-through. */ #include <stdio.h> #include <stdlib.h> extern char *target_ttydev; main(argc, argv) char **argv; { if (argc != 3) { fprintf(stderr, "usage: fc-compalram ttyport image.bin\n"); exit(1); } target_ttydev = argv[1]; set_compalstage_fullpath(argv[2]); open_target_serial(); perform_compal_stage(0); tty_passthru(); exit(0); }