1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/mcb2388: add ADC configuration

The MCB2388 has a potentiometer connected to an ADC input.
This commit is contained in:
Benjamin Valentin 2019-12-09 20:24:05 +01:00 committed by Benjamin Valentin
parent 9c0dfaada9
commit 4342d81220
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@ CPU = lpc2387
CPU_MODEL = lpc2388
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer

View File

@ -79,6 +79,21 @@ static const uart_conf_t uart_config[] = {
#define SPI_NUMOF (1)
/** @} */
/**
* @name ADC configuration
* @{
*/
static const adc_conf_t adc_config[] = {
{
.chan = 0,
.pinsel = 1,
.pinsel_msk = BIT14,
},
};
#define ADC_NUMOF (1)
/** @} */
#ifdef __cplusplus
}
#endif