⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 etc.c

📁 一个简单的helloworld编程
💻 C
字号:
#include <string.h>
#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);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -