FreeCalypso > hg > freecalypso-tools
view loadtools/compalram.c @ 636:3172e3111ab7
loadtools/romload.c: implemented grouping of S-records into bigger blocks
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 01 Mar 2020 05:40:29 +0000 |
parents | 8c011177adb9 |
children |
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> 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_serial_port(target_ttydev); perform_compal_stage(); tty_passthru(); exit(0); }