lib/sw_apps/zynq_dram_test/src/test01.c
int ddriob_get()
{
  int i, addr, data;
  // init regs
  for (i=0; i<15; i++)
  {
    addr = ddriob_reg_values[2*i + 0];
    data = REG_READ(addr);
    ddriob_reg_values[2*i + 1] = data;
    REG_WRITE(addr, data);
  }
  printf("    ** read all ddriob regs \r\n");
  return 0;
}
/****************************************************************************
 * Function: ddriob_get
 * Description: Get Current state of the ddriob regs
 ****************************************************************************/
ddriob_get
Description: Get Current state of the ddriob regs
ddriob_get Description : Get Current state of the ddriob regs
int ddriob_get()
{
  int i, addr, data;
  for (i=0; i<15; i++)
  {
    addr = ddriob_reg_values[2*i + 0];
    data = REG_READ(addr);
    ddriob_reg_values[2*i + 1] = data;
    REG_WRITE(addr, data);
  }
  printf("    ** read all ddriob regs \r\n");
  return 0;
}
int ddriob_get ( ) { int i , addr , data ; for ( i = 0 ; i < 15 ; i ++ ) { addr = ddriob_reg_values [ 2 * i + 0 ] ; data = REG_READ ( addr ) ; ddriob_reg_values [ 2 * i + 1 ] = data ; REG_WRITE ( addr , data ) ; } printf ( " \r \n " ) ; return 0 ; }
Function: ddriob_get
 Description: Get Current state of the ddriob regs
Function : ddriob_get Description : Get Current state of the ddriob regs
// init regs