Loading...
Searching...
No Matches
ds3234_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 SKF AB
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "ds3234.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#ifndef DS3234_PARAM_SPI
30#define DS3234_PARAM_SPI (SPI_DEV(0))
31#endif
32#ifndef DS3234_PARAM_CS
33#define DS3234_PARAM_CS (GPIO_PIN(0, 0))
34#endif
35#ifndef DS3234_PARAM_CLK
36#define DS3234_PARAM_CLK (SPI_CLK_1MHZ)
37#endif
38#ifndef DS3234_PARAMS
39#define DS3234_PARAMS \
40 { \
41 .spi = DS3234_PARAM_SPI, \
42 .cs = DS3234_PARAM_CS, \
43 .clk = DS3234_PARAM_CLK, \
44 }
45#endif
47
52{
53 DS3234_PARAMS
54};
55
56#ifdef __cplusplus
57}
58#endif
59
DS3234 device driver.
static const ds3234_params_t ds3234_params[]
Configure DS3234 devices.
Parameters for the DS3234 device driver.
Definition ds3234.h:36