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:
parent
9c0dfaada9
commit
4342d81220
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user