paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] spi call back function


From: Chris
Subject: Re: [Paparazzi-devel] spi call back function
Date: Wed, 03 Jul 2013 13:51:23 +0300
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

Hi Gautier
That was a crystal clear answer and it explains a lot, thank you very much!
Calling a function full of code inside an interrupt is a very bad thing and i was doing exactly that!!!
I added an event function and now everything is fine.
Chris

Hi Chris,

It is possible to change the callback function during the execution, but you should be aware that this function is called under interrupt (and before the slave got unselected), so it should really be used only if necessary. If you plan to use it to handle the data, you should use a "normal" event function and look the spi transaction status (Success of Failed).

Have a look at max1168 and ms2100 drivers in sw/airborne/peripherals

Gautier





reply via email to

[Prev in Thread] Current Thread [Next in Thread]