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 
9 #pragma once
10 
21 #include "board.h"
22 #include "ds3234.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #ifndef DS3234_PARAM_SPI
33 #define DS3234_PARAM_SPI (SPI_DEV(0))
34 #endif
35 #ifndef DS3234_PARAM_CS
36 #define DS3234_PARAM_CS (GPIO_PIN(0, 0))
37 #endif
38 #ifndef DS3234_PARAM_CLK
39 #define DS3234_PARAM_CLK (SPI_CLK_1MHZ)
40 #endif
41 #ifndef DS3234_PARAMS
42 #define DS3234_PARAMS \
43  { \
44  .spi = DS3234_PARAM_SPI, \
45  .cs = DS3234_PARAM_CS, \
46  .clk = DS3234_PARAM_CLK, \
47  }
48 #endif
55 {
56  DS3234_PARAMS
57 };
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
DS3234 device driver.
static const ds3234_params_t ds3234_params[]
Configure DS3234 devices.
Definition: ds3234_params.h:54
Parameters for the DS3234 device driver.
Definition: ds3234.h:36