Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-16 Thread Xiang Xiao
Please create an issue on github, I can add Donny or other people to ask your question. On Wed, Oct 16, 2024 at 1:27 AM Felipe Moura Oliveira wrote: > Hello Xiang Xiao, > > Can you connect me with Donny or can you help me to understand spi_slave > semaphore "unlock" ? > > Looking into spi_slave_

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-16 Thread Xiang Xiao
In this case, you can reference: https://github.com/apache/nuttx/blob/master/drivers/rpmsg/rpmsg_port_spi.c https://github.com/apache/nuttx/blob/master/drivers/rpmsg/rpmsg_port_spi_slave.c which contains the common logic to send/recv messages on spi bus async. On Tue, Oct 15, 2024 at 10:46 PM Feli

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-15 Thread Felipe Moura Oliveira
Hello Xiang Xiao, Can you connect me with Donny or can you help me to understand spi_slave semaphore "unlock" ? Looking into spi_slave_driver.c:330 while (priv->rx_length == 0) { remaining_words = SPIS_CTRLR_QPOLL(priv->ctrlr); if (remaining_words == 0) { spiinfo("All words retrieved!\n"); } else

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-15 Thread Tomek CEDRO
Awesome! Thank you Xiang :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info On Tue, Oct 15, 2024, 16:21 Xiang Xiao wrote: > Yes, we use DMA for both SPI master/slave, but DMA is more related to the > driver not the framework. > > On Tue, Oct 15, 2024 at 2:08 PM Tomek CEDRO wrote: > > > One qu

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-15 Thread Felipe Moura Oliveira
Hello All, I did a dummy question, in master branch, spi slave implementation already blocked until new data is available. I wasn't working in the master branch but I will switch to. Em ter., 15 de out. de 2024 às 11:45, Felipe Moura Oliveira < moura@gmail.com> escreveu: > Hello Xiang Xiao,

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-15 Thread Felipe Moura Oliveira
Hello Xiang Xiao, thanks for sharing with me about rpmsg, to be honest it is new for me =/, I was locked in baremetal for several years. For now I cannot use it because my host mcu is running baremetal (maybe in the future we will change it). I developed a simple protocol using ack and nak whey to

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-15 Thread Xiang Xiao
Yes, we use DMA for both SPI master/slave, but DMA is more related to the driver not the framework. On Tue, Oct 15, 2024 at 2:08 PM Tomek CEDRO wrote: > One question by the way someone asked me recently - can NuttX SPI Slave > work in DMA mode? :-) > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedr

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-14 Thread Tomek CEDRO
One question by the way someone asked me recently - can NuttX SPI Slave work in DMA mode? :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: The right way to implement an event-driven application - SPI SLAVE

2024-10-14 Thread Xiang Xiao
rk and Future Works (youtube.com) <https://www.youtube.com/watch?v=CYMkAv-WjQg&list=PLd73yQk5Fd8JlsCoUYGyAf7W63BekgPup&index=8> Thanks Xiang On Tue, Oct 15, 2024 at 8:09 AM Felipe Moura Oliveira wrote: > The right way to implement an event-driven application - SPI SLAVE Hello > ev

The right way to implement an event-driven application - SPI SLAVE

2024-10-14 Thread Felipe Moura Oliveira
The right way to implement an event-driven application - SPI SLAVE Hello everyone, in the last few weeks I have been developing a solution in esp32c6 that communicates with another mcu from an SPI, the application I am developing is an spi slave. Up until now, my application has been executing