1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #10530 from gschorcht/esp32_adc_res_fix

cpu/esp32: fix of adc_res_t
This commit is contained in:
Sebastian Meiling 2018-12-04 09:35:47 +01:00 committed by GitHub
commit bb20614c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,10 +206,14 @@ typedef enum {
*/
#define HAVE_ADC_RES_T
typedef enum {
ADC_RES_9BIT = 0, /**< ADC resolution: 9 bit */
ADC_RES_10BIT, /**< ADC resolution: 10 bit */
ADC_RES_11BIT, /**< ADC resolution: 11 bit */
ADC_RES_12BIT, /**< ADC resolution: 12 bit */
ADC_RES_6BIT = 0xf0, /**< ADC resolution: 6 bit is not supported */
ADC_RES_8BIT = 0xf1, /**< ADC resolution: 8 bit is not supported */
ADC_RES_9BIT = 0, /**< ADC resolution: 9 bit */
ADC_RES_10BIT = 1, /**< ADC resolution: 10 bit */
ADC_RES_11BIT = 2, /**< ADC resolution: 11 bit */
ADC_RES_12BIT = 3, /**< ADC resolution: 12 bit */
ADC_RES_14BIT = 0xf2, /**< ADC resolution: 14 bit is not supported */
ADC_RES_16BIT = 0xf3, /**< ADC resolution: 16 bit is not supported */
} adc_res_t;
/** @} */