Go to the documentation of this file.
19 #ifndef LIS3DH_PARAMS_H
20 #define LIS3DH_PARAMS_H
34 #ifndef LIS3DH_PARAM_SPI
35 #define LIS3DH_PARAM_SPI (SPI_DEV(0))
37 #ifndef LIS3DH_PARAM_CS
38 #define LIS3DH_PARAM_CS (GPIO_PIN(0, 0))
40 #ifndef LIS3DH_PARAM_CLK
41 #define LIS3DH_PARAM_CLK (SPI_CLK_5MHZ)
43 #ifndef LIS3DH_PARAM_INT1
44 #define LIS3DH_PARAM_INT1 (GPIO_PIN(0, 1))
46 #ifndef LIS3DH_PARAM_INT2
47 #define LIS3DH_PARAM_INT2 (GPIO_PIN(0, 2))
49 #ifndef LIS3DH_PARAM_SCALE
50 #define LIS3DH_PARAM_SCALE (4)
52 #ifndef LIS3DH_PARAM_ODR
53 #define LIS3DH_PARAM_ODR (LIS3DH_ODR_100Hz)
57 #define LIS3DH_PARAMS { .spi = LIS3DH_PARAM_SPI, \
58 .cs = LIS3DH_PARAM_CS, \
59 .clk = LIS3DH_PARAM_CLK, \
60 .int1 = LIS3DH_PARAM_INT1, \
61 .int2 = LIS3DH_PARAM_INT2, \
62 .scale = LIS3DH_PARAM_SCALE, \
63 .odr = LIS3DH_PARAM_ODR }
65 #ifndef LIS3DH_SAUL_INFO
66 #define LIS3DH_SAUL_INFO { .name = "lis3dh" }
static const saul_reg_info_t lis3dh_saul_info[]
Additional meta information to keep in the SAUL registry.
Device driver interface for the LIS3DH accelerometer.
Additional data to collect for each entry.
static const lis3dh_params_t lis3dh_params[]
Allocate some memory to store the actual configuration.
SAUL registry interface definition.
Configuration parameters for LIS3DH devices.