1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

boards: add ADC definitions to periph_conf

This commit is contained in:
Ludwig Knüpfer 2015-10-25 14:29:43 +01:00
parent 73d21efe7d
commit 01b3486edc
6 changed files with 51 additions and 0 deletions

View File

@ -1,4 +1,5 @@
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_random

View File

@ -123,6 +123,22 @@
#define SPI_0_PIN_SCK 15
/** @} */
/**
* @name ADC configuration
* @{
*/
#define ADC_NUMOF (1U)
#define ADC_0_EN 1
#define ADC_MAX_CHANNELS 4
/* ADC 0 device configuration */
#define ADC_0_CHANNELS 4
#define ADC_0_CH0 ADC_CONFIG_PSEL_AnalogInput3
#define ADC_0_CH1 ADC_CONFIG_PSEL_AnalogInput4
#define ADC_0_CH2 ADC_CONFIG_PSEL_AnalogInput5
#define ADC_0_CH3 ADC_CONFIG_PSEL_AnalogInput6
/** @} */
/**
* @name Radio device configuration
*

View File

@ -1,4 +1,5 @@
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_random

View File

@ -130,6 +130,22 @@ extern "C" {
#define SPI_1_PIN_SCK 22
/** @} */
/**
* @name ADC configuration
* @{
*/
#define ADC_NUMOF (1U)
#define ADC_0_EN 1
#define ADC_MAX_CHANNELS 4
/* ADC 0 device configuration */
#define ADC_0_CHANNELS 4
#define ADC_0_CH0 ADC_CONFIG_PSEL_AnalogInput0
#define ADC_0_CH1 ADC_CONFIG_PSEL_AnalogInput1
#define ADC_0_CH2 ADC_CONFIG_PSEL_AnalogInput2
#define ADC_0_CH3 ADC_CONFIG_PSEL_AnalogInput3
/** @} */
/**
* @name Radio device configuration
*

View File

@ -1,4 +1,5 @@
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_cpuid
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_random

View File

@ -128,6 +128,22 @@ extern "C" {
#define SPI_1_PIN_SCK 22
/** @} */
/**
* @name ADC configuration
* @{
*/
#define ADC_NUMOF (1U)
#define ADC_0_EN 1
#define ADC_MAX_CHANNELS 4
/* ADC 0 device configuration */
#define ADC_0_CHANNELS 4
#define ADC_0_CH0 ADC_CONFIG_PSEL_AnalogInput4
#define ADC_0_CH1 ADC_CONFIG_PSEL_AnalogInput5
#define ADC_0_CH2 ADC_CONFIG_PSEL_AnalogInput6
#define ADC_0_CH3 ADC_CONFIG_PSEL_AnalogInput7
/** @} */
/**
* @name Radio device configuration
*