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:
parent
73d21efe7d
commit
01b3486edc
@ -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
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user