在对EMIF的进行初始化时,我加了头文件:<csl.h>和<csl_emif.h>。但是在编译时,出现以下错误,不知道是怎么回事,请高手指点。
"initcsl.c", line 32: error: identifier "EMIF_GBLCTL_NOHOLD_DISABLE" is undefined
"initcsl.c", line 33: error: identifier "EMIF_GBLCTL_EKEN_ENABLE" is undefined
"initcsl.c", line 34: error: identifier "EMIF_GBLCTL_CLK1EN_DISABLE" is undefined
"initcsl.c", line 35: error: identifier "EMIF_GBLCTL_CLK2EN_ENABLE" is undefined
"initcsl.c", line 39: error: identifier "EMIF_CECTL_WRSETUP_DEFAULT" is undefined
"initcsl.c", line 40: error: identifier "EMIF_CECTL_WRSTRB_DEFAULT" is undefined
"initcsl.c", line 41: error: identifier "EMIF_CECTL_WRHLD_DEFAULT" is undefined
"initcsl.c", line 42: error: identifier "EMIF_CECTL_RDSETUP_DEFAULT" is undefined
"initcsl.c", line 43: error: identifier "EMIF_CECTL_TA_DEFAULT" is undefined
"initcsl.c", line 44: error: identifier "EMIF_CECTL_RDSTRB_DEFAULT" is undefined
"initcsl.c", line 45: error: identifier "EMIF_CECTL_MTYPE_SDRAM16" is undefined
"initcsl.c", line 46: error: identifier "EMIF_CECTL_RDHLD_DEFAULT" is undefined
"initcsl.c", line 57: error: identifier "EMIF_CECTL_MTYPE_ASYNC8" is undefined
"initcsl.c", line 69: error: identifier "EMIF_SDCTL_SDBSZ_4BANKS" is undefined
"initcsl.c", line 70: error: identifier "EMIF_SDCTL_SDRSZ_12ROW" is undefined
"initcsl.c", line 71: error: identifier "EMIF_SDCTL_SDCSZ_8COL" is undefined
"initcsl.c", line 72: error: identifier "EMIF_SDCTL_RFEN_ENABLE" is undefined
"initcsl.c", line 73: error: identifier "EMIF_SDCTL_INIT_YES" is undefined
"initcsl.c", line 80: error: identifier "EMIF_SDTIM_XRFR_DEFAULT" is undefined
"initcsl.c", line 81: error: identifier "EMIF_SDTIM_PERIOD_DEFAULT" is undefined |