Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


freeRTOS + LPC210x + SPI driver

Posted by altraqua on 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?


RE: freeRTOS + LPC210x + SPI driver

Posted by Richard on October 25, 2004

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,

RE: freeRTOS + LPC210x + SPI driver

Posted by altraqua on October 25, 2004
OK, thank you!

RE: freeRTOS + LPC210x + SPI driver

Posted by Teun on 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 ;)
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,

RE: freeRTOS + LPC210x + SPI driver

Posted by Allure99 on 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

[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists