Skip to content

Commit

Permalink
boards: stk3600: adapt to new adc and dac api.
Browse files Browse the repository at this point in the history
  • Loading branch information
basilfx committed Mar 22, 2016
1 parent 5adf5b4 commit a9215e8
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions boards/stk3600/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,51 +44,51 @@ extern "C" {
* @brief ADC configuration
* @{
*/
static const adc_conf_t adc_config[] = {
{
ADC0, /* device */
cmuClock_ADC0, /* CMU register */
}
};

static const adc_chan_conf_t adc_channel_config[] = {
{
0, /* ADC device index */
adcSingleInputTemp, /* channel to use */
adcRef1V25, /* channel reference */
adcAcqTime8 /* acquisition time */
}
};

static const adc_conf_t adc_config[] = {
},
{
ADC0, /* device */
cmuClock_ADC0, /* CMU register */
1, /* number of channels */
adc_channel_config, /* first channel config */
0, /* ADC device index */
adcSingleInputVDDDiv3, /* channel to use */
adcRef1V25, /* channel reference */
adcAcqTime8 /* acquisition time */
}
};

#define ADC_NUMOF (1U)
#define ADC_0_EN 1
#define ADC_MAX_CHANNELS 1
#define ADC_NUMOF (2U)
/** @} */

/**
* @brief DAC configuration
* @{
*/
static const dac_chan_conf_t dac_channel_config[] = {
static const dac_conf_t dac_config[] = {
{
0 /* channel index */
DAC0, /* device */
cmuClock_DAC0, /* CMU register */
}
};

static const dac_conf_t dac_config[] = {
static const dac_chan_conf_t dac_channel_config[] = {
{
DAC0, /* device */
cmuClock_DAC0, /* CMU register */
dacRefVDD, /* voltage reference */
1, /* number of channels */
dac_channel_config, /* first channel config */
0, /* DAC channel index */
1, /* channel to use */
dacRefVDD, /* channel reference */
}
};

#define DAC_NUMOF (1U)
#define DAC_0_EN 1
#define DAC_MAX_CHANNELS 1
/** @} */

/**
Expand Down Expand Up @@ -260,4 +260,4 @@ static const uart_conf_t uart_config[] = {
#endif

#endif /* PERIPH_CONF_H */
/** @} */
/** @} */

0 comments on commit a9215e8

Please sign in to comment.