Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
atwinc15x0_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Gunar Schorcht
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 ATWINC15X0_PARAMS_H
20
#define ATWINC15X0_PARAMS_H
21
22
#include "board.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
31
#ifndef WIFI_SSID
32
#define WIFI_SSID "RIOT_AP"
33
#endif
34
38
#ifdef DOXYGEN
39
#define WIFI_PASS "ThisistheRIOTporttoESP"
40
#endif
41
47
#ifndef ATWINC15X0_PARAM_SPI
48
#define ATWINC15X0_PARAM_SPI SPI_DEV(0)
49
#endif
50
51
#ifndef ATWINC15X0_PARAM_SPI_CLK
52
#define ATWINC15X0_PARAM_SPI_CLK SPI_CLK_10MHZ
53
#endif
54
55
#ifndef ATWINC15X0_PARAM_SSN_PIN
56
#define ATWINC15X0_PARAM_SSN_PIN GPIO_PIN(1, 4)
/* D10 (PB4) */
57
#endif
58
59
#ifndef ATWINC15X0_PARAM_RESET_PIN
60
#define ATWINC15X0_PARAM_RESET_PIN GPIO_PIN(4, 3)
/* D5 (PE3) */
61
#endif
62
63
#ifndef ATWINC15X0_PARAM_IRQ_PIN
64
#define ATWINC15X0_PARAM_IRQ_PIN GPIO_PIN(7, 4)
/* D7 (PH4) */
65
#endif
66
67
#ifndef ATWINC15X0_PARAM_CHIP_EN_PIN
68
#define ATWINC15X0_PARAM_CHIP_EN_PIN GPIO_UNDEF
69
#endif
70
71
#ifndef ATWINC15X0_PARAM_WAKE_PIN
72
#define ATWINC15X0_PARAM_WAKE_PIN GPIO_UNDEF
73
#endif
74
75
#ifndef ATWINC15X0_PARAMS
76
#define ATWINC15X0_PARAMS { \
77
.spi = ATWINC15X0_PARAM_SPI, \
78
.spi_clk = ATWINC15X0_PARAM_SPI_CLK, \
79
.ssn_pin = ATWINC15X0_PARAM_SSN_PIN, \
80
.reset_pin = ATWINC15X0_PARAM_RESET_PIN, \
81
.irq_pin = ATWINC15X0_PARAM_IRQ_PIN, \
82
.chip_en_pin = ATWINC15X0_PARAM_CHIP_EN_PIN, \
83
.wake_pin = ATWINC15X0_PARAM_WAKE_PIN, \
84
}
85
#endif
86
91
static
const
atwinc15x0_params_t
atwinc15x0_params
[] =
92
{
93
ATWINC15X0_PARAMS
94
};
95
96
#ifdef __cplusplus
97
}
98
#endif
99
100
#endif
/* ATWINC15X0_PARAMS_H */
101
atwinc15x0_params_t
ATWINC15x0 hardware and global parameters.
Definition:
atwinc15x0.h:37
atwinc15x0_params
static const atwinc15x0_params_t atwinc15x0_params[]
Allocate some memory to store the actual configuration.
Definition:
atwinc15x0_params.h:91
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17