Loading...
Searching...
No Matches
ds1307_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 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 DS1307_PARAMS_H
19#define DS1307_PARAMS_H
20
21#include "board.h"
22#include "ds1307.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef DS1307_PARAM_I2C
33#define DS1307_PARAM_I2C (I2C_DEV(0))
34#endif
35
36#ifndef DS1307_PARAMS
37#define DS1307_PARAMS { .i2c = DS1307_PARAM_I2C }
38#endif
45{
46 DS1307_PARAMS
47};
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* DS1307_PARAMS_H */
DS1307 definitions.
static const ds1307_params_t ds1307_params[]
DS1307 configuration.
Set of configuration parameters for DS1307 devices.
Definition ds1307.h:69