view lcdtest/commands.c @ 15:4194b6744890

lcdtest: look for our custom USB ID by default
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 07 Apr 2018 06:24:16 +0000
parents 5a602e512b12
children 1e94c7d4af03
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);
}