Skip to content

Commit adcf0d2

Browse files
committed
driver/winc1500: Added parameters for Arduino MKR1000, SAMD/R21-XPRO
1 parent bacff15 commit adcf0d2

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

boards/arduino-mkr1000/include/board.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@
3131
extern "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
*/
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
/** @} */
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
/** @} */

0 commit comments

Comments
 (0)