board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 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 ATA8520E_PARAM_SPI SPI_DEV(1)
34 #define ATA8520E_PARAM_CS_PIN GPIO_PIN(PA, 14)
35 #define ATA8520E_PARAM_INT_PIN GPIO_PIN(PB, 9)
36 #define ATA8520E_PARAM_POWER_PIN GPIO_PIN(PA, 28)
37 #define ATA8520E_PARAM_RESET_PIN GPIO_PIN(PA, 27)
44 #define LED0_PIN GPIO_PIN(PA, 20)
45 
46 #define LED_PORT PORT->Group[PA]
47 #define LED0_MASK (1 << 20)
48 
49 #define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
50 #define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
51 #define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
52 
53 #define LED0_NAME "LED(Green)"
56 #ifdef __cplusplus
57 }
58 #endif
59 
Compatibility wrapper for arduino_iomap.h.
Low-level GPIO peripheral driver interface definitions.