FreeCalypso > hg > freecalypso-hwlab
view lcdtest/commands.c @ 12:5eaf832d57d0
lcdtest program started, skeleton compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 06 Apr 2018 06:15:11 +0000 |
parents | |
children | 238a77db4134 |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> cmd_wi(argc, argv) char **argv; { write_ir(strtoul(argv[1], 0, 16)); return(0); } cmd_wd(argc, argv) char **argv; { write_dr(strtoul(argv[1], 0, 16)); return(0); } cmd_wr(argc, argv) char **argv; { write_ir(strtoul(argv[1], 0, 16)); write_dr(strtoul(argv[2], 0, 16)); return(0); }