Loading...
Searching...
No Matches
sm_pwm_01c_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Inria
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef SM_PWM_01C_PARAMS_H
20#define SM_PWM_01C_PARAMS_H
21
22#include "board.h"
23#include "saul_reg.h"
24#include "sm_pwm_01c.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef SM_PWM_01C_TSP_PIN
35#define SM_PWM_01C_TSP_PIN GPIO_PIN(0, 13)
36#endif
37#ifndef SM_PWM_01C_TLP_PIN
38#define SM_PWM_01C_TLP_PIN GPIO_PIN(0, 28)
39#endif
40#ifndef SM_PWM_01C_SAUL_INFO
41#define SM_PWM_01C_SAUL_INFO { .name = "sm-pwm-01c" }
42#endif
43
44#ifndef SM_PWM_01C_PARAMS_DEFAULT
45#define SM_PWM_01C_PARAMS_DEFAULT { .tsp_pin = SM_PWM_01C_TSP_PIN, \
46 .tlp_pin = SM_PWM_01C_TLP_PIN }
47#endif
54{
55#ifdef SM_PWM_01C_PARAMS_BOARD
56 SM_PWM_01C_PARAMS_BOARD,
57#else
58 SM_PWM_01C_PARAMS_DEFAULT
59#endif
60};
61
66{
67 SM_PWM_01C_SAUL_INFO
68};
69
73#define SM_PWM_01C_NUMOF ARRAY_SIZE(sm_pwm_01c_params)
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* SM_PWM_01C_PARAMS_H */
SAUL registry interface definition.
SM_PWM_01C Device Driver.
static const saul_reg_info_t sm_pwm_01c_saul_info[]
Additional meta information to keep in the SAUL registry.
static const sm_pwm_01c_params_t sm_pwm_01c_params[]
Configure SM_PWM_01C.
Additional data to collect for each entry.
Definition saul_reg.h:49
Parameters for the SM_PWM_01c sensor.
Definition sm_pwm_01c.h:119