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
9#pragma once
10
20
21#include "board.h"
22#include "saul_reg.h"
23#include "sm_pwm_01c.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef SM_PWM_01C_TSP_PIN
34#define SM_PWM_01C_TSP_PIN GPIO_PIN(0, 13)
35#endif
36#ifndef SM_PWM_01C_TLP_PIN
37#define SM_PWM_01C_TLP_PIN GPIO_PIN(0, 28)
38#endif
39#ifndef SM_PWM_01C_SAUL_INFO
40#define SM_PWM_01C_SAUL_INFO { .name = "sm-pwm-01c" }
41#endif
42
43#ifndef SM_PWM_01C_PARAMS_DEFAULT
44#define SM_PWM_01C_PARAMS_DEFAULT { .tsp_pin = SM_PWM_01C_TSP_PIN, \
45 .tlp_pin = SM_PWM_01C_TLP_PIN }
46#endif
48
53{
54#ifdef SM_PWM_01C_PARAMS_BOARD
55 SM_PWM_01C_PARAMS_BOARD,
56#else
57 SM_PWM_01C_PARAMS_DEFAULT
58#endif
59};
60
65{
66 SM_PWM_01C_SAUL_INFO
67};
68
72#define SM_PWM_01C_NUMOF ARRAY_SIZE(sm_pwm_01c_params)
73
74#ifdef __cplusplus
75}
76#endif
77
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