OpenCores
URL https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [cli/] [cli/] [sys_cmd.c] - Diff between revs 24 and 28

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  );

powered by: WebSVN 2.1.0

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