From 8578ce98322b37c1b2d6fe6dce172b6cd1aa7e17 Mon Sep 17 00:00:00 2001 From: "Daniel P. Carvalho" Date: Thu, 11 Jul 2019 10:28:42 -0600 Subject: [PATCH] include/nuttx/spi/spi.h: Added standard definitions for ADC SPI device ID. --- configs/olimex-stm32-e407/README.txt | 12 +++++++----- include/nuttx/spi/spi.h | 2 ++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/configs/olimex-stm32-e407/README.txt b/configs/olimex-stm32-e407/README.txt index ccb3cbcf98..5abaceebe7 100644 --- a/configs/olimex-stm32-e407/README.txt +++ b/configs/olimex-stm32-e407/README.txt @@ -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/ + tools/configure.sh [OPTIONS] olimex-stm32-e407/ - Where 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 + 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 ----------------- diff --git a/include/nuttx/spi/spi.h b/include/nuttx/spi/spi.h index d53adc8778..060286cf54 100644 --- a/include/nuttx/spi/spi.h +++ b/include/nuttx/spi/spi.h @@ -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. */ };