mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nucleo-f446ze: add VBAT config
This commit is contained in:
parent
e995099190
commit
034791d767
@ -197,6 +197,7 @@ static const adc_conf_t adc_config[] = {
|
||||
{ .pin = GPIO_PIN(PORT_B, 0), .dev = 2, .chan = 9 }, /* ADC123_IN9 */
|
||||
{ .pin = GPIO_PIN(PORT_C, 1), .dev = 2, .chan = 15 }, /* ADC3_IN15 */
|
||||
{ .pin = GPIO_PIN(PORT_C, 0), .dev = 2, .chan = 8 }, /* ADC3_IN8 */
|
||||
{ .pin = GPIO_UNDEF, .dev = 0, .chan = 18 }, /* VBAT */
|
||||
};
|
||||
|
||||
/**
|
||||
@ -204,6 +205,8 @@ static const adc_conf_t adc_config[] = {
|
||||
*/
|
||||
#define ADC_NUMOF ARRAY_SIZE(adc_config)
|
||||
|
||||
#define VBAT_ADC ADC_LINE(6) /**< VBAT ADC line */
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user