MAL_Init(1); // case 1: FSMC_SRAM_Init(); MAL_Write(1, 0x0000, Writ_RAM, 16); MAL_Read(1, 0x0000, Read_RAM, 16); aaa = Read_RAM[1]&0xff; USART_SendData(USART1, aaa); 串口输出的值是对的,说明可以读写SRAM.
MAL_Init(0); // case 0: FSMC_SD_Init(); MAL_Write(0, 0x0000, Writ_RAM, 16); MAL_Read(0, 0x0000, Read_RAM, 16); aaa = Read_RAM[1]&0xff; USART_SendData(USART1, aaa); 串口输出的值不对,为什么不能读写SD卡? |