Loading...
Searching...
No Matches
dose_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Juergen Fitschen <me@jue.yt>
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
19#ifndef DOSE_PARAMS_H
20#define DOSE_PARAMS_H
21
22#include "board.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef DOSE_PARAM_UART
33#define DOSE_PARAM_UART (UART_DEV(1))
34#endif
35#ifndef DOSE_PARAM_BAUDRATE
36#define DOSE_PARAM_BAUDRATE (115200)
37#endif
38#ifndef DOSE_PARAM_SENSE_PIN
39#define DOSE_PARAM_SENSE_PIN (GPIO_UNDEF)
40#endif
41#ifndef DOSE_PARAM_STANDBY_PIN
42#define DOSE_PARAM_STANDBY_PIN (GPIO_UNDEF)
43#endif
44
45#ifndef DOSE_PARAMS
46#ifdef MODULE_PERIPH_UART_RXSTART_IRQ
47#define DOSE_PARAMS { \
48 .uart = DOSE_PARAM_UART, \
49 .baudrate = DOSE_PARAM_BAUDRATE, \
50 .standby_pin = DOSE_PARAM_STANDBY_PIN, \
51 }
52#else /* MODULE_PERIPH_UART_RXSTART_IRQ */
53#define DOSE_PARAMS { \
54 .uart = DOSE_PARAM_UART, \
55 .baudrate = DOSE_PARAM_BAUDRATE, \
56 .standby_pin = DOSE_PARAM_STANDBY_PIN, \
57 .sense_pin = DOSE_PARAM_SENSE_PIN, \
58 }
59#endif /* !MODULE_PERIPH_UART_RXSTART_IRQ */
60#endif
66static const dose_params_t dose_params[] =
67{
68 DOSE_PARAMS
69};
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* DOSE_PARAMS_H */
static const dose_params_t dose_params[]
DOSE configuration.
Definition dose_params.h:66
Struct containing the required configuration.
Definition dose.h:215