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:
parent
5b0252b150
commit
fa3b0ff04b
@ -84,6 +84,7 @@ typedef enum {
|
|||||||
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
|
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
#ifndef DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief SPI mode select macro
|
* @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_10MHZ = SPI_CLK_SEL(1, 0, 0) /**< 16/2 -> 8MHz */
|
||||||
} spi_clk_t;
|
} spi_clk_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Bitmasks indicating which are the possible dividers for a timer
|
* @brief Bitmasks indicating which are the possible dividers for a timer
|
||||||
|
|||||||
@ -206,7 +206,6 @@ typedef enum {
|
|||||||
UART_STOP_BITS_2 = UART_LCRH_STP2, /**< 2 stop bits */
|
UART_STOP_BITS_2 = UART_LCRH_STP2, /**< 2 stop bits */
|
||||||
} uart_stop_bits_t;
|
} uart_stop_bits_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
#endif /* DOXYGEN */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Override SPI mode settings
|
* @name Override SPI mode settings
|
||||||
@ -234,6 +233,7 @@ typedef enum {
|
|||||||
SPI_CLK_10MHZ = 4 /**< drive the SPI bus with 10MHz */
|
SPI_CLK_10MHZ = 4 /**< drive the SPI bus with 10MHz */
|
||||||
} spi_clk_t;
|
} spi_clk_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Datafields for static SPI clock configuration values
|
* @brief Datafields for static SPI clock configuration values
|
||||||
|
|||||||
@ -142,6 +142,7 @@ typedef struct {
|
|||||||
#define PERIPH_SPI_NEEDS_INIT_CS 1
|
#define PERIPH_SPI_NEEDS_INIT_CS 1
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
#ifndef DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief Override SPI clock speed values
|
* @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_3 = SSI_FRF_MOTO_MODE_0, /**< CPOL=1, CPHA=1 */
|
||||||
} spi_mode_t;
|
} spi_mode_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,6 +99,7 @@ typedef struct {
|
|||||||
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
|
#define PERIPH_SPI_NEEDS_TRANSFER_REGS
|
||||||
/* @} */
|
/* @} */
|
||||||
|
|
||||||
|
#ifndef DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief Override SPI clock speed values
|
* @brief Override SPI clock speed values
|
||||||
* @{
|
* @{
|
||||||
@ -112,6 +113,7 @@ typedef enum {
|
|||||||
SPI_CLK_10MHZ = 10000 /**< drive the SPI bus with 10MHz */
|
SPI_CLK_10MHZ = 10000 /**< drive the SPI bus with 10MHz */
|
||||||
} spi_clk_t;
|
} spi_clk_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
/* @} */
|
/* @} */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@ -128,6 +128,7 @@ typedef struct {
|
|||||||
uint8_t irqn; /**< IRQ number of the timer device */
|
uint8_t irqn; /**< IRQ number of the timer device */
|
||||||
} timer_conf_t;
|
} timer_conf_t;
|
||||||
|
|
||||||
|
#ifndef DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief Override SPI mode values
|
* @brief Override SPI mode values
|
||||||
* @{
|
* @{
|
||||||
@ -154,6 +155,7 @@ typedef enum {
|
|||||||
SPI_CLK_10MHZ = SPI_FREQUENCY_FREQUENCY_M8 /**< 10MHz */
|
SPI_CLK_10MHZ = SPI_FREQUENCY_FREQUENCY_M8 /**< 10MHz */
|
||||||
} spi_clk_t;
|
} spi_clk_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SPI configuration values
|
* @brief SPI configuration values
|
||||||
|
|||||||
@ -228,6 +228,7 @@ typedef enum {
|
|||||||
SPI_PAD_MOSI_0_SCK_3 = 0x3, /**< use pad 0 for MOSI, pad 3 for SCK */
|
SPI_PAD_MOSI_0_SCK_3 = 0x3, /**< use pad 0 for MOSI, pad 3 for SCK */
|
||||||
} spi_mosipad_t;
|
} spi_mosipad_t;
|
||||||
|
|
||||||
|
#ifndef DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief Override SPI modes
|
* @brief Override SPI modes
|
||||||
* @{
|
* @{
|
||||||
@ -254,6 +255,7 @@ typedef enum {
|
|||||||
SPI_CLK_10MHZ = 10000000U /**< drive the SPI bus with 10MHz */
|
SPI_CLK_10MHZ = 10000000U /**< drive the SPI bus with 10MHz */
|
||||||
} spi_clk_t;
|
} spi_clk_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SPI device configuration
|
* @brief SPI device configuration
|
||||||
|
|||||||
@ -149,6 +149,7 @@ typedef enum {
|
|||||||
GPIO_MUX_B = 1, /**< alternate function B */
|
GPIO_MUX_B = 1, /**< alternate function B */
|
||||||
} gpio_mux_t;
|
} gpio_mux_t;
|
||||||
|
|
||||||
|
#ifndef DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief Override default SPI modes
|
* @brief Override default SPI modes
|
||||||
* @{
|
* @{
|
||||||
@ -175,6 +176,7 @@ typedef enum {
|
|||||||
SPI_CLK_10MHZ = (10000000) /**< 10MHz */
|
SPI_CLK_10MHZ = (10000000) /**< 10MHz */
|
||||||
} spi_clk_t;
|
} spi_clk_t;
|
||||||
/** @} */
|
/** @} */
|
||||||
|
#endif /* ndef DOXYGEN */
|
||||||
|
|
||||||
#ifndef DOXYGEN
|
#ifndef DOXYGEN
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user