Loading...
Searching...
No Matches
ds18_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Frits Kuipers
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 DS18_PARAMS_H
20#define DS18_PARAMS_H
21
22#include "board.h"
23#include "ds18.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef DS18_PARAM_PIN
35#define DS18_PARAM_PIN (GPIO_PIN(0, 0))
36#endif
37#ifndef DS18_PARAM_PULL
38#define DS18_PARAM_PULL (GPIO_OD_PU)
39#endif
40
41#define DS18_PARAMS_DEFAULT { .pin = DS18_PARAM_PIN, \
42 .out_mode = DS18_PARAM_PULL }
48static const ds18_params_t ds18_params[] =
49{
50#ifdef DS18_PARAMS_BOARD
51 DS18_PARAMS_BOARD,
52#else
53 DS18_PARAMS_DEFAULT,
54#endif
55};
56
61{
62 { .name = "ds18" }
63};
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* DS18_PARAMS_H */
Driver for Maxim Integrated DS1822 and DS18B20 temperature sensors.
static const saul_reg_info_t ds18_saul_reg_info[]
Configure SAUL registry entries.
Definition ds18_params.h:60
static const ds18_params_t ds18_params[]
Configure ds18.
Definition ds18_params.h:48
SAUL registry interface definition.
Device initialization parameters.
Definition ds18.h:60
Additional data to collect for each entry.
Definition saul_reg.h:49
const char * name
string identifier for a device
Definition saul_reg.h:50