Loading...
Searching...
No Matches
sm_pwm_01c_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "saul_reg.h"
20#include "sm_pwm_01c.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#ifndef SM_PWM_01C_TSP_PIN
31#define SM_PWM_01C_TSP_PIN GPIO_PIN(0, 13)
32#endif
33#ifndef SM_PWM_01C_TLP_PIN
34#define SM_PWM_01C_TLP_PIN GPIO_PIN(0, 28)
35#endif
36#ifndef SM_PWM_01C_SAUL_INFO
37#define SM_PWM_01C_SAUL_INFO { .name = "sm-pwm-01c" }
38#endif
39
40#ifndef SM_PWM_01C_PARAMS_DEFAULT
41#define SM_PWM_01C_PARAMS_DEFAULT { .tsp_pin = SM_PWM_01C_TSP_PIN, \
42 .tlp_pin = SM_PWM_01C_TLP_PIN }
43#endif
45
50{
51#ifdef SM_PWM_01C_PARAMS_BOARD
52 SM_PWM_01C_PARAMS_BOARD,
53#else
54 SM_PWM_01C_PARAMS_DEFAULT
55#endif
56};
57
62{
63 SM_PWM_01C_SAUL_INFO
64};
65
69#define SM_PWM_01C_NUMOF ARRAY_SIZE(sm_pwm_01c_params)
70
71#ifdef __cplusplus
72}
73#endif
74
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:48
Parameters for the SM_PWM_01c sensor.
Definition sm_pwm_01c.h:118