{ "size", 1, 0, 'S' }, @@ -226,12 +231,13 @@ static void parse_opts(int argc, char *argv[]) { "cs-high", 0, 0, 'C' }, { "no-cs", 0, 0, 'N' }, { "ready", 0, 0, 'R' }, { "mosi-idle-low", 0, 0, 'M' }, { "verbose", 0, 0, 'v' }, { NU...
c =getopt_long(argc, argv,"D:s:d:b:lHOLC3NR", lopts,NULL); if(c == -1) break; switch(c) { case'D': device =optarg; break; case's': speed =atoi(optarg); break; case'd': delay =atoi(optarg); break; case'b':
static void pabort(const char *s) { perror(s); abort(); } static const char *device = "/dev/spidev1.1"; static uint32_t mode; static uint8_t bits = 8; static char *input_file; static char *output_file; static uint32_t speed = 500000; ...
92 * converts shell input "\x23" -> 0x23 93 */ Documentation/spi/spidev_test.c: fix warning 7 years ago 94 static int unescape(char *_dst, char *_src, size_t len) spi: spidev_test: Added input buffer from the terminal 7 years ago 95 { 96 int ret = 0; spi...