From 9ad896685124fb84348254f9bafe4fa5f50d9f7b Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 20 Oct 2009 14:05:56 +0000 Subject: 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 --- nuttx/Documentation/NuttxPortingGuide.html | 1 + nuttx/TODO | 24 ++ nuttx/arch/arm/src/imx/imx_spi.c | 1 + nuttx/arch/arm/src/lm3s/lm3s_ssi.c | 1 + nuttx/arch/arm/src/stm32/stm32_internal.h | 17 -- nuttx/arch/arm/src/stm32/stm32_spi.c | 284 ++++++++++++--------- nuttx/arch/z80/src/ez80/ez80_spi.c | 2 + nuttx/configs/mcu123-lpc214x/src/up_spi.c | 2 + nuttx/configs/olimex-strp711/src/up_spi.c | 2 + .../configs/stm3210e-eval/src/stm3210e-internal.h | 5 - nuttx/configs/stm3210e-eval/src/up_nsh.c | 73 +++--- nuttx/configs/stm3210e-eval/src/up_spi.c | 47 +--- nuttx/drivers/mtd/m25px.c | 124 +++++---- nuttx/include/nuttx/spi.h | 24 ++ 14 files changed, 333 insertions(+), 274 deletions(-) (limited to 'nuttx') diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index a9bf7df8d..dec31beea 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/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: