> > > Inter task communication done with pipes.  A task can
> > > suspend on a pipe until it's written to by another one. ...
> 
> I did a project like that last year with a Pi and a PIC32.  The Pi just
> can't wake up fast enough so the PIC32 had to buffer thousands of CAN bus
> messages.  Once the Pi was awake it became  the SPI bus master to pull
> messages up from the PIC32 and write them with time stamps to a file.
> Although I initially roughed out the Pi software with Python I had to change
> to C to make it fast enough too.

I usually always use C and have not found any reason to switch to python, 
sometimes it however happen I use C++, there is a few tricks with C++ to avoid 
dynamic memory allocation on heap which make it a little bit more complicated. 
Then there is of course cases then dynamic heap is needed but these I have in 
principle been able to keep out of real time.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to