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 
9 #pragma once
10 
21 #include "board.h"
22 #include "dcf77.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #ifndef DCF77_PARAM_PIN
33 #define DCF77_PARAM_PIN (GPIO_PIN(1, 22))
34 #endif
35 #ifndef DCF77_PARAM_PULL
36 #define DCF77_PARAM_PULL (GPIO_IN)
37 #endif
38 #ifndef DCF77_PARAMS
39 #define DCF77_PARAMS { .pin = DCF77_PARAM_PIN, \
40  .in_mode = DCF77_PARAM_PULL }
41 #endif
47 static const dcf77_params_t dcf77_params[] =
48 {
49  DCF77_PARAMS
50 };
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
Interface definition for the dcf77 sensor driver.
static const dcf77_params_t dcf77_params[]
Configure DCF77 devices.
Definition: dcf77_params.h:47
Configuration parameters for DCF77 devices.
Definition: dcf77.h:60