board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
20 #include "cpu.h"
21 #include "periph_conf.h"
22 #include "board_common.h"
23 #include "arduino_pinmap.h"
24 #include "periph/gpio.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #define LED0_PIN GPIO_PIN(PA, 20)
35 
36 #define LED_PORT PORT->Group[PA]
37 #define LED0_MASK (1 << 20)
38 
39 #define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
40 #define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
41 #define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
42 
43 #define LED0_NAME "LED(Amber)"
46 #ifdef __cplusplus
47 }
48 #endif
49 
Compatibility wrapper for arduino_iomap.h.
Peripheral MCU configuration for the Zigduino board.
Low-level GPIO peripheral driver interface definitions.