board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016-2017 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include "cpu.h"
20 #include "periph_conf.h"
21 #include "board_common.h"
22 #include "arduino_pinmap.h"
23 #include "periph/gpio.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #define LED0_PIN GPIO_PIN(PA, 20)
34 
35 #define LED_PORT PORT->Group[PA]
36 #define LED0_MASK (1 << 20)
37 
38 #define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
39 #define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
40 #define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
41 
42 #define LED0_NAME "LED(Green)"
49 #define ATWINC15X0_PARAM_SPI SPI_DEV(1)
50 #define ATWINC15X0_PARAM_SSN_PIN GPIO_PIN(0, 14)
51 #define ATWINC15X0_PARAM_RESET_PIN GPIO_PIN(0, 27)
52 #define ATWINC15X0_PARAM_CHIP_EN_PIN GPIO_PIN(0, 28)
53 #define ATWINC15X0_PARAM_WAKE_PIN GPIO_PIN(1, 8)
54 #define ATWINC15X0_PARAM_IRQ_PIN GPIO_PIN(1, 9)
57 #ifdef __cplusplus
58 }
59 #endif
60 
Compatibility wrapper for arduino_iomap.h.
Low-level GPIO peripheral driver interface definitions.