Skip to content
Snippets Groups Projects
Commit 1865ee93 authored by Gunar Schorcht's avatar Gunar Schorcht
Browse files

cpu/esp8266: fix of adc_res_t

cpu/esp8266/include/periph_cpu.h overrides the default definition of adc_res_t from periph/adc with a definition which contains only one resolution. This gives compilation errorss 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, esp8266 uses now the default definition of adc_res_t and returns -1 if a solution is used in adc_sample that is not supported.
parent fdde802b
No related branches found
No related tags found
No related merge requests found
...@@ -27,16 +27,6 @@ ...@@ -27,16 +27,6 @@
extern "C" { extern "C" {
#endif #endif
/**
* @brief Override the ADC resolution configuration
* @{
*/
#define HAVE_ADC_RES_T
typedef enum {
ADC_RES_10BIT /* only one resolution is supported */
} adc_res_t;
/** @} */
/** /**
* @brief Length of the CPU_ID in octets * @brief Length of the CPU_ID in octets
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment