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
25 extern "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 
42 #ifndef DOSE_PARAMS
43 #define DOSE_PARAMS { .uart = DOSE_PARAM_UART, \
44  .baudrate = DOSE_PARAM_BAUDRATE, \
45  .sense_pin = DOSE_PARAM_SENSE_PIN }
46 #endif
47 
52 static const dose_params_t dose_params[] =
53 {
54  DOSE_PARAMS
55 };
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* DOSE_PARAMS_H */
62 
dose_params
static const dose_params_t dose_params[]
DOSE configuration.
Definition: dose_params.h:52
dose_params_t
Struct containing the required configuration.
Definition: dose.h:168