Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

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?

Hi.

RE: freeRTOS + LPC210x + SPI driver

Posted by Richard on October 25, 2004
Hi,

The function naming convention is detailed here
http://www.freertos.org/a00017.html#NamingConventions

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.

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,
Teun

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
Regards
H


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


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner