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:
parent
1018a6fa67
commit
5b0252b150
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user