-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards/b-l072z-lrwan1: add missing adc feature
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
* @brief Peripheral MCU configuration for the ST B-L072Z-LRWAN1 board | ||
* | ||
* @author Alexandre Abadie <[email protected]> | ||
* @author Thibault Tisserand <[email protected]> | ||
*/ | ||
|
||
#ifndef PERIPH_CONF_H | ||
|
@@ -147,6 +148,21 @@ static const spi_conf_t spi_config[] = { | |
#define SPI_NUMOF ARRAY_SIZE(spi_config) | ||
/** @} */ | ||
|
||
/** | ||
* @name ADC configuration | ||
* @{ | ||
*/ | ||
static const adc_conf_t adc_config[] = { | ||
{ GPIO_PIN(PORT_A, 0), 0 }, | ||
{ GPIO_PIN(PORT_A, 2), 2 }, | ||
{ GPIO_PIN(PORT_A, 3), 3 }, | ||
{ GPIO_PIN(PORT_A, 4), 4 }, | ||
{ GPIO_PIN(PORT_A, 5), 5 } | ||
}; | ||
|
||
#define ADC_NUMOF ARRAY_SIZE(adc_config) | ||
/** @} */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|