1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

drivers/periph: adc_sample() now returns int32_t

Reasoning: This allow support for ADCs with resolution of more than 16 bits on
8 bit and 16 bit platforms.
This commit is contained in:
Marian Buschsieweke 2020-01-08 15:25:20 +01:00
parent 7480642776
commit 6e39b4d191
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -56,6 +56,7 @@
#define PERIPH_ADC_H
#include <limits.h>
#include <stdint.h>
#include "periph_cpu.h"
#include "periph_conf.h"
@ -125,7 +126,7 @@ int adc_init(adc_t line);
* @return the sampled value on success
* @return -1 if resolution is not applicable
*/
int adc_sample(adc_t line, adc_res_t res);
int32_t adc_sample(adc_t line, adc_res_t res);
#ifdef __cplusplus
}