LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2021-05-02 e6d003042de72cf12e36190b5c8a3a505d923863
update comport test program
1 files modified
8 ■■■■ changed files
booster/test/comport.c 8 ●●●● patch | view | raw | blame | history
booster/test/comport.c
@@ -53,7 +53,7 @@
        {NULL, 0, NULL, 0}
    };
    while ((opt = getopt_long(argc, argv, "d:b:s:vh", long_options, NULL)) != -1)
    while ((opt = getopt_long(argc, argv, "d:b:s:xvh", long_options, NULL)) != -1)
    {
        switch (opt)
        {
@@ -175,10 +175,10 @@
    ptr = strdup(name);
    progname = basename(ptr);
    printf("Usage1: comport -d <device> [-b <baudrate>][-s <settings>] [-x]\n");
    printf(" -d[device  ]  device name\n");
    printf("Usage: comport -d <device> [-b <baudrate>][-s <settings>] [-x]\n");
    printf(" -d[device  ]  device name, such as /dev/ttyUSB0\n");
    printf(" -b[baudrate]  device baudrate (115200, 57600, 19200, 9600), default is 115200\n");
    printf(" -s[settings]  device settings as like 8N1N(default setting)\n");
    printf(" -s[settings]  device settings as like 8N1N(defalt setting)\n");
    printf("                 - data bits: 8, 7\n");
    printf("                 - parity: N=None, O=Odd, E=Even, S=Space\n");
    printf("                 - stop bits: 1, 0\n");