doxygen/GPIO: don't include overridden typedefs

Add missing #ifndefs to overridden GPIO typedefs.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
Yegor Yefremov 2019-02-07 08:56:24 +01:00
parent fa3b0ff04b
commit cf65070b06
4 changed files with 8 additions and 1 deletions

View File

@ -56,6 +56,7 @@ typedef uint8_t gpio_t;
*/ */
#define GPIO_PIN(x, y) ((x << 4) | y) #define GPIO_PIN(x, y) ((x << 4) | y)
#ifndef DOXYGEN
/** /**
* @brief Override the GPIO flanks * @brief Override the GPIO flanks
* *
@ -73,6 +74,7 @@ typedef enum {
GPIO_RISING, /**< emit interrupt on rising flank */ GPIO_RISING, /**< emit interrupt on rising flank */
} gpio_flank_t; } gpio_flank_t;
/** @} */ /** @} */
#endif /* ndef DOXYGEN */
/** /**
* @brief Use some common SPI functions * @brief Use some common SPI functions

View File

@ -138,6 +138,7 @@ typedef struct {
#define PERIPH_SPI_NEEDS_TRANSFER_REGS #define PERIPH_SPI_NEEDS_TRANSFER_REGS
/** @} */ /** @} */
#ifndef DOXYGEN
/** /**
* @name Override the default GPIO mode settings * @name Override the default GPIO mode settings
* @{ * @{
@ -153,7 +154,7 @@ typedef enum {
GPIO_OD_PU = (0xff) /**< not supported */ GPIO_OD_PU = (0xff) /**< not supported */
} gpio_mode_t; } gpio_mode_t;
/** @} */ /** @} */
#endif /* ndef DOXYGEN */
/** /**
* @name UART device configuration * @name UART device configuration

View File

@ -82,6 +82,7 @@ typedef unsigned int gpio_t;
#define GPIO_PIN_NUMOF (40) #define GPIO_PIN_NUMOF (40)
/** @} */ /** @} */
#ifndef DOXYGEN
/** /**
* @brief Override mode flank selection values * @brief Override mode flank selection values
* *
@ -117,6 +118,7 @@ typedef enum {
GPIO_IN_OD_PU /**< input and open-drain output */ GPIO_IN_OD_PU /**< input and open-drain output */
} gpio_mode_t; } gpio_mode_t;
/** @} */ /** @} */
#endif /* ndef DOXYGEN */
/** @} */ /** @} */
/** /**

View File

@ -28,6 +28,7 @@
extern "C" { extern "C" {
#endif #endif
#ifndef DOXYGEN
/** /**
* @name Override the default GPIO type * @name Override the default GPIO type
* @{ * @{
@ -62,6 +63,7 @@ typedef enum {
GPIO_OD_PU = (PIN_DIR_OUT | PIN_MODE_OD | PIN_MODE_PU) /**< open-drain output with pull-up */ GPIO_OD_PU = (PIN_DIR_OUT | PIN_MODE_OD | PIN_MODE_PU) /**< open-drain output with pull-up */
} gpio_mode_t; } gpio_mode_t;
/** @} */ /** @} */
#endif /* ndef DOXYGEN */
/** /**
* @brief CPU provides own pm_off() function * @brief CPU provides own pm_off() function