dcf77_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 HAW Hamburg
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 DCF77_PARAMS_H
20 #define DCF77_PARAMS_H
21 
22 #include "board.h"
23 #include "dcf77.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #ifndef DCF77_PARAM_PIN
34 #define DCF77_PARAM_PIN (GPIO_PIN(1, 22))
35 #endif
36 #ifndef DCF77_PARAM_PULL
37 #define DCF77_PARAM_PULL (GPIO_IN)
38 #endif
39 #ifndef DCF77_PARAMS
40 #define DCF77_PARAMS { .pin = DCF77_PARAM_PIN, \
41  .in_mode = DCF77_PARAM_PULL }
42 #endif
43 
48 static const dcf77_params_t dcf77_params[] =
49 {
50  DCF77_PARAMS
51 };
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* DCF77_PARAMS_H */
58 
dcf77_params
static const dcf77_params_t dcf77_params[]
Configure DCF77 devices.
Definition: dcf77_params.h:48
dcf77_params_t
Configuration parameters for DCF77 devices.
Definition: dcf77.h:61
dcf77.h
Interface definition for the dcf77 sensor driver.