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
9#pragma once
10
20
21#include "board.h"
22#include "ata8520e.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef ATA8520E_PARAM_SPI
33#define ATA8520E_PARAM_SPI SPI_DEV(0)
34#endif
35#ifndef ATA8520E_PARAM_SPI_CLK
36#define ATA8520E_PARAM_SPI_CLK (SPI_CLK_100KHZ)
37#endif
38#ifndef ATA8520E_PARAM_CS_PIN
39#define ATA8520E_PARAM_CS_PIN GPIO_PIN(0, 0)
40#endif
41#ifndef ATA8520E_PARAM_INT_PIN
42#define ATA8520E_PARAM_INT_PIN GPIO_PIN(0, 1)
43#endif
44#ifndef ATA8520E_PARAM_POWER_PIN
45#define ATA8520E_PARAM_POWER_PIN GPIO_PIN(0, 2)
46#endif
47#ifndef ATA8520E_PARAM_RESET_PIN
48#define ATA8520E_PARAM_RESET_PIN GPIO_PIN(0, 3)
49#endif
50
51#ifndef ATA8520E_PARAMS
52#define ATA8520E_PARAMS { .spi = ATA8520E_PARAM_SPI, \
53 .spi_clk = ATA8520E_PARAM_SPI_CLK, \
54 .cs_pin = ATA8520E_PARAM_CS_PIN, \
55 .int_pin = ATA8520E_PARAM_INT_PIN, \
56 .power_pin = ATA8520E_PARAM_POWER_PIN, \
57 .reset_pin = ATA8520E_PARAM_RESET_PIN }
58#endif
60
65{
66 ATA8520E_PARAMS
67};
68
69#ifdef __cplusplus
70}
71#endif
72
Device driver for Microchip ATA8520E transceiver (Sigfox)
static const ata8520e_params_t ata8520e_params[]
ATA8520E configuration.
Initialization parameters.
Definition ata8520e.h:121