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

doxygen/SPI: don't include overridden typedefs

Add missing #ifndefs to overridden SPI typedefs.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
Yegor Yefremov 2019-02-07 08:33:36 +01:00
parent 5b0252b150
commit fa3b0ff04b
7 changed files with 13 additions and 1 deletions

View File

@ -84,6 +84,7 @@ typedef enum {
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
/** @} */
#ifndef DOXYGEN
/**
* @brief SPI mode select macro
*
@ -131,6 +132,7 @@ typedef enum {
SPI_CLK_10MHZ = SPI_CLK_SEL(1, 0, 0) /**< 16/2 -> 8MHz */
} spi_clk_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief Bitmasks indicating which are the possible dividers for a timer

View File

@ -206,7 +206,6 @@ typedef enum {
UART_STOP_BITS_2 = UART_LCRH_STP2, /**< 2 stop bits */
} uart_stop_bits_t;
/** @} */
#endif /* DOXYGEN */
/**
* @name Override SPI mode settings
@ -234,6 +233,7 @@ typedef enum {
SPI_CLK_10MHZ = 4 /**< drive the SPI bus with 10MHz */
} spi_clk_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief Datafields for static SPI clock configuration values

View File

@ -142,6 +142,7 @@ typedef struct {
#define PERIPH_SPI_NEEDS_INIT_CS 1
/** @} */
#ifndef DOXYGEN
/**
* @brief Override SPI clock speed values
* @{
@ -169,6 +170,7 @@ typedef enum {
SPI_MODE_3 = SSI_FRF_MOTO_MODE_0, /**< CPOL=1, CPHA=1 */
} spi_mode_t;
/** @} */
#endif /* ndef DOXYGEN */
#ifdef __cplusplus
}

View File

@ -99,6 +99,7 @@ typedef struct {
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
/* @} */
#ifndef DOXYGEN
/**
* @brief Override SPI clock speed values
* @{
@ -112,6 +113,7 @@ typedef enum {
SPI_CLK_10MHZ = 10000 /**< drive the SPI bus with 10MHz */
} spi_clk_t;
/** @} */
#endif /* ndef DOXYGEN */
/* @} */
#ifdef __cplusplus

View File

@ -128,6 +128,7 @@ typedef struct {
uint8_t irqn; /**< IRQ number of the timer device */
} timer_conf_t;
#ifndef DOXYGEN
/**
* @brief Override SPI mode values
* @{
@ -154,6 +155,7 @@ typedef enum {
SPI_CLK_10MHZ = SPI_FREQUENCY_FREQUENCY_M8 /**< 10MHz */
} spi_clk_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief SPI configuration values

View File

@ -228,6 +228,7 @@ typedef enum {
SPI_PAD_MOSI_0_SCK_3 = 0x3, /**< use pad 0 for MOSI, pad 3 for SCK */
} spi_mosipad_t;
#ifndef DOXYGEN
/**
* @brief Override SPI modes
* @{
@ -254,6 +255,7 @@ typedef enum {
SPI_CLK_10MHZ = 10000000U /**< drive the SPI bus with 10MHz */
} spi_clk_t;
/** @} */
#endif /* ndef DOXYGEN */
/**
* @brief SPI device configuration

View File

@ -149,6 +149,7 @@ typedef enum {
GPIO_MUX_B = 1, /**< alternate function B */
} gpio_mux_t;
#ifndef DOXYGEN
/**
* @brief Override default SPI modes
* @{
@ -175,6 +176,7 @@ typedef enum {
SPI_CLK_10MHZ = (10000000) /**< 10MHz */
} spi_clk_t;
/** @} */
#endif /* ndef DOXYGEN */
#ifndef DOXYGEN
/**