hw/bsp/hikey960_dwmX000/src/hal_system.c
/*
 * When running projects within simulator, it's useful to be able to
 * pass operating info as parameters to simulator program.
 * This routine is meant to parse those.
 */
When running projects within simulator, it's useful to be able to
pass operating info as parameters to simulator program.
This routine is meant to parse those.
When running projects within simulator it ' s useful to be able to pass operating info as parameters to simulator program . This routine is meant to parse those .
static void
usage(char *progname, int rc)
{
    const char msg1[] = "Usage: ";
    const char msg2[] =
      "\n [-f flash_file][-u uart_log_file][--uart0 <file>][--uart1 <file>]\n"
      "     -f flash_file tells where binary flash file is located. It gets\n"
      "        created if it doesn't already exist.\n"
      "     -u uart_log_file puts all UART data exchanges into a logfile.\n"
      "     -uart0 uart0_file connects UART0 to character device uart0_file.\n"
      "     -uart1 uart1_file connects UART1 to character device uart1_file.\n";
    rc = write(2, msg1, strlen(msg1));
    rc |= write(2, progname, strlen(progname));
    rc |= write(2, msg2, strlen(msg2));
    exit(rc);
}
static void usage ( char * progname , int rc ) { const char msg1 [ ] = " " ; const char msg2 [ ] = " \n \n " " \n " " \n " " \n " " \n " " \n " ; rc = write ( 2 , msg1 , strlen ( msg1 ) ) ; rc |= write ( 2 , progname , strlen ( progname ) ) ; rc |= write ( 2 , msg2 , strlen ( msg2 ) ) ; exit ( rc ) ; }
When running projects within simulator, it's useful to be able to
 pass operating info as parameters to simulator program.
When running projects within simulator it ' s useful to be able to pass operating info as parameters to simulator program .