@@ -68,13 +68,21 @@ extern "C" {
6868 * @brief Pull-down
6969 */
7070# if !defined(GPIOHANDLE_REQUEST_PULL_DOWN ) || defined(DOXYGEN )
71- # define GPIOHANDLE_REQUEST_PULL_DOWN (0xFF)
71+ # if defined(GPIOHANDLE_REQUEST_BIAS_PULL_DOWN )
72+ # define GPIOHANDLE_REQUEST_PULL_DOWN GPIOHANDLE_REQUEST_BIAS_PULL_DOWN
73+ # else
74+ # define GPIOHANDLE_REQUEST_PULL_DOWN (0xFF)
75+ # endif
7276# endif
7377/**
7478 * @brief Pull-up
7579 */
7680# if !defined(GPIOHANDLE_REQUEST_PULL_UP ) || defined(DOXYGEN )
77- # define GPIOHANDLE_REQUEST_PULL_UP (0xFF)
81+ # if defined(GPIOHANDLE_REQUEST_BIAS_PULL_UP )
82+ # define GPIOHANDLE_REQUEST_PULL_UP GPIOHANDLE_REQUEST_BIAS_PULL_UP
83+ # else
84+ # define GPIOHANDLE_REQUEST_PULL_UP (0xFF)
85+ # endif
7886# endif
7987
8088/**
@@ -170,6 +178,27 @@ typedef gpio_mock_t* gpio_t;
170178#define PROVIDES_PM_SET_LOWEST
171179/** @} */
172180
181+ /**
182+ * @name I2C Configuration
183+ *
184+ * The common I2C implementation is requested to provide the default implementations of the
185+ * `i2c_{read,write}_{reg,regs}` functions.
186+ */
187+
188+ #define PERIPH_I2C_NEED_READ_REG
189+ #define PERIPH_I2C_NEED_READ_REGS
190+ #define PERIPH_I2C_NEED_WRITE_REG
191+ #define PERIPH_I2C_NEED_WRITE_REGS
192+
193+ #if defined(MODULE_PERIPH_I2C_MOCK ) || defined(DOXYGEN )
194+ /**
195+ * @brief I2C configuration structure type
196+ */
197+ typedef struct {
198+ void * dummy ; /**< dummy attribute */
199+ } i2c_conf_t ;
200+ #endif
201+
173202/* Configuration for the wrapper around the Linux SPI API (periph_spidev_linux)
174203 *
175204 * Needs to go here, otherwise the SPI_NEEDS_ are defined after inclusion of
0 commit comments