freeRTOS + LPC210x + SPI driver

altraqua wrote on Sunday, October 24, 2004:

I’m new to freeRTOS.

I saw that there isn’t a SPI driver for LPC210x and freeRTOS.

If i start to write it, i shoud follow some driver interface specifications?

I yes, where i can try this specs?

Hi.

rtel wrote on Monday, October 25, 2004:

Hi,

The function naming convention is detailed here

There is no formal functionality or interface convention.  It is best to write the driver to be optimal for your own application  if other people then use it they have the option to tinker with it to optimize it for their application  creating a flexible system.

You can use the serial port code as a template for an interrupt driven driver.  An SPI driver would be slightly different in that the serial port driver is a single stream of characters, whereas an SPI driver may contain distinct messages within the stream.  I will be writing an I2C driver for the LPC2000 in the next few days.  This will be similar - probably a queue of messages, each of which is a sequence of characters.  I can send you the code (pre release) when complete if you like.

Best regards,
Richard.

altraqua wrote on Monday, October 25, 2004:

OK, thank you!

teunvandeberg wrote on Monday, October 25, 2004:

I’ve written a SPI bus driver for the LPC2114 + FreeRTOS last week. It works on an LPC210x as well except for the 2nd SPI device of course :wink:
I’m willing to share it with you if you are interested.
Due to the fact that I am currently missing the required debug hardware it is not working yet. There are probably just a few bugs that need to be solved. This should be completed within a fair amount of time, but of course any help is very much appreciated.

With kind regards,
Teun

hudson2009 wrote on Wednesday, March 26, 2008:

Hi Richard,

I working on AT91SAM7X256_ROWLEY.
Do you have any support code for SPI?
can you please send me the code if you have any or the I2C driver will do as well.

Many Thanks
Regards
H