boards/nucleo-f091: add ADC configuration
This commit is contained in:
parent
35d22e3230
commit
d860393076
@ -1,4 +1,5 @@
|
|||||||
# Put defined MCU peripherals here (in alphabetical order)
|
# Put defined MCU peripherals here (in alphabetical order)
|
||||||
|
FEATURES_PROVIDED += periph_adc
|
||||||
FEATURES_PROVIDED += periph_cpuid
|
FEATURES_PROVIDED += periph_cpuid
|
||||||
FEATURES_PROVIDED += periph_gpio
|
FEATURES_PROVIDED += periph_gpio
|
||||||
FEATURES_PROVIDED += periph_pwm
|
FEATURES_PROVIDED += periph_pwm
|
||||||
|
|||||||
@ -139,9 +139,17 @@ static const pwm_conf_t pwm_config[] = {
|
|||||||
* @brief ADC configuration
|
* @brief ADC configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define ADC_NUMOF (0)
|
#define ADC_CONFIG { \
|
||||||
/** @} */
|
{ GPIO_PIN(PORT_A, 0), 0 },\
|
||||||
|
{ GPIO_PIN(PORT_A, 1), 1 },\
|
||||||
|
{ GPIO_PIN(PORT_A, 4), 4 },\
|
||||||
|
{ GPIO_PIN(PORT_B, 0), 8 },\
|
||||||
|
{ GPIO_PIN(PORT_C, 1), 11 },\
|
||||||
|
{ GPIO_PIN(PORT_C, 0), 10 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define ADC_NUMOF (6)
|
||||||
|
/** @} */
|
||||||
/**
|
/**
|
||||||
* @brief DAC configuration
|
* @brief DAC configuration
|
||||||
* @{
|
* @{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user