drivers/saul: Show configuration structs in docs
This commit is contained in:
parent
95254990d0
commit
0e5b3d93ec
@ -19,11 +19,11 @@
|
|||||||
#ifndef SAUL_PERIPH_H
|
#ifndef SAUL_PERIPH_H
|
||||||
#define SAUL_PERIPH_H
|
#define SAUL_PERIPH_H
|
||||||
|
|
||||||
#ifdef MODULE_SAUL_GPIO
|
#if MODULE_SAUL_GPIO || DOXYGEN
|
||||||
#include "periph/gpio.h"
|
#include "periph/gpio.h"
|
||||||
#endif /* MODULE_SAUL_GPIO */
|
#endif /* MODULE_SAUL_GPIO */
|
||||||
|
|
||||||
#ifdef MODULE_SAUL_ADC
|
#if MODULE_SAUL_ADC || DOXYGEN
|
||||||
#include "periph/adc.h"
|
#include "periph/adc.h"
|
||||||
#endif /* MODULE_SAUL_ADC */
|
#endif /* MODULE_SAUL_ADC */
|
||||||
|
|
||||||
@ -31,7 +31,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MODULE_SAUL_GPIO
|
#if MODULE_SAUL_GPIO || DOXYGEN
|
||||||
|
/**
|
||||||
|
* @brief SAUL GPIO configuration flags
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SAUL_GPIO_INVERTED = (1 << 0), /**< pin is used as inverted */
|
SAUL_GPIO_INVERTED = (1 << 0), /**< pin is used as inverted */
|
||||||
SAUL_GPIO_INIT_CLEAR = (1 << 1), /**< set pin inactive after init */
|
SAUL_GPIO_INIT_CLEAR = (1 << 1), /**< set pin inactive after init */
|
||||||
@ -49,7 +52,7 @@ typedef struct {
|
|||||||
} saul_gpio_params_t;
|
} saul_gpio_params_t;
|
||||||
#endif /* MODULE_SAUL_GPIO */
|
#endif /* MODULE_SAUL_GPIO */
|
||||||
|
|
||||||
#ifdef MODULE_SAUL_ADC
|
#if MODULE_SAUL_ADC || DOXYGEN
|
||||||
/**
|
/**
|
||||||
* @brief Direct mapped ADC configuration values
|
* @brief Direct mapped ADC configuration values
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user