mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
board/nucleo144-f412: add ADC configuration
This commit is contained in:
parent
8fca896d0d
commit
b67e5161dc
@ -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_hwrng
|
||||
|
@ -226,12 +226,27 @@ static const spi_conf_t spi_config[] = {
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name ADC configuration
|
||||
* @name ADC configuration
|
||||
*
|
||||
* Note that we do not configure all ADC channels,
|
||||
* and not in the STM32F413zh order. Instead, we
|
||||
* just define 6 ADC channels, for the Nucleo
|
||||
* Arduino header pins A0-A5
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
#define ADC_NUMOF (0)
|
||||
#define ADC_NUMOF (6U)
|
||||
#define ADC_CONFIG { \
|
||||
{GPIO_PIN(PORT_A, 3), 0, 3}, \
|
||||
{GPIO_PIN(PORT_C, 0), 0, 10}, \
|
||||
{GPIO_PIN(PORT_C, 3), 0, 13}, \
|
||||
{GPIO_PIN(PORT_C, 1), 0, 11}, \
|
||||
{GPIO_PIN(PORT_C, 4), 0, 14}, \
|
||||
{GPIO_PIN(PORT_C, 5), 0, 15}, \
|
||||
}
|
||||
/** @} */
|
||||
|
||||
|
||||
/**
|
||||
* @name DAC configuration
|
||||
* @{
|
||||
|
Loading…
Reference in New Issue
Block a user