Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
dose_params.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Juergen Fitschen <me@jue.yt>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
16
17
#include "board.h"
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
27
#ifndef DOSE_PARAM_UART
28
#define DOSE_PARAM_UART (UART_DEV(1))
29
#endif
30
#ifndef DOSE_PARAM_BAUDRATE
31
#define DOSE_PARAM_BAUDRATE (115200)
32
#endif
33
#ifndef DOSE_PARAM_SENSE_PIN
34
#define DOSE_PARAM_SENSE_PIN (GPIO_UNDEF)
35
#endif
36
#ifndef DOSE_PARAM_STANDBY_PIN
37
#define DOSE_PARAM_STANDBY_PIN (GPIO_UNDEF)
38
#endif
39
40
#ifndef DOSE_PARAMS
41
#ifdef MODULE_PERIPH_UART_RXSTART_IRQ
42
#define DOSE_PARAMS { \
43
.uart = DOSE_PARAM_UART, \
44
.baudrate = DOSE_PARAM_BAUDRATE, \
45
.standby_pin = DOSE_PARAM_STANDBY_PIN, \
46
}
47
#else
/* MODULE_PERIPH_UART_RXSTART_IRQ */
48
#define DOSE_PARAMS { \
49
.uart = DOSE_PARAM_UART, \
50
.baudrate = DOSE_PARAM_BAUDRATE, \
51
.standby_pin = DOSE_PARAM_STANDBY_PIN, \
52
.sense_pin = DOSE_PARAM_SENSE_PIN, \
53
}
54
#endif
/* !MODULE_PERIPH_UART_RXSTART_IRQ */
55
#endif
57
61
static
const
dose_params_t
dose_params
[] =
62
{
63
DOSE_PARAMS
64
};
65
66
#ifdef __cplusplus
67
}
68
#endif
69
dose_params
static const dose_params_t dose_params[]
DOSE configuration.
Definition
dose_params.h:61
dose_params_t
Struct containing the required configuration.
Definition
dose.h:214
Generated on Wed Apr 15 2026 11:03:03 by
1.13.2