include/nuttx/spi/spi.h: Added standard definitions for ADC SPI device ID.

This commit is contained in:
Daniel P. Carvalho 2019-07-11 10:28:42 -06:00 committed by Gregory Nutt
parent 906e044ece
commit 8578ce9832
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,7 @@
README
======
The Olimex STM32-E407 configuration is based on the configuration olimex-stm32-h407 and stm32f4discovery.
The Olimex STM32-E407 configuration is based on the configuration
olimex-stm32-h407 and stm32f4discovery.
Configurations
==============
@ -10,9 +11,11 @@ Configurations
Each Olimex-STM32-E407 configuration is maintained in a sub-directory and
can be selected as follow:
tools/configure.sh olimex-stm32-e407/<subdir>
tools/configure.sh [OPTIONS] olimex-stm32-e407/<subdir>
Where <subdir> is one of the following:
Typical options include -l for a Linux host platform or -c for Cygwin
host platform. See 'tools/configure.sh -h' for other options. And
<subdir> is one of the sub-directories listed below.
Compile Firmware
----------------
@ -26,8 +29,7 @@ Configurations
nuttx.hex
nuttx.bin
You can return more kind of files by setting on menuconfig.
You can return more kinds of files by setting on menuconfig.
Flashing the Board
-----------------

View File

@ -486,6 +486,7 @@
#define SPIDEV_CANBUS(n) SPIDEV_ID(SPIDEVTYPE_CANBUS, (n))
#define SPIDEV_USBHOST(n) SPIDEV_ID(SPIDEVTYPE_USBHOST, (n))
#define SPIDEV_LPWAN(n) SPIDEV_ID(SPIDEVTYPE_LPWAN, (n))
#define SPIDEV_ADC(n) SPIDEV_ID(SPIDEVTYPE_ADC, (n))
#define SPIDEV_USER(n) SPIDEV_ID(SPIDEVTYPE_USER, (n))
/****************************************************************************
@ -524,6 +525,7 @@ enum spi_devtype_e
SPIDEVTYPE_CANBUS, /* Select SPI CAN bus controller over SPI */
SPIDEVTYPE_USBHOST, /* Select SPI USB host controller over SPI */
SPIDEVTYPE_LPWAN, /* Select SPI LPWAN controller over SPI */
SPIDEVTYPE_ADC, /* Select SPI ADC device */
SPIDEVTYPE_USER /* Board-specific values start here
* This must always be the last definition. */
};