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

doxygen/ADC: don't include overridden typedefs

Add missing #ifndefs to overridden ADC resolution typedefs.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
Yegor Yefremov 2019-02-07 08:06:58 +01:00
parent 1018a6fa67
commit 5b0252b150
10 changed files with 22 additions and 0 deletions

View File

@ -284,6 +284,7 @@ typedef struct {
uint_fast8_t cfg; /**< timer config word */
} timer_conf_t;
#ifndef DOXYGEN
/**
* @name Override resolution options
* @{
@ -300,6 +301,7 @@ typedef enum {
ADC_RES_16BIT = (0xd00), /**< not supported by hardware */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief ADC configuration wrapper

View File

@ -218,6 +218,8 @@ typedef enum {
*
* @{
*/
#ifndef DOXYGEN
/**
* @brief Possible ADC resolution settings
*/
@ -233,6 +235,7 @@ typedef enum {
ADC_RES_16BIT = 0xf3, /**< ADC resolution: 16 bit is not supported */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief Number of ADC cahnnels that could be used at maximum

View File

@ -64,6 +64,7 @@ typedef enum {
#define PERIPH_I2C_NEED_WRITE_REG
/** @} */
#ifndef DOXYGEN
/**
* @brief Override ADC resolution values
* @{
@ -78,6 +79,7 @@ typedef enum {
ADC_RES_16BIT = 0xf3 /**< ADC resolution: 16 bit (not supported) */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief I2C (TWI) configuration options

View File

@ -67,6 +67,7 @@ enum {
NRF52_VDD = 8, /**< VDD, not useful if VDD is reference... */
};
#ifndef DOXYGEN
/**
* @brief Override ADC resolution values
* @{
@ -81,6 +82,7 @@ typedef enum {
ADC_RES_16BIT = 0xf2 /**< not supported by hardware */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief Override I2C speed settings

View File

@ -176,6 +176,7 @@ typedef enum {
} spi_clk_t;
/** @} */
#ifndef DOXYGEN
/**
* @brief Override ADC resolution values
* @{
@ -190,6 +191,7 @@ typedef enum {
ADC_RES_16BIT = 0x8 /**< not applicable */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief Timer configuration data

View File

@ -109,6 +109,7 @@ static inline int _sercom_id(SercomUsart *sercom)
return ((((uint32_t)sercom) >> 10) & 0x7) - 2;
}
#ifndef DOXYGEN
/**
* @brief Override the ADC resolution configuration
* @{
@ -123,6 +124,7 @@ typedef enum {
ADC_RES_16BIT = 0xfd /**< not supported */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
#ifdef __cplusplus
}
#endif

View File

@ -40,6 +40,7 @@ static const int8_t exti_config[1][32] = {
5, 6, 7, 0, -1, -1, 1, 2, 3, 4, -1, 5, -1, -1, 6, 7},
};
#ifndef DOXYGEN
#define HAVE_ADC_RES_T
typedef enum {
ADC_RES_6BIT = 0xff, /**< not supported */
@ -49,6 +50,7 @@ typedef enum {
ADC_RES_14BIT = 0xfe, /**< not supported */
ADC_RES_16BIT = 0xfd /**< not supported */
} adc_res_t;
#endif /* ndef DOXYGEN */
/** @} */
#ifdef __cplusplus

View File

@ -74,6 +74,7 @@ static const int8_t exti_config[2][32] = {
};
#endif /* CPU_MODEL_SAML21E */
#ifndef DOXYGEN
#define HAVE_ADC_RES_T
typedef enum {
ADC_RES_6BIT = 0xff, /**< not supported */
@ -84,6 +85,8 @@ typedef enum {
ADC_RES_16BIT = 0xfd /**< not supported */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
#ifdef __cplusplus
}
#endif

View File

@ -61,6 +61,7 @@ typedef struct {
uint8_t chan; /**< CPU ADC channel connected to the pin */
} adc_conf_t;
#ifndef DOXYGEN
/**
* @brief Override the ADC resolution configuration
* @{
@ -75,6 +76,7 @@ typedef enum {
ADC_RES_16BIT = 2 /**< ADC resolution: 16 bit (not supported)*/
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
#ifdef __cplusplus
}

View File

@ -59,6 +59,7 @@ typedef struct {
uint8_t chan; /**< CPU ADC channel connected to the pin */
} adc_conf_t;
#ifndef DOXYGEN
/**
* @brief Override the ADC resolution configuration
* @{
@ -73,6 +74,7 @@ typedef enum {
ADC_RES_16BIT = (0xff) /**< not applicable */
} adc_res_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @name EEPROM configuration