Skip to content

Commit

Permalink
fixup! periph/adc: add adc_sample_multi()
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed May 21, 2024
1 parent 6bfa974 commit 03930cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/include/periph/adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int adc_init(adc_t line);
*/
int32_t adc_sample(adc_t line, adc_res_t res);

#ifndef __cplusplus
/**
* @brief Capture multiple ADC samples from one or multiple ADC lines
*
Expand All @@ -146,6 +147,7 @@ int32_t adc_sample(adc_t line, adc_res_t res);
void adc_sample_multi(uint8_t lines_numof, const adc_t lines[lines_numof],
size_t num_samples, uint16_t bufs[lines_numof][num_samples],
adc_res_t res, uint32_t f_adc);
#endif

/**
* @brief Configure the ADC with a given resolution for continuous sampling
Expand Down

0 comments on commit 03930cc

Please sign in to comment.