board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2014 INRIA
3  * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
20 #include "cpu.h"
21 #include "periph_conf.h"
22 #include "periph/gpio.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define LED0_PIN GPIO_PIN(1, 18)
33 #define LED1_PIN GPIO_PIN(1, 20)
34 #define LED2_PIN GPIO_PIN(1, 21)
35 #define LED3_PIN GPIO_PIN(1, 23)
36 
37 #define LED0_ON gpio_set(LED0_PIN)
38 #define LED0_OFF gpio_clear(LED0_PIN)
39 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
40 #define LED1_ON gpio_set(LED1_PIN)
41 #define LED1_OFF gpio_clear(LED1_PIN)
42 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
43 #define LED2_ON gpio_set(LED2_PIN)
44 #define LED2_OFF gpio_clear(LED2_PIN)
45 #define LED2_TOGGLE gpio_toggle(LED2_PIN)
46 #define LED3_ON gpio_set(LED3_PIN)
47 #define LED3_OFF gpio_clear(LED3_PIN)
48 #define LED3_TOGGLE gpio_toggle(LED3_PIN)
51 #ifdef __cplusplus
52 }
53 #endif
54 
Peripheral MCU configuration for the Zigduino board.
Low-level GPIO peripheral driver interface definitions.