OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [cmds/] [global.c] - Diff between revs 406 and 467

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 406 Rev 467
Line 67... Line 67...
                return 0;
                return 0;
        } else
        } else
                return -1;
                return -1;
}
}
 
 
#if HELP_ENABLED
 
int globals_cmd(int argc, char *argv[])
int globals_cmd(int argc, char *argv[])
{
{
 
#if HELP_ENABLED
        const char *erase_method_desc[] =
        const char *erase_method_desc[] =
            { "do not erase", "fully", "as needed" };
            { "do not erase", "fully", "as needed" };
        if (argc)
        if (argc)
                return -1;
                return -1;
        printf("src_addr = %08lx\n", global.src_addr);
        printf("src_addr = %08lx\n", global.src_addr);
Line 82... Line 83...
        printf("length = %08lx\n", global.length);
        printf("length = %08lx\n", global.length);
        printf("ip = %08lx\n", global.ip);
        printf("ip = %08lx\n", global.ip);
        printf("srv_ip = %08lx\n", global.srv_ip);
        printf("srv_ip = %08lx\n", global.srv_ip);
        printf("erase_method = %i (%s)\n", (int)global.erase_method,
        printf("erase_method = %i (%s)\n", (int)global.erase_method,
               erase_method_desc[global.erase_method]);
               erase_method_desc[global.erase_method]);
 
#endif /* HELP_ENABLED */
        return 0;
        return 0;
 
 
}
}
#endif /* HELP_ENABLED */
 
 
 
 
 
void module_global_init(void)
void module_global_init(void)
{
{
        register_command("src_addr", "<value>",
        register_command("src_addr", "<value>",
                         "sets global parameter source address", src_addr_cmd);
                         "sets global parameter source address", src_addr_cmd);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.