Created new directories to hold SPI-related files

This commit is contained in:
Gregory Nutt
2013-07-01 08:11:54 -06:00
parent b26132f8be
commit 17810f3e6f
107 changed files with 327 additions and 256 deletions
+73
View File
@@ -5,10 +5,15 @@ README
Arduino DUE board featuring the Atmel ATSAM3X8E MCU running at 84 Arduino DUE board featuring the Atmel ATSAM3X8E MCU running at 84
MHz. MHz.
Supported Shields
-----------------
- ITEAD 2.4" TFT with Touch, Arduion Shield 1.0
Contents Contents
^^^^^^^^ ^^^^^^^^
- PIO Pin Usage - PIO Pin Usage
- ITEAD 2.4" TFT with Touch
- Development Environment - Development Environment
- GNU Toolchain Options - GNU Toolchain Options
- IDEs - IDEs
@@ -100,6 +105,74 @@ PIO Pin Usage
PD31 N/A5 N/A PE31 N/A N/A PF31 N/A N/A PD31 N/A5 N/A PE31 N/A N/A PF31 N/A N/A
----- ---------- ---- -------- ----- ------------ ---- ------ ----- ----------- ---- --------- ----- ---------- ---- -------- ----- ------------ ---- ------ ----- ----------- ---- ---------
ITEAD 2.4" TFT with Touch
^^^^^^^^^^^^^^^^^^^^^^^^^
The Arduino 2.4" TFT Touch Shield is designed for all the Arduino
compatible boards. It works in 3.3V voltage level. It can be directly
plugged on the Arduino and other compatible boards. It will offer
display, touch and storage functions for the Arduino board
Features:
1. Compatible with 3.3/5V operation voltage level
2. Compatible with UTFT library
3. With SD Card Socket
The Arduino 2.4" TFT Touch shield uses the S6D1121 controller , it
supports 8-bit data interface. The touch IC is TSC2046.
Arduino ATSAM3X Due ITHEAD
Due PIN GPIO FUNCTION SIGNAL PIN SIGNAL NOTES
PWMH
10 SCL1 PA18 TWCK0/A20/WKUP9 SCL1 --- --- SCL not available
9 SDA1 PA17 TWD0SPCK0 SDA1 --- --- SDA not available
8 Aref --- --- AREF Vref --- ---
7 GND --- --- GND GND --- ---
6 PWM13 PB27 SPI0_SPCK/A20/WKUP10 PWM13 D13 SD_SCK SCK, also LED "L"
5 PWM12 PD8 A21/NANDALE/TIOB8 PWM12 D12 SD_MISO MISO not available
4 PWM11 PD7 A17/BA1/TIOA8 PWM11 D11 SD_MOSI MOSI not available
3 PWM10 ??? ??? SS0/PWM10 D10 SD_CS ???
2 PWM9 PC21 A0/NBS0/PWML4 PWM9 D9 Touch_IRQ ---
1 PWM8 PC22 A1/PWML5 PWM8 D8 Touch_Dout ---
PWML
8 PWM7 PC23 A2/PWML6 PWM7 D7 DB15 ---
7 PWM6 PC24 A3/PWML7 PWM6 D6 DB14 ---
6 PWM5 PC25 A4/TIOA6 PWM5 D5 DB13 ---
5 PWM4 PC26 A5/TIOB6 SS1/PWM4 D4 DB12 ---
4 PWM3 PC28 A7/TIOA7 PWM3 D3 DB11 ---
3 PWM2 PB25 RTS0/TIOA0 PWM2 D2 DB10 ---
2 PWM1 PA9 UTXD/PWMH3 TX D1 DB9 UART0 TX
1 PWM0 PA8 URXD/PWMH0/WKUP4 RX D0 DB8 UART0 RX
POWER
1 --- --- --- --- --- --- ---
2 IOref --- --- IOREF +3V3 --- --- ---
3 RESET --- --- MASTER_RESET RST --- ---
4 3.3V --- --- +3V3 5V --- ---
5 5V --- --- +5V 3.3V --- ---
6 GND --- --- GND GND --- ---
7 GND --- --- GND GND --- ---
8 Vin --- --- VIN Vin --- ---
ADCL
1 A0 PA16 SPCK1/TD/AD7 AD0 A0 Touch_Din ---
2 A1 PA24 MCDA3/PCK1/AD6 AD1 A1 Touch_CLK ---
3 A2 PA23 MCDA2/TCLK4/AD5 AD2 A2 --- ---
4 A3 PA22 MCDA1/TCLK3/AD4 AD3 A3 TFT_CS ---
5 A4 PA6 TIOB2/NCS0/AD3 AD4 A4 TFT_WR ---
6 A5 PA4 TCLK1/NWAIT/AD2 AD5 A5 TFT_RS ---
7 A6 PA3 TIOB1/PWMFI1/AD1/WKUP1 AD6 --- --- ---
8 A7 PA2 TIOA1/NANDRDY/AD0 AD7 --- --- ---
NOTE:
1. It is not possible to use any of the SPI devices on the Shield unless
a bit-bang SPI interface is used. This includes the touch controller
and the SD card.
2. UART0 cannot be used
3. Parallel data is not contiguous in any PIO register
4. 3.3V and 5V are reversed.
Development Environment Development Environment
^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
+2 -2
View File
@@ -45,7 +45,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -121,7 +121,7 @@ void weak_function stm32_spiinitialize(void)
* The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be * The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common STM32 logic. To use this common SPI logic on your * are provided by common STM32 logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -49,7 +49,7 @@
#include <debug.h> #include <debug.h>
#ifdef CONFIG_STM32_SPI1 #ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h> # include <nuttx/spi/spi.h>
# include <nuttx/mtd.h> # include <nuttx/mtd.h>
# include <nuttx/fs/nxffs.h> # include <nuttx/fs/nxffs.h>
#endif #endif
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "demo9s12ne64.h" #include "demo9s12ne64.h"
@@ -100,7 +100,7 @@ void weak_function hcs12_spiinitialize(void)
* The external functions, hcs12_spiselect and hcs12_spistatus must be * The external functions, hcs12_spiselect and hcs12_spistatus must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common HCS12 logic. To use this common SPI logic on your * are provided by common HCS12 logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -65,7 +65,7 @@
#if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB) #if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB)
# include <sys/ioctl.h> # include <sys/ioctl.h>
# include <nuttx/fs/ioctl.h> # include <nuttx/fs/ioctl.h>
# include <nuttx/spi.h> # include <nuttx/spi/spi.h>
# include <nuttx/mtd.h> # include <nuttx/mtd.h>
#endif #endif
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -108,7 +108,7 @@ void weak_function lpc31_spiinitialize(void)
* The external functions, lpc31_spiselect and lpc31_spistatus must be * The external functions, lpc31_spiselect and lpc31_spistatus must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common LPC31XX logic. To use this common SPI logic on your * are provided by common LPC31XX logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -65,7 +65,7 @@
#if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB) #if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB)
# include <sys/ioctl.h> # include <sys/ioctl.h>
# include <nuttx/fs/ioctl.h> # include <nuttx/fs/ioctl.h>
# include <nuttx/spi.h> # include <nuttx/spi/spi.h>
# include <nuttx/mtd.h> # include <nuttx/mtd.h>
#endif #endif
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -108,7 +108,7 @@ void weak_function lpc31_spiinitialize(void)
* The external functions, lpc31_spiselect and lpc31_spistatus must be * The external functions, lpc31_spiselect and lpc31_spistatus must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common LPC31XX logic. To use this common SPI logic on your * are provided by common LPC31XX logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -114,7 +114,7 @@ void weak_function lm_ssiinitialize(void)
/**************************************************************************** /****************************************************************************
* The external functions, lm_spiselect and lm_spistatus must be provided * The external functions, lm_spiselect and lm_spistatus must be provided
* by board-specific logic. The are implementations of the select and status * by board-specific logic. The are implementations of the select and status
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h). * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All othermethods (including up_spiinitialize()) are provided by common * All othermethods (including up_spiinitialize()) are provided by common
* logic. To use this common SPI logic on your board: * logic. To use this common SPI logic on your board:
* *
+2 -2
View File
@@ -45,7 +45,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -116,7 +116,7 @@ void weak_function lm_ssiinitialize(void)
/**************************************************************************** /****************************************************************************
* The external functions, lm_spiselect and lm_spistatus must be provided * The external functions, lm_spiselect and lm_spistatus must be provided
* by board-specific logic. The are implementations of the select and status * by board-specific logic. The are implementations of the select and status
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h). * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All othermethods (including up_spiinitialize()) are provided by common * All othermethods (including up_spiinitialize()) are provided by common
* logic. To use this common SPI logic on your board: * logic. To use this common SPI logic on your board:
* *
+1 -1
View File
@@ -55,7 +55,7 @@
#include <stdio.h> #include <stdio.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/net/enc28j60.h> #include <nuttx/net/enc28j60.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -139,7 +139,7 @@ void weak_function stm32_spiinitialize(void)
* The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be * The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common STM32 logic. To use this common SPI logic on your * are provided by common STM32 logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -48,7 +48,7 @@
#include <debug.h> #include <debug.h>
#ifdef CONFIG_STM32_SPI1 #ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h> # include <nuttx/spi/spi.h>
# include <nuttx/mtd.h> # include <nuttx/mtd.h>
# include <nuttx/fs/nxffs.h> # include <nuttx/fs/nxffs.h>
#endif #endif
+4 -4
View File
@@ -43,7 +43,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include "kl_gpio.h" #include "kl_gpio.h"
#include "kl_spi.h" #include "kl_spi.h"
@@ -108,7 +108,7 @@ void weak_function kl_spiinitialize(void)
* Description: * Description:
* These external functions must be provided by board-specific logic. They * These external functions must be provided by board-specific logic. They
* are implementations of the select, status, and cmddata methods of the SPI * are implementations of the select, status, and cmddata methods of the SPI
* interface defined by struct spi_ops_s (see include/nuttx/spi.h). All * interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h). All
* other methods including up_spiinitialize()) are provided by common * other methods including up_spiinitialize()) are provided by common
* Kinetis logic. To use this common SPI logic on your board: * Kinetis logic. To use this common SPI logic on your board:
* *
@@ -183,7 +183,7 @@ void kl_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
* devid - Identifies the (logical) device * devid - Identifies the (logical) device
* *
* Returned Values: * Returned Values:
* Bit-encoded SPI status (see include/nuttx/spi.h. * Bit-encoded SPI status (see include/nuttx/spi/spi.h.
* *
****************************************************************************/ ****************************************************************************/
@@ -214,7 +214,7 @@ uint8_t kl_spi2status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
* cmd - Determines where command or data should be selected. * cmd - Determines where command or data should be selected.
* *
* Returned Values: * Returned Values:
* Bit-encoded SPI status (see include/nuttx/spi.h. * Bit-encoded SPI status (see include/nuttx/spi/spi.h.
* *
****************************************************************************/ ****************************************************************************/
+1 -1
View File
@@ -40,7 +40,7 @@
************************************************************************************/ ************************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <debug.h> #include <debug.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1 -1
View File
@@ -46,7 +46,7 @@
#include <errno.h> #include <errno.h>
#ifdef CONFIG_STM32_SPI1 #ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h> # include <nuttx/spi/spi.h>
# include <nuttx/mtd.h> # include <nuttx/mtd.h>
#endif #endif
+1 -1
View File
@@ -51,7 +51,7 @@
#include <debug.h> #include <debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h> #include <nuttx/lcd/lcd.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+2 -2
View File
@@ -45,7 +45,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -115,7 +115,7 @@ void stm32_spiinitialize(void)
* The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be * The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common STM32 logic. To use this common SPI logic on your * are provided by common STM32 logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -36,7 +36,7 @@
************************************************************************************/ ************************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <errno.h> #include <errno.h>
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -101,7 +101,7 @@ void weak_function kinetis_spiinitialize(void)
* The external functions, kinetis_spi1/2/3select and kinetis_spi1/2/3status must be * The external functions, kinetis_spi1/2/3select and kinetis_spi1/2/3status must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common Kinetis logic. To use this common SPI logic on your * are provided by common Kinetis logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -112,7 +112,7 @@ void weak_function lm_ssiinitialize(void)
/**************************************************************************** /****************************************************************************
* The external functions, lm_spiselect and lm_spistatus must be provided * The external functions, lm_spiselect and lm_spistatus must be provided
* by board-specific logic. The are implementations of the select and status * by board-specific logic. The are implementations of the select and status
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h). * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All othermethods (including up_spiinitialize()) are provided by common * All othermethods (including up_spiinitialize()) are provided by common
* logic. To use this common SPI logic on your board: * logic. To use this common SPI logic on your board:
* *
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h> #include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/p14201.h> #include <nuttx/lcd/p14201.h>
@@ -143,7 +143,7 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
* Set or clear the SD1329 D/Cn bit to select data (true) or command * Set or clear the SD1329 D/Cn bit to select data (true) or command
* (false). This function must be provided by platform-specific logic. * (false). This function must be provided by platform-specific logic.
* This is an implementation of the cmddata method of the SPI * This is an implementation of the cmddata method of the SPI
* interface defined by struct spi_ops_s (see include/nuttx/spi.h). * interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* *
* Input Parameters: * Input Parameters:
* *
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -117,7 +117,7 @@ void weak_function lm_ssiinitialize(void)
/**************************************************************************** /****************************************************************************
* The external functions, lm_spiselect and lm_spistatus must be provided * The external functions, lm_spiselect and lm_spistatus must be provided
* by board-specific logic. The are implementations of the select and status * by board-specific logic. The are implementations of the select and status
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h). * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All othermethods (including up_spiinitialize()) are provided by common * All othermethods (including up_spiinitialize()) are provided by common
* logic. To use this common SPI logic on your board: * logic. To use this common SPI logic on your board:
* *
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h> #include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/p14201.h> #include <nuttx/lcd/p14201.h>
@@ -143,7 +143,7 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
* Set or clear the SD1329 D/Cn bit to select data (true) or command * Set or clear the SD1329 D/Cn bit to select data (true) or command
* (false). This function must be provided by platform-specific logic. * (false). This function must be provided by platform-specific logic.
* This is an implementation of the cmddata method of the SPI * This is an implementation of the cmddata method of the SPI
* interface defined by struct spi_ops_s (see include/nuttx/spi.h). * interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* *
* Input Parameters: * Input Parameters:
* *
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -117,7 +117,7 @@ void weak_function lm_ssiinitialize(void)
/**************************************************************************** /****************************************************************************
* The external functions, lm_spiselect and lm_spistatus must be provided * The external functions, lm_spiselect and lm_spistatus must be provided
* by board-specific logic. The are implementations of the select and status * by board-specific logic. The are implementations of the select and status
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h). * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All othermethods (including up_spiinitialize()) are provided by common * All othermethods (including up_spiinitialize()) are provided by common
* logic. To use this common SPI logic on your board: * logic. To use this common SPI logic on your board:
* *
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -101,7 +101,7 @@ void weak_function lm4f_ssiinitialize(void)
/**************************************************************************** /****************************************************************************
* The external functions, lm_spiselect and lm_spistatus must be provided * The external functions, lm_spiselect and lm_spistatus must be provided
* by board-specific logic. The are implementations of the select and status * by board-specific logic. The are implementations of the select and status
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h). * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* All othermethods (including lm_spiinitialize()) are provided by common * All othermethods (including lm_spiinitialize()) are provided by common
* logic. To use this common SPI logic on your board: * logic. To use this common SPI logic on your board:
* *
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h> #include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/ug-9664hswag01.h> #include <nuttx/lcd/ug-9664hswag01.h>
@@ -159,7 +159,7 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
* Set or clear the SD1329 D/Cn bit to select data (true) or command * Set or clear the SD1329 D/Cn bit to select data (true) or command
* (false). This function must be provided by platform-specific logic. * (false). This function must be provided by platform-specific logic.
* This is an implementation of the cmddata method of the SPI * This is an implementation of the cmddata method of the SPI
* interface defined by struct spi_ops_s (see include/nuttx/spi.h). * interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* *
* Input Parameters: * Input Parameters:
* *
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -134,7 +134,7 @@ void weak_function lpcxpresso_sspinitialize(void)
* The external functions, lpc17_ssp0/ssp1select and lpc17_ssp0/ssp1status * The external functions, lpc17_ssp0/ssp1select and lpc17_ssp0/ssp1status
* must be provided by board-specific logic. They are implementations of the select * must be provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including lpc17_sspinitialize()) * include/nuttx/spi/spi.h). All other methods (including lpc17_sspinitialize())
* are provided by common LPC17xx logic. To use this common SPI logic on your * are provided by common LPC17xx logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -45,7 +45,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+1 -1
View File
@@ -45,7 +45,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
#include <nuttx/usb/composite.h> #include <nuttx/usb/composite.h>
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+1 -1
View File
@@ -71,7 +71,7 @@
#include <arch/board/board.h> #include <arch/board/board.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include "up_internal.h" #include "up_internal.h"
#include "up_arch.h" #include "up_arch.h"
+1 -1
View File
@@ -45,7 +45,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+3 -3
View File
@@ -50,7 +50,7 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -134,7 +134,7 @@ void weak_function stm32_spiinitialize(void)
* The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be * The external functions, stm32_spi1/2/3select and stm32_spi1/2/3status must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common STM32 logic. To use this common SPI logic on your * are provided by common STM32 logic. To use this common SPI logic on your
* board: * board:
* *
@@ -245,7 +245,7 @@ uint8_t stm32_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
* Set or clear the SH1101A A0 or SD1306 D/C n bit to select data (true) * Set or clear the SH1101A A0 or SD1306 D/C n bit to select data (true)
* or command (false). This function must be provided by platform-specific * or command (false). This function must be provided by platform-specific
* logic. This is an implementation of the cmddata method of the SPI * logic. This is an implementation of the cmddata method of the SPI
* interface defined by struct spi_ops_s (see include/nuttx/spi.h). * interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h).
* *
* Input Parameters: * Input Parameters:
* *
+1 -1
View File
@@ -43,7 +43,7 @@
#include <stdio.h> #include <stdio.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/audio/audio.h> #include <nuttx/audio/audio.h>
#include <nuttx/audio/vs1053.h> #include <nuttx/audio/vs1053.h>
+1 -1
View File
@@ -588,7 +588,7 @@ Analog Input
To intialize and use the PGA117, you to add logic something like the To intialize and use the PGA117, you to add logic something like the
following in your application code: following in your application code:
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/analog/pga11x.h> #include <nuttx/analog/pga11x.h>
FAR struct spi_dev_s *spi; FAR struct spi_dev_s *spi;
+1 -1
View File
@@ -48,7 +48,7 @@
#include <debug.h> #include <debug.h>
#ifdef CONFIG_PIC32MX_SPI2 #ifdef CONFIG_PIC32MX_SPI2
# include <nuttx/spi.h> # include <nuttx/spi/spi.h>
# include <nuttx/mtd.h> # include <nuttx/mtd.h>
# include <nuttx/fs/nxffs.h> # include <nuttx/fs/nxffs.h>
#endif #endif
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -149,7 +149,7 @@ void weak_function pic32mx_spi2initialize(void)
* Description: * Description:
* These external functions must be provided by board-specific logic. They are * These external functions must be provided by board-specific logic. They are
* implementations of the select, status, and cmddata methods of the SPI interface * implementations of the select, status, and cmddata methods of the SPI interface
* defined by struct spi_ops_s (see include/nuttx/spi.h). All other methods * defined by struct spi_ops_s (see include/nuttx/spi/spi.h). All other methods
* including up_spiinitialize()) are provided by common PIC32MX logic. To use * including up_spiinitialize()) are provided by common PIC32MX logic. To use
* this common SPI logic on your board: * this common SPI logic on your board:
* *
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "ne64badge_internal.h" #include "ne64badge_internal.h"
@@ -100,7 +100,7 @@ void weak_function hcs12_spiinitialize(void)
* The external functions, hcs12_spiselect and hcs12_spistatus must be * The external functions, hcs12_spiselect and hcs12_spistatus must be
* provided by board-specific logic. They are implementations of the select * provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including up_spiinitialize()) * include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* are provided by common HCS12 logic. To use this common SPI logic on your * are provided by common HCS12 logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -44,7 +44,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************
+2 -2
View File
@@ -44,7 +44,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <debug.h> #include <debug.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
@@ -137,7 +137,7 @@ void weak_function nucleus2g_sspinitialize(void)
* The external functions, lpc17_ssp0/ssp1select and lpc17_ssp0/ssp1status * The external functions, lpc17_ssp0/ssp1select and lpc17_ssp0/ssp1status
* must be provided by board-specific logic. They are implementations of the select * must be provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see * and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi.h). All other methods (including lpc17_sspinitialize()) * include/nuttx/spi/spi.h). All other methods (including lpc17_sspinitialize())
* are provided by common LPC17xx logic. To use this common SPI logic on your * are provided by common LPC17xx logic. To use this common SPI logic on your
* board: * board:
* *
+1 -1
View File
@@ -45,7 +45,7 @@
#include <debug.h> #include <debug.h>
#include <errno.h> #include <errno.h>
#include <nuttx/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h> #include <nuttx/mmcsd.h>
/**************************************************************************** /****************************************************************************

Some files were not shown because too many files have changed in this diff Show More