mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
b3b9f596a4
cpu/esp32/include/periph_cpu.h overrides the default definition of adc_res_t from periph/adc with a definition which contains only four resolution, two new resolutions and two resolutions defined by the default definition of adc_res_t. This gives compilation errors if an application uses other resolutions. According to the documentation, adc_sample should return -1 if the resolution is not supported. All other CPUs override adc_res_t either to add new resolutions or to mark resolutions as unsupported. But they all allow to use them at the interface. Therefore, esp32 overrides now the definition of adc_res_t with all resolutions that are defined by the default definition of adc_res_t and new platform specific resolutions. It returns -1 if a resolution is used in adc_sample that is not supported. |
||
---|---|---|
.. | ||
freertos | ||
sys | ||
adc_arch.h | ||
cpu_conf.h | ||
cpu.h | ||
esp_common_log.h | ||
esp_common.h | ||
exceptions.h | ||
gpio_arch.h | ||
irq_arch.h | ||
log_module.h | ||
periph_cpu.h | ||
sdk_conf.h | ||
stdio.h | ||
syscalls.h | ||
thread_arch.h | ||
tools.h | ||
xtensa_conf.h |