我的程序现在是这样的 不能定义外部的int和long类型,只能定义char类型的 定义一个long类型时候发现只能把最高字节写入
EMC_CTRL = 0x00000001;
PCONP |= 0x00000800; PINSEL4 = 0x50000000; PINSEL5 = 0x05050555; PINSEL6 = 0x55555555; PINSEL8 = 0x55555555; PINSEL9 = 0x50555555;
// delayMs(1, 100); EMC_STA_CFG0 = 0x00000080; EMC_STA_WAITWEN0 = 0x2; EMC_STA_WAITOEN0 = 0x2; EMC_STA_WAITRD0 = 0x1f; EMC_STA_WAITPAGE0 = 0x1f; EMC_STA_WAITWR0 = 0x1f; EMC_STA_WAITTURN0 = 0xf;
|