Non DMA version of the spi_master driver

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: Non DMA version of the spi_master driver

Postby Vader_Mester » Fri Apr 13, 2018 7:30 am

Hi Lobo,

What kind of touch screen is this compatible with? Resistive or capacitve? Module is question is ER-TFTM035-6, from buydisplay.com.

Thanks
Vader[BEN]

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Non DMA version of the spi_master driver

Postby loboris » Fri Apr 13, 2018 7:59 am

Only the restitive touch (XPT2046 controllers) is supported in this example.

BTW, this is a very old example. I'm now using a different approach for non-DMA transfers using the slightly modified official esp-idf spi-master driver.
I hope I'll find some time to update the repository or create the new example of using this approach.
I have the same display with capacitive touch, so I'll include it in the example.

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: Non DMA version of the spi_master driver

Postby Vader_Mester » Fri Apr 13, 2018 11:41 am

Nice Loboris

__/|,
------'

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Non DMA version of the spi_master driver

Postby Deouss » Wed Aug 01, 2018 5:13 pm

I was just thinking about non-dma spi. That's great since I am testing streaming data to lcd over tcp sockets.
I was trying to load images from DMA memory and annoying thing was the waits for DMA transfers.
The best way would be to use SPI PSRAM 4mb memory on Wrover - wonder how fast it is.
Not sure how to do with non-dma code yet.

jas39_
Posts: 21
Joined: Mon Aug 29, 2016 8:26 pm

Re: Non DMA version of the spi_master driver

Postby jas39_ » Thu Oct 10, 2019 7:58 pm

@loboris:
I'm trying to get your non-dma driver to work together with a three-wire SPI interface without success. Would you mind sharing your " slightly modified official esp-idf spi-master driver" for me to try?

Rgds
/&&

Who is online

Users browsing this forum: No registered users and 23 guests