Author Topic: techniques for writing non blocking code  (Read 28517 times)

0 Members and 1 Guest are viewing this topic.

Offline MT

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: aq
Re: techniques for writing non blocking code
« Reply #150 on: August 09, 2017, 08:14:22 pm »
You can do some tricky stuff with STM32 DMA when it's controlled by timers. The bigger timers can generate half a dozen different events that you can plumb into different DMA streams. Use one of those streams to reprogram the timer itself along the way for complex (and difficult to maintain) behavior.

That's what i indirectly hinted about, an extension of ST implementation sort of , the problem with ST solutions is that the timers dont stretch beyond the timers and if one timer is used to cause multiple streams it eat DMA streams and still the whole thing is merely about shuffling data from one place to another. Still better to have it then not.

I was very impressed with TI's solution which is available on the BeagleBone boards:

http://processors.wiki.ti.com/index.php/Programmable_Realtime_Unit_Subsystem

Thats interesting!


« Last Edit: August 09, 2017, 08:26:09 pm by MT »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf