Hello everyone.

I know this question is not 100% related to the MSPGCC, but I also know that
MSPGCC mailing list comprises of many experienced embedded programmers that
might have an answer or advice. 

Currently I'm writing a SPI management module. At my disposal I have two
different operating systems - Oleg Skydan's SOS and famous uC/OS II.

At any time the CPU is a master device and there is about 5 different
peripherals sitting on that bus. Now, some of those are just simple external
memory chips that are not time sensitive. On the other hand a touch screen
controller, CPLD, require certain response time, if not met the "event" will
be lost.

I want to write, once and for all, a platform independent, robust SPI
management module.

I think that mutual exclusion can be achieved by simply using the semaphores
available through the OS. As well as the priority.

Sorry for not being very specific, I'm just starting this thing so I was
hoping to get some pointers and insight from the people that might have done
something similar. SPI has been around for a long time, and I'm sure people
had figured out efficient schemes and ways to implement this hence by
starting from scratch I feel I would be "inventing the wheel".

Thanks a lot,

m. 

Reply via email to