123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef SDRAMPEEK_SOURCE
- #define SDRAMPEEK_SOURCE
- #include <stdio.h>
- #include "../ram/sdram.h"
- #include "../tools/memory.h"
- void sdrampeek (struct config_ram * config_ram)
- {
- printf ("\tSIZE=0x%08X (%dmb)\n", LE32TOH (config_ram->SDRAMSIZE), LE32TOH (config_ram->SDRAMSIZE)>>20);
- printf ("\tCONF=0x%08X\n", LE32TOH (config_ram->SDRAMCONF));
- printf ("\tTIM0=0x%08X\n", LE32TOH (config_ram->SDRAMTIM0));
- printf ("\tTIM1=0x%08X\n", LE32TOH (config_ram->SDRAMTIM1));
- printf ("\tCNTRL=0x%08X\n", LE32TOH (config_ram->SDRAMCNTRL));
- printf ("\tREF=0x%08X\n", LE32TOH (config_ram->SDRAMREF));
- printf ("\tCLOCK=0x%08X\n", LE32TOH (config_ram->MACCLOCK));
- return;
- }
- #endif
|