MCPcopy Create free account
hub / github.com/kiibohd/controller / usage

Function usage

LoadFile/teensy_loader_cli.c:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#include <unistd.h>
36
37void usage(void)
38{
39 fprintf(stderr, "Usage: teensy_loader_cli -mmcu=<MCU> [-w] [-h] [-n] [-v] <file.hex>\n");
40 fprintf(stderr, "\t-w : Wait for device to appear\n");
41 fprintf(stderr, "\t-r : Use hard reboot if device not online\n");
42 fprintf(stderr, "\t-n : No reboot after programming\n");
43 fprintf(stderr, "\t-v : Verbose output\n");
44#if defined(USE_LIBUSB)
45 fprintf(stderr, "\n<MCU> = atmega32u4 | at90usb162 | at90usb646 | at90usb1286 | mk20dx128 | mk20dx256\n");
46#else
47 fprintf(stderr, "\n<MCU> = atmega32u4 | at90usb162 | at90usb646 | at90usb1286\n");
48#endif
49 fprintf(stderr, "\nFor more information, please visit:\n");
50 fprintf(stderr, "http://www.pjrc.com/teensy/loader_cli.html\n");
51 exit(1);
52}
53
54// USB Access Functions
55int teensy_open(void);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…