ds3231_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Freie Universität Berlin
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 
18 #ifndef DS3231_PARAMS_H
19 #define DS3231_PARAMS_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 #ifndef DS3231_PARAM_I2C
30 #define DS3231_PARAM_I2C I2C_DEV(0)
31 #endif
32 #ifndef DS3231_PARAM_OPT
33 #define DS3231_PARAM_OPT (DS3231_OPT_BAT_ENABLE)
34 #endif
35 
36 #ifndef DS3231_PARAMS
37 #define DS3231_PARAMS { .bus = DS3231_PARAM_I2C, \
38  .opt = DS3231_PARAM_OPT, }
39 #endif
40 
46 {
47  DS3231_PARAMS
48 };
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* DS3231_PARAMS_H */
55 
ds3231_params
static const ds3231_params_t ds3231_params[]
DS3231 configuration.
Definition: ds3231_params.h:45
ds3231_params_t
Set of configuration parameters for DS3231 devices.
Definition: ds3231.h:66