在对FSMC的初始化配置是,我们将数据总线宽度设为8位。
即:FSMC_NANDInitStructure.FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_8b;
写法一
#define ADDR_1st_CYCLE(ADDR) (uint8)((ADDR)& 0xFF) /* 1st addressing cycle */
#define ADDR_2nd_CYCLE(ADDR) (uint8)(((ADDR)& 0xFF00) >> 8) /* 2nd addressing cycle */
#define ADDR_3rd_CYCLE(ADDR) (uint8)(((ADDR)& 0xFF0000) >> 16) /* 3rd addressing cycle */
#define ADDR_4th_CYCLE(ADDR) (uint8)(((ADDR)& 0xFF000000) >> 24) /* 4th addressing cycle */
uint32 data;