FreeCalypso > hg > freecalypso-hwlab
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lcdtest/commands.c Fri Apr 06 06:15:11 2018 +0000 @@ -0,0 +1,24 @@ +#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); +}