1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

cpu/samd5x: add ADC resolution type

This commit is contained in:
János Brodbeck 2020-08-07 19:30:46 +02:00
parent e9833f68d6
commit 7a7f06a3e1
No known key found for this signature in database
GPG Key ID: 65C193B0D8D1BCE6

View File

@ -83,6 +83,19 @@ enum {
*/
#define SPI_HWCS(x) (UINT_MAX - 1)
#ifndef DOXYGEN
#define HAVE_ADC_RES_T
typedef enum {
ADC_RES_6BIT = 0xff, /**< not supported */
ADC_RES_8BIT = ADC_CTRLB_RESSEL_8BIT, /**< ADC resolution: 8 bit */
ADC_RES_10BIT = ADC_CTRLB_RESSEL_10BIT, /**< ADC resolution: 10 bit */
ADC_RES_12BIT = ADC_CTRLB_RESSEL_12BIT, /**< ADC resolution: 12 bit */
ADC_RES_14BIT = 0xfe, /**< not supported */
ADC_RES_16BIT = 0xfd /**< not supported */
} adc_res_t;
/** @} */
#endif /* DOXYGEN */
/**
* @brief The MCU has a 12 bit DAC
*/