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 
10 #pragma once
11 
21 #include "board.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #ifndef DOSE_PARAM_UART
32 #define DOSE_PARAM_UART (UART_DEV(1))
33 #endif
34 #ifndef DOSE_PARAM_BAUDRATE
35 #define DOSE_PARAM_BAUDRATE (115200)
36 #endif
37 #ifndef DOSE_PARAM_SENSE_PIN
38 #define DOSE_PARAM_SENSE_PIN (GPIO_UNDEF)
39 #endif
40 #ifndef DOSE_PARAM_STANDBY_PIN
41 #define DOSE_PARAM_STANDBY_PIN (GPIO_UNDEF)
42 #endif
43 
44 #ifndef DOSE_PARAMS
45 #ifdef MODULE_PERIPH_UART_RXSTART_IRQ
46 #define DOSE_PARAMS { \
47  .uart = DOSE_PARAM_UART, \
48  .baudrate = DOSE_PARAM_BAUDRATE, \
49  .standby_pin = DOSE_PARAM_STANDBY_PIN, \
50  }
51 #else /* MODULE_PERIPH_UART_RXSTART_IRQ */
52 #define DOSE_PARAMS { \
53  .uart = DOSE_PARAM_UART, \
54  .baudrate = DOSE_PARAM_BAUDRATE, \
55  .standby_pin = DOSE_PARAM_STANDBY_PIN, \
56  .sense_pin = DOSE_PARAM_SENSE_PIN, \
57  }
58 #endif /* !MODULE_PERIPH_UART_RXSTART_IRQ */
59 #endif
65 static const dose_params_t dose_params[] =
66 {
67  DOSE_PARAMS
68 };
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
static const dose_params_t dose_params[]
DOSE configuration.
Definition: dose_params.h:65
Struct containing the required configuration.
Definition: dose.h:214