Loading...
Searching...
No Matches
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
9#pragma once
10
20
21#include "board.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
30#ifndef WIFI_SSID
31#define WIFI_SSID "RIOT_AP"
32#endif
33
37#ifdef DOXYGEN
38#define WIFI_PASS "ThisistheRIOTporttoESP"
39#endif
40
46#ifndef ATWINC15X0_PARAM_SPI
47#define ATWINC15X0_PARAM_SPI SPI_DEV(0)
48#endif
49
50#ifndef ATWINC15X0_PARAM_SPI_CLK
51#define ATWINC15X0_PARAM_SPI_CLK SPI_CLK_10MHZ
52#endif
53
54#ifndef ATWINC15X0_PARAM_SSN_PIN
55#define ATWINC15X0_PARAM_SSN_PIN GPIO_PIN(1, 4) /* D10 (PB4) */
56#endif
57
58#ifndef ATWINC15X0_PARAM_RESET_PIN
59#define ATWINC15X0_PARAM_RESET_PIN GPIO_PIN(4, 3) /* D5 (PE3) */
60#endif
61
62#ifndef ATWINC15X0_PARAM_IRQ_PIN
63#define ATWINC15X0_PARAM_IRQ_PIN GPIO_PIN(7, 4) /* D7 (PH4) */
64#endif
65
66#ifndef ATWINC15X0_PARAM_CHIP_EN_PIN
67#define ATWINC15X0_PARAM_CHIP_EN_PIN GPIO_UNDEF
68#endif
69
70#ifndef ATWINC15X0_PARAM_WAKE_PIN
71#define ATWINC15X0_PARAM_WAKE_PIN GPIO_UNDEF
72#endif
73
74#ifndef ATWINC15X0_PARAMS
75#define ATWINC15X0_PARAMS { \
76 .spi = ATWINC15X0_PARAM_SPI, \
77 .spi_clk = ATWINC15X0_PARAM_SPI_CLK, \
78 .ssn_pin = ATWINC15X0_PARAM_SSN_PIN, \
79 .reset_pin = ATWINC15X0_PARAM_RESET_PIN, \
80 .irq_pin = ATWINC15X0_PARAM_IRQ_PIN, \
81 .chip_en_pin = ATWINC15X0_PARAM_CHIP_EN_PIN, \
82 .wake_pin = ATWINC15X0_PARAM_WAKE_PIN, \
83 }
84#endif
86
91{
92 ATWINC15X0_PARAMS
93};
94
95#ifdef __cplusplus
96}
97#endif
98
static const atwinc15x0_params_t atwinc15x0_params[]
Allocate some memory to store the actual configuration.
ATWINC15x0 hardware and global parameters.
Definition atwinc15x0.h:55