Loading...
Searching...
No Matches
ata8520e_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Inria
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 ATA8520E_PARAMS_H
20#define ATA8520E_PARAMS_H
21
22#include "board.h"
23#include "ata8520e.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef ATA8520E_PARAM_SPI
34#define ATA8520E_PARAM_SPI SPI_DEV(0)
35#endif
36#ifndef ATA8520E_PARAM_SPI_CLK
37#define ATA8520E_PARAM_SPI_CLK (SPI_CLK_100KHZ)
38#endif
39#ifndef ATA8520E_PARAM_CS_PIN
40#define ATA8520E_PARAM_CS_PIN GPIO_PIN(0, 0)
41#endif
42#ifndef ATA8520E_PARAM_INT_PIN
43#define ATA8520E_PARAM_INT_PIN GPIO_PIN(0, 1)
44#endif
45#ifndef ATA8520E_PARAM_POWER_PIN
46#define ATA8520E_PARAM_POWER_PIN GPIO_PIN(0, 2)
47#endif
48#ifndef ATA8520E_PARAM_RESET_PIN
49#define ATA8520E_PARAM_RESET_PIN GPIO_PIN(0, 3)
50#endif
51
52#ifndef ATA8520E_PARAMS
53#define ATA8520E_PARAMS { .spi = ATA8520E_PARAM_SPI, \
54 .spi_clk = ATA8520E_PARAM_SPI_CLK, \
55 .cs_pin = ATA8520E_PARAM_CS_PIN, \
56 .int_pin = ATA8520E_PARAM_INT_PIN, \
57 .power_pin = ATA8520E_PARAM_POWER_PIN, \
58 .reset_pin = ATA8520E_PARAM_RESET_PIN }
59#endif
66{
67 ATA8520E_PARAMS
68};
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* ATA8520E_PARAMS_H */
Device driver for Microchip ATA8520E transceiver (Sigfox)
static const ata8520e_params_t ata8520e_params[]
ATA8520E configuration.
Initialization parameters.
Definition ata8520e.h:122