From 7dfface80c65b4477f780cace3f7c045e550e2c5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 20 Oct 2009 14:05:56 +0000 Subject: [PATCH] Extend SPI interface to better handle multiple devices on same SPI bus git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2162 42af7a65-404d-4744-a932-0658087f49c3 --- Documentation/NuttxPortingGuide.html | 1 + TODO | 24 ++ arch/arm/src/imx/imx_spi.c | 1 + arch/arm/src/lm3s/lm3s_ssi.c | 1 + arch/arm/src/stm32/stm32_internal.h | 17 - arch/arm/src/stm32/stm32_spi.c | 294 ++++++++++-------- arch/z80/src/ez80/ez80_spi.c | 2 + configs/mcu123-lpc214x/src/up_spi.c | 2 + configs/olimex-strp711/src/up_spi.c | 2 + configs/stm3210e-eval/src/stm3210e-internal.h | 5 - configs/stm3210e-eval/src/up_nsh.c | 73 +++-- configs/stm3210e-eval/src/up_spi.c | 47 +-- drivers/mtd/m25px.c | 124 +++++--- include/nuttx/spi.h | 24 ++ 14 files changed, 338 insertions(+), 279 deletions(-) diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index a9bf7df8d3a..dec31beea36 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -1805,6 +1805,7 @@ extern void up_ledoff(int led); Each SPI device driver must implement an instance of struct spi_ops_s. That structure defines a call table with the following methods: