-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/p-nucleo-wb55: add ADC configuration #17260
Copy link
Copy link
Closed
Labels
Type: new featureThe issue requests / The PR implemements a new feature for RIOTThe issue requests / The PR implemements a new feature for RIOT
Description
Description
ADC are defined as A0 ... A5 arduino pins on the board p-nucleo-wb55
#define ARDUINO_PIN_A0 GPIO_PIN(PORT_C, 0)
#define ARDUINO_PIN_A1 GPIO_PIN(PORT_C, 1)
#define ARDUINO_PIN_A2 GPIO_PIN(PORT_A, 1)
#define ARDUINO_PIN_A3 GPIO_PIN(PORT_A, 0)
#define ARDUINO_PIN_A4 GPIO_PIN(PORT_C, 3)
#define ARDUINO_PIN_A5 GPIO_PIN(PORT_C, 2)
> cd tests/periph_adc
> make BOARD=p-nucleo-wb55 flash
There are unsatisfied feature requirements: periph_adc
github/RIOT-OS/RIOT/tests/periph_adc/../../Makefile.include:947: *** You can let the build continue on expected errors by setting CONTINUE_ON_EXPECTED_ERRORS=1 to the command line. Stop.
But the FEATURES_PROVIDED += periph_adc is not provided in Makefile.features.
It requires the implementation of RIOT/cpu/stm32/periph/adc_wb.c and to add adc_config into periph_conf.h
// from Nucleo F446RE
static const adc_conf_t adc_config[] = {
{GPIO_PIN(PORT_C, 0), 0, 0},
{GPIO_PIN(PORT_C, 1), 0, 1},
{GPIO_PIN(PORT_A, 1), 0, 4},
{GPIO_PIN(PORT_A, 0), 0, 8},
{GPIO_PIN(PORT_C, 3), 0, 11},
{GPIO_PIN(PORT_C, 2), 0, 10},
};Useful links
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: new featureThe issue requests / The PR implemements a new feature for RIOTThe issue requests / The PR implemements a new feature for RIOT