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

View File

@ -5,10 +5,15 @@ README
Arduino DUE board featuring the Atmel ATSAM3X8E MCU running at 84
MHz.
Supported Shields
-----------------
- ITEAD 2.4" TFT with Touch, Arduion Shield 1.0
Contents
^^^^^^^^
- PIO Pin Usage
- ITEAD 2.4" TFT with Touch
- Development Environment
- GNU Toolchain Options
- IDEs
@ -100,6 +105,74 @@ PIO Pin Usage
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
^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -45,7 +45,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -49,7 +49,7 @@
#include <debug.h>
#ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
# include <nuttx/fs/nxffs.h>
#endif

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "demo9s12ne64.h"
@ -100,7 +100,7 @@ void weak_function hcs12_spiinitialize(void)
* The external functions, hcs12_spiselect and hcs12_spistatus 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
* 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
* board:
*

View File

@ -65,7 +65,7 @@
#if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB)
# include <sys/ioctl.h>
# include <nuttx/fs/ioctl.h>
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
#endif

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -65,7 +65,7 @@
#if defined(CONFIG_PAGING_M25PX) || defined(CONFIG_PAGING_AT45DB)
# include <sys/ioctl.h>
# include <nuttx/fs/ioctl.h>
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
#endif

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* logic. To use this common SPI logic on your board:
*

View File

@ -45,7 +45,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* logic. To use this common SPI logic on your board:
*

View File

@ -55,7 +55,7 @@
#include <stdio.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/net/enc28j60.h>
#include <arch/board/board.h>

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -48,7 +48,7 @@
#include <debug.h>
#ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
# include <nuttx/fs/nxffs.h>
#endif

View File

