URL
https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk
[/] [qaz_libs/] [trunk/] [cli/] [cli/] [sys_cmd.c] - Diff between revs 24 and 28
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 24 |
Rev 28 |
Line 80... |
Line 80... |
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
}
|
}
|
|
|
|
|
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
|
static char func_comment( const unsigned char argc, const char *argv[] )
|
|
{
|
|
PRINTF_MACRO( "# > ");
|
|
return EXIT_SUCCESS;
|
|
}
|
|
|
|
|
|
/*-----------------------------------------------------------*/
|
static char func_peek( const unsigned char argc, const char *argv[] )
|
static char func_peek( const unsigned char argc, const char *argv[] )
|
{
|
{
|
volatile unsigned int *address = (volatile unsigned int *)( strtoul( argv[1], (char **)NULL, 16 ) );
|
volatile unsigned int *address = (volatile unsigned int *)( strtoul( argv[1], (char **)NULL, 16 ) );
|
|
|
PRINTF_MACRO( "peek: %s => 0x%08x \r\n", argv[1], *address );
|
PRINTF_MACRO( "peek: %s => 0x%08x \r\n", argv[1], *address );
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.