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:
parent
7480642776
commit
6e39b4d191
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user