1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-02-06 08:04:49 +00:00

IDE: use DMA filling the sector_buffer in writes

This commit is contained in:
Gyorgy Szombathelyi
2021-05-26 00:05:04 +02:00
parent d74f5b132c
commit 5a4c051a73

2
hdd.c
View File

@@ -489,7 +489,7 @@ static inline void ATA_WriteSectors(unsigned char* tfr, unsigned short sector, u
SPI(0x00);
SPI(0x00);
SPI(0x00);
for (i = 0; i < 512; i++) sector_buffer[i] = SPI(0xFF);
spi_block_read(sector_buffer);
DisableFpga();
switch(hdf[unit].type) {