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-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 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 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,

About SW licenses

2024-10-15 Thread Jukka Laitinen
Hi, A kind reminder to everyone contributing code to NuttX; Please keep in mind that it is NOT allowed to copy code snippets from any GPL licensed code into Apache/NuttX. While reading through arch/arm64 code base, my eye catches a lot of places now, which resemble code in linux kernel. This