--- In l..., "junointegration" wrote:
>
> Has anybody done any framework for FreeRTOS with SPI support before?
> I'd like to process interrupts from the slave devices as soon as
possible.
> It seems implementing semaphores and an SPI task doing post processing of
slave interrupts is the only solution I can foresee. (The ISR will just wake up
the SPI task).
> Any thoughts? Thanks.
>
Well, is there any protocol associated with your SPI devices or is it just
'character' data? I ask because it's more efficient to build up
protocol units in the interrupt handler and only signal the handler task when a
complete unit has been received. Posting a unit for every byte that comes in
will work, sure, but it would help if you could block it up a bit
Rgds,
Martin