Search found 7 matches
- Tue Feb 28, 2023 10:00 pm
- Forum: General Discussion
- Topic: Spi bus multitasking
- Replies: 0
- Views: 702
Spi bus multitasking
Task1 Mutex on t.length=128*8; t.tx_buffer=sendbuf; t.rx_buffer=recvbuf; ret=spi_slave_transmit(RCV_HOST, &t, portMAX_DELAY); Mutex off Task2 tg.length=128*8; tg.tx_buffer=sendbuf; tg.rx_buffer=recvbuf; ret=spi_slave_transmit(RCV_HOST, &tg, portMAX_DELAY); Attention question. Why if I send from any ...
- Tue Feb 28, 2023 5:11 pm
- Forum: General Discussion
- Topic: Receiving data on the interrupt SPI bus
- Replies: 0
- Views: 661
Receiving data on the interrupt SPI bus
How to receive SPI data by interrupt. Not by Gpio_ss, but as bytes arrive in the hardware bus. Slave.
- Tue Feb 28, 2023 5:44 am
- Forum: General Discussion
- Topic: SPI Slave transmit function
- Replies: 2
- Views: 1150
Re: SPI Slave transmit function
Do you have any ideas how you can implement such an algorithm over the SPI bus.since the master needs to have up-to-date latest data at the time of their receipt.
- Mon Feb 27, 2023 6:06 pm
- Forum: General Discussion
- Topic: How to work with atomic esp32 operations (disabling interrupts)
- Replies: 6
- Views: 2941
Re: How to work with atomic esp32 operations (disabling interrupts)
Thanks for the explanation!
- Mon Feb 27, 2023 5:23 pm
- Forum: General Discussion
- Topic: SPI Slave transmit function
- Replies: 2
- Views: 1150
SPI Slave transmit function
I am in the function with the maximum delay waiting for the master to send me data in order to send him the data stored in sendbufer in response. But while I was waiting, I decided to change the data in sendbufer. The question is what data will go to the master new or previous. Task1 t.length=128*8;...
- Sun Feb 26, 2023 10:39 am
- Forum: General Discussion
- Topic: How to work with atomic esp32 operations (disabling interrupts)
- Replies: 6
- Views: 2941
Re: How to work with atomic esp32 operations (disabling interrupts)
Great! But if I need to block the interrupt only on the GPIO13 and do not touch the rest and it should be in the task
- Sat Feb 25, 2023 12:06 pm
- Forum: General Discussion
- Topic: How to work with atomic esp32 operations (disabling interrupts)
- Replies: 6
- Views: 2941
How to work with atomic esp32 operations (disabling interrupts)
I have a section of code where it is impossible for an interrupt to work. How can this be implemented? For example, the
instruction 1
instruction 2
disable interrupt
main instruction
enable interrupt
...
instruction 1
instruction 2
disable interrupt
main instruction
enable interrupt
...