Loading...
Searching...
No Matches
ds1307_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "ds1307.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#ifndef DS1307_PARAM_I2C
30#define DS1307_PARAM_I2C (I2C_DEV(0))
31#endif
32
33#ifndef DS1307_PARAMS
34#define DS1307_PARAMS { .i2c = DS1307_PARAM_I2C }
35#endif
37
42{
43 DS1307_PARAMS
44};
45
46#ifdef __cplusplus
47}
48#endif
49
DS1307 definitions.
static const ds1307_params_t ds1307_params[]
DS1307 configuration.
Set of configuration parameters for DS1307 devices.
Definition ds1307.h:69