File tree Expand file tree Collapse file tree 3 files changed +107
-0
lines changed Expand file tree Collapse file tree 3 files changed +107
-0
lines changed Original file line number Diff line number Diff line change 3131extern "C" {
3232#endif
3333
34+ /**
35+ * @brief winc1500 configuration
36+ */
37+ #define WINC1500_PARAMS_BOARD {.spi = SPI_DEV(1), \
38+ .cs_pin = GPIO_PIN(PA, 14), \
39+ .int_pin = GPIO_PIN(PB, 9), \
40+ .reset_pin = GPIO_PIN(PA, 27), /* Internally pulled-down */ \
41+ .en_pin = GPIO_PIN(PA, 28), /* Internally pulled-down */ \
42+ .wake_pin = GPIO_PIN(PB, 8), \
43+ .spi_clk = WINC1500_SPI_CLOCK}
44+
3445/**
3546 * @brief The on-board LED is connected to pin 6 on this board
3647 */
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) 2017 Bumsik Kim <k.bumsik@gmail.com>
3+ *
4+ * This file is subject to the terms and conditions of the GNU Lesser General
5+ * Public License v2.1. See the file LICENSE in the top level directory for more
6+ * details.
7+ */
8+
9+ /**
10+ * @ingroup boards_samd21-xpro
11+ * @{
12+ *
13+ * @file
14+ * @brief WINC1500 Xplained Pro configuration for SAMD21-XPRO board
15+ * @author Bumsik Kim <k.bumsik@gmail.com>
16+ */
17+
18+ #ifndef WINC1500_PARAMS_H
19+ #define WINC1500_PARAMS_H
20+
21+ #include "winc1500.h"
22+
23+ #ifdef __cplusplus
24+ extern "C" {
25+ #endif
26+
27+ /**
28+ * @brief Board specific WINC1500 configuration
29+ */
30+ static const winc1500_params_t winc1500_params [] =
31+ {
32+ {
33+ .spi = SPI_DEV (0 ),
34+ .cs_pin = GPIO_PIN (PA , 5 ),
35+ .int_pin = GPIO_PIN (PB , 4 ),
36+ .reset_pin = GPIO_PIN (PB , 6 ),
37+ .en_pin = GPIO_PIN (PB , 5 ),
38+ .wake_pin = GPIO_PIN (PB , 7 ),
39+ .spi_clk = SPI_CLK_10MHZ
40+ }
41+ };
42+
43+ #ifdef __cplusplus
44+ }
45+ #endif
46+
47+ #endif /* WINC1500_PARAMS_H */
48+ /** @} */
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) 2017 Bumsik Kim <k.bumsik@gmail.com>
3+ *
4+ * This file is subject to the terms and conditions of the GNU Lesser General
5+ * Public License v2.1. See the file LICENSE in the top level directory for more
6+ * details.
7+ */
8+
9+ /**
10+ * @ingroup boards_samr21-xpro
11+ * @{
12+ *
13+ * @file
14+ * @brief WINC1500 Xplained Pro configuration for SAMR21-XPRO board
15+ * @author Bumsik Kim <k.bumsik@gmail.com>
16+ */
17+
18+ #ifndef WINC1500_PARAMS_H
19+ #define WINC1500_PARAMS_H
20+
21+ #include "winc1500.h"
22+
23+ #ifdef __cplusplus
24+ extern "C" {
25+ #endif
26+
27+ /**
28+ * @brief Board specific WINC1500 configuration
29+ */
30+ static const winc1500_params_t winc1500_params [] =
31+ {
32+ {
33+ .spi = SPI_DEV (1 ),
34+ .cs_pin = GPIO_PIN (PB , 3 ),
35+ .int_pin = GPIO_PIN (PA , 22 ),
36+ .reset_pin = GPIO_PIN (PA , 13 ),
37+ .en_pin = GPIO_PIN (PA , 23 ),
38+ .wake_pin = GPIO_PIN (PA , 28 ),
39+ .spi_clk = SPI_CLK_10MHZ
40+ }
41+ };
42+
43+ #ifdef __cplusplus
44+ }
45+ #endif
46+
47+ #endif /* WINC1500_PARAMS_H */
48+ /** @} */
You can’t perform that action at this time.
0 commit comments