Loading...
Searching...
No Matches
ds3234_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 SKF AB
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 DS3234_PARAMS_H
20#define DS3234_PARAMS_H
21
22#include "board.h"
23#include "ds3234.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef DS3234_PARAM_SPI
34#define DS3234_PARAM_SPI (SPI_DEV(0))
35#endif
36#ifndef DS3234_PARAM_CS
37#define DS3234_PARAM_CS (GPIO_PIN(0, 0))
38#endif
39#ifndef DS3234_PARAM_CLK
40#define DS3234_PARAM_CLK (SPI_CLK_1MHZ)
41#endif
42#ifndef DS3234_PARAMS
43#define DS3234_PARAMS \
44 { \
45 .spi = DS3234_PARAM_SPI, \
46 .cs = DS3234_PARAM_CS, \
47 .clk = DS3234_PARAM_CLK, \
48 }
49#endif
56{
57 DS3234_PARAMS
58};
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* DS3234_PARAMS_H */
DS3234 device driver.
static const ds3234_params_t ds3234_params[]
Configure DS3234 devices.
Parameters for the DS3234 device driver.
Definition ds3234.h:37