www.pudn.com > hf44b0_TEST.rar > Etc.c
#include#include "..\inc\44b.h" #include "..\inc\44blib.h" #include "..\inc\etc.h" #include "..\inc\def.h" /* void Test_WaitPin(void) { U32 readVal; Uart_Printf("nGCS1 is controlled by nWAIT pin.\n"); Uart_Printf("nWAIT/PF0 pin is configured as nWAIT pin.\n"); Uart_Printf("\nPush any key to exit!!!\n"); // Work-around with nWAIT. // 8bit device ->8bit bus width, 16bit access // address0 is not connected to the device to cheat the device. rBWSCON=rBWSCON & ~(0x7<<4)|(0x5<<4); //nGCS1: nWAIT enable, 8bit rBANKCON1=0x200; rNCACHBE0=( (0x4000000>>12)<<16 )|(0x2000000>>12); while(Uart_GetKey()==0x0) { readVal=(*(volatile U16 *)0x2000000); #ifdef __BIG_ENDIAN readVal=readVal&0xff; #else readVal=readVal>>8; #endif Uart_Printf("read_data=%x\n",readVal); } } */ extern char Image$$RO$$Limit[]; extern char Image$$RO$$Base[]; extern char Image$$RW$$Limit[]; extern char Image$$RW$$Base[]; extern char Image$$ZI$$Limit[]; extern char Image$$ZI$$Base[]; void Etc(void) { Uart_Printf("Image$$RO$$Base=%x\n",Image$$RO$$Base); Uart_Printf("Image$$RO$$Limit=%x\n",Image$$RO$$Limit); Uart_Printf("Image$$RW$$Base=%x\n",Image$$RW$$Base); Uart_Printf("Image$$RW$$Limit=%x\n",Image$$RW$$Limit); Uart_Printf("Image$$ZI$$Base=%x\n",Image$$ZI$$Base); Uart_Printf("Image$$ZI$$Limit=%x\n",Image$$ZI$$Limit); }