@ -43,7 +43,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include "kl_gpio.h"
#include "kl_spi.h"
@ -108,7 +108,7 @@ void weak_function kl_spiinitialize(void)
* Description:
* These external functions must be provided by board-specific logic. They
* 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
* 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
*
* 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.
*
* Returned Values:
* Bit-encoded SPI status (see include/nuttx/spi.h.
* Bit-encoded SPI status (see include/nuttx/spi/spi.h.
*
****************************************************************************/

View File

@ -40,7 +40,7 @@
************************************************************************************/
#include <nuttx/config.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <debug.h>
#include <arch/board/board.h>

View File

@ -46,7 +46,7 @@
#include <errno.h>
#ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
#endif

View File

@ -51,7 +51,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <arch/board/board.h>

View File

@ -45,7 +45,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -36,7 +36,7 @@
************************************************************************************/
#include <nuttx/config.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/arch.h>
#include <errno.h>

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* logic. To use this common SPI logic on your board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.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
* (false). This function must be provided by platform-specific 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:
*

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* logic. To use this common SPI logic on your board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.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
* (false). This function must be provided by platform-specific 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:
*

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* logic. To use this common SPI logic on your board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* logic. To use this common SPI logic on your board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.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
* (false). This function must be provided by platform-specific 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:
*

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include <nuttx/usb/composite.h>

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -71,7 +71,7 @@
#include <arch/board/board.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include "up_internal.h"
#include "up_arch.h"

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -50,7 +50,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* 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)
* or command (false). This function must be provided by platform-specific
* 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:
*

View File

@ -43,7 +43,7 @@
#include <stdio.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/audio/audio.h>
#include <nuttx/audio/vs1053.h>

View File

@ -588,7 +588,7 @@ Analog Input
To intialize and use the PGA117, you to add logic something like the
following in your application code:
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/analog/pga11x.h>
FAR struct spi_dev_s *spi;

View File

@ -48,7 +48,7 @@
#include <debug.h>
#ifdef CONFIG_PIC32MX_SPI2
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
# include <nuttx/fs/nxffs.h>
#endif

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -149,7 +149,7 @@ void weak_function pic32mx_spi2initialize(void)
* Description:
* These external functions must be provided by board-specific logic. They 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 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
* this common SPI logic on your board:
*

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -45,7 +45,7 @@
#include <errno.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/nokia6100.h>

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include <nuttx/usb/usbhost.h>

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#ifdef CONFIG_SPI_CALLBACK
#include <nuttx/irq.h>
#endif
@ -258,7 +258,7 @@ void weak_function lpc1766stk_sspinitialize(void)
* The external functions, lpc17_ssp0/ssp1select and lpc17_ssp0/ssp1status
* 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
* 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
* board:
*
@ -326,7 +326,7 @@ uint8_t lpc17_ssp1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
* MMC/SD drvier when an SD card is inserted or removed, then
* CONFIG_SPI_CALLBACK should be defined and the following function(s) must
* must be implemented. These functiosn implements the registercallback
* method of the SPI interface (see include/nuttx/spi.h for details)
* method of the SPI interface (see include/nuttx/spi/spi.h for details)
*
* Input Parameters:
* dev - Device-specific state data

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include "lpc17_gpio.h"

View File

@ -50,7 +50,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -85,7 +85,7 @@
#include <stdio.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/net/enc28j60.h>
#include <arch/board/board.h>

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,11 +44,10 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/arch.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include "up_internal.h"
#include "up_arch.h"

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
@ -137,7 +137,7 @@ void weak_function open1788_sspinitialize(void)
* The external functions, lpc17_ssp0/1/2select and lpc17_ssp0/1/2status
* 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
* 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
* board:
*

View File

@ -48,7 +48,7 @@
#include <nuttx/arch.h>
#include <nuttx/irq.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/input/touchscreen.h>
#include <nuttx/input/ads7843e.h>

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include <nuttx/usb/usbhost.h>

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -107,7 +107,7 @@ void weak_function pic32mx_sspinitialize(void)
* Description:
* These external functions must be provided by board-specific logic. They 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 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
* this common SPI logic on your board:
*

View File

@ -45,7 +45,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include <nuttx/usb/usbhost.h>

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -123,7 +123,7 @@ void weak_function pic32mx_spiinitialize(void)
* Description:
* These external functions must be provided by board-specific logic. They 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 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
* this common SPI logic on your board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -116,7 +116,7 @@ void weak_function sam_spiinitialize(void)
* o sam_spiselect is a functions tomanage the board-specific chip selects
* o sam_spistatus and sam_spicmddata: Implementations of the status
* and cmddata methods of the SPI interface defined by struct spi_ops_
* (see include/nuttx/spi.h). All other methods including
* (see include/nuttx/spi/spi.h). All other methods including
* up_spiinitialize()) are provided by common SAM3/4 logic.
*
* To use this common SPI logic on your board:
@ -192,7 +192,7 @@ void sam_spiselect(enum spi_dev_e devid, bool selected)
* devid - Identifies the (logical) device
*
* Returned Values:
* Bit-encoded SPI status (see include/nuttx/spi.h.
* Bit-encoded SPI status (see include/nuttx/spi/spi.h.
*
****************************************************************************/

View File

@ -45,7 +45,7 @@
#include <assert.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/input/touchscreen.h>
#include <nuttx/input/ads7843e.h>

View File

@ -43,7 +43,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include "sam4l-xplained.h"

View File

@ -43,7 +43,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include "sam_gpio.h"
#include "sam_spi.h"
@ -124,7 +124,7 @@ void weak_function sam_spiinitialize(void)
* o sam_spiselect is a functions tomanage the board-specific chip selects
* o sam_spistatus and sam_spicmddata: Implementations of the status
* and cmddata methods of the SPI interface defined by struct spi_ops_
* (see include/nuttx/spi.h). All other methods including
* (see include/nuttx/spi/spi.h). All other methods including
* up_spiinitialize()) are provided by common SAM3/4 logic.
*
* To use this common SPI logic on your board:
@ -211,7 +211,7 @@ void sam_spiselect(enum spi_dev_e devid, bool selected)
* devid - Identifies the (logical) device
*
* Returned Values:
* Bit-encoded SPI status (see include/nuttx/spi.h.
* Bit-encoded SPI status (see include/nuttx/spi/spi.h.
*
****************************************************************************/

View File

@ -80,7 +80,7 @@
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/ssd1306.h>

View File

@ -121,7 +121,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <arch/board/board.h>

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -125,7 +125,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*

View File

@ -51,7 +51,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/ssd1289.h>

View File

@ -47,7 +47,7 @@
#include <errno.h>
#include <nuttx/irq.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/input/touchscreen.h>
#include <nuttx/input/ads7843e.h>

View File

@ -48,7 +48,7 @@
#include <debug.h>
#ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
# include <nuttx/fs/nxffs.h>
#endif

View File

@ -68,7 +68,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <arch/board/board.h>

View File

@ -46,7 +46,7 @@
#include <errno.h>
#ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
#endif

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -114,7 +114,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*

View File

@ -54,7 +54,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <arch/board/board.h>

View File

@ -46,7 +46,7 @@
#include <errno.h>
#ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
#endif

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -104,7 +104,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*

View File

@ -54,7 +54,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <arch/board/board.h>

View File

@ -46,7 +46,7 @@
#include <errno.h>
#ifdef CONFIG_STM32_SPI1
# include <nuttx/spi.h>
# include <nuttx/spi/spi.h>
# include <nuttx/mtd.h>
#endif

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -104,7 +104,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*

View File

@ -1,97 +1,96 @@
/************************************************************************************
* configs/stm32_tiny/src/up_boot.c
*
* Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
* Laurent Latil <laurent@latil.nom.fr>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
/************************************************************************************
* Included Files
************************************************************************************/
#include <nuttx/config.h>
#include <nuttx/spi.h>
#include <debug.h>
#include <arch/board/board.h>
#include "up_arch.h"
#include "stm32_tiny-internal.h"
/************************************************************************************
* Definitions
************************************************************************************/
/************************************************************************************
* Private Data
************************************************************************************/
/************************************************************************************
* Public Functions
************************************************************************************/
/************************************************************************************
* Name: stm32_boardinitialize
*
* Description:
* All STM32 architectures must provide the following entry point. This entry point
* is called early in the initialization -- after all memory has been configured
* and mapped but before any devices have been initialized.
*
************************************************************************************/
void stm32_boardinitialize(void)
{
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
#endif
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
* stm32_spiinitialize() has been brought into the link.
*/
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2)
stm32_spiinitialize();
#endif
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
* into the build.
*/
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
stm32_usbinitialize();
#endif
}
/************************************************************************************
* configs/stm32_tiny/src/up_boot.c
*
* Copyright (C) 2009, 2011, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
* Laurent Latil <laurent@latil.nom.fr>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
/************************************************************************************
* Included Files
************************************************************************************/
#include <nuttx/config.h>
#include <nuttx/spi/spi.h>
#include <debug.h>
#include <arch/board/board.h>
#include "up_arch.h"
#include "stm32_tiny-internal.h"
/************************************************************************************
* Definitions
************************************************************************************/
/************************************************************************************
* Private Data
************************************************************************************/
/************************************************************************************
* Public Functions
************************************************************************************/
/************************************************************************************
* Name: stm32_boardinitialize
*
* Description:
* All STM32 architectures must provide the following entry point. This entry point
* is called early in the initialization -- after all memory has been configured
* and mapped but before any devices have been initialized.
*
************************************************************************************/
void stm32_boardinitialize(void)
{
/* Configure on-board LEDs if LED support has been selected. */
#ifdef CONFIG_ARCH_LEDS
up_ledinit();
#endif
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
* stm32_spiinitialize() has been brought into the link.
*/
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2)
stm32_spiinitialize();
#endif
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
* into the build.
*/
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
stm32_usbinitialize();
#endif
}

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -117,7 +117,7 @@ void stm32_spiinitialize(void)
* 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
* 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
* board:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/wireless/nrf24l01.h>
#include <arch/board/board.h>

View File

@ -45,7 +45,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -109,7 +109,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*
@ -172,7 +172,7 @@ uint8_t stm32_spi3status(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)
* or command (false). This function must be provided by platform-specific
* 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:
*

View File

@ -45,7 +45,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -116,7 +116,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*
@ -188,7 +188,7 @@ uint8_t stm32_spi3status(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)
* or command (false). This function must be provided by platform-specific
* 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:
*

View File

@ -51,7 +51,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/ssd1289.h>

View File

@ -42,7 +42,7 @@
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/ug-2864ambag01.h>

View File

@ -42,7 +42,7 @@
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/ssd1306.h>

View File

@ -45,7 +45,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -109,7 +109,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*
@ -172,7 +172,7 @@ uint8_t stm32_spi3status(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)
* or command (false). This function must be provided by platform-specific
* 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:
*

View File

@ -44,7 +44,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include <nuttx/lcd/hd4478ou.h>
#include <nuttx/usb/usbhost.h>

View File

@ -43,7 +43,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h"
@ -183,7 +183,7 @@ void weak_function pic32mx_spiinitialize(void)
* The external functions, pic32mx_spi2select and pic32mx_spi2status
* 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
* 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 PIC32MX logic. To use this common SPI logic on your
* board:
*

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include <avr/io.h>
@ -144,7 +144,7 @@ void weak_function at90usb_spiinitialize(void)
* Description:
* The external functions, avr_spiselect and avr_spistatus 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 include/nuttx/spi.h). All
* of the SPI interface defined by struct spi_ops_s (see include/nuttx/spi/spi.h). All
* other methods (including up_spiinitialize()) are provided by common AVR logic.
* To use this common SPI logic on your board:
*

View File

@ -46,7 +46,7 @@
#include <debug.h>
#include <errno.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/mmcsd.h>
#include "at90usb_internal.h"

View File

@ -44,7 +44,7 @@
#include <stdbool.h>
#include <debug.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.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
* 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
* 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
* board:
*

View File

@ -79,7 +79,7 @@
#include <nuttx/i2c.h>
#include <nuttx/sensors/lis331dl.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#include <nuttx/wireless/cc1101.h>
#include <stdio.h>

View File

@ -44,7 +44,7 @@
#include <nuttx/config.h>
#include <nuttx/spi.h>
#include <nuttx/spi/spi.h>
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
@ -114,7 +114,7 @@ void weak_function stm32_spiinitialize(void)
* 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
* 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
* board:
*

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