mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
Add font scaling, fix trouble with sprites, fix trouble with blocking SPI read (DMA read non-fixing without reset SPI)
This commit is contained in:
@@ -219,12 +219,8 @@ int ili9341_readregdma(uint8_t reg, uint8_t *data, uint32_t N){
|
||||
do{
|
||||
if(!spi_write(®, 1)) break;
|
||||
if(!spi_waitbsy()) break;
|
||||
SCRN_Data();
|
||||
if(!dmardwr(data, data, N)) break;
|
||||
r = 1;
|
||||
r = dmardwr(data, data, N);
|
||||
}while(0);
|
||||
SCRN_Command();
|
||||
SCRN_RST_set(1);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user