Loading...
Searching...
No Matches
encx24j600_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 HAW Hamburg
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 ENCX24J600_PARAMS_H
20#define ENCX24J600_PARAMS_H
21
22#include "encx24j600.h"
23#include "board.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef ENCX24J600_PARAM_SPI
34#define ENCX24J600_PARAM_SPI (SPI_DEV(0))
35#endif
36#ifndef ENCX24J600_PARAM_CS
37#define ENCX24J600_PARAM_CS (GPIO_PIN(0, 0))
38#endif
39#ifndef ENCX24J600_PARAM_INT
40#define ENCX24J600_PARAM_INT (GPIO_PIN(0, 1))
41#endif
42
43#ifndef ENCX24J600_PARAMS
44#define ENCX24J600_PARAMS { .spi = ENCX24J600_PARAM_SPI, \
45 .cs_pin = ENCX24J600_PARAM_CS, \
46 .int_pin = ENCX24J600_PARAM_INT }
47#endif
54 ENCX24J600_PARAMS
55};
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* ENCX24J600_PARAMS_H */
Interface definition for the ENCX24J600 driver.
static const encx24j600_params_t encx24j600_params[]
ENCX24J600 configuration.
Struct containing the needed peripheral configuration.
Definition encx24j600.h:48