Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 INRIA
3
* Copyright (C) 2016 Freie Universität Berlin
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser General
6
* Public License v2.1. See the file LICENSE in the top level directory for more
7
* details.
8
*/
9
22
#ifndef BOARD_H
23
#define BOARD_H
24
25
#include "cpu.h"
26
#include "
periph_conf.h
"
27
#include "
periph/gpio.h
"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
37
#define LED0_PIN GPIO_PIN(1, 18)
38
#define LED1_PIN GPIO_PIN(1, 20)
39
#define LED2_PIN GPIO_PIN(1, 21)
40
#define LED3_PIN GPIO_PIN(1, 23)
41
42
#define LED0_ON gpio_clear(LED0_PIN)
43
#define LED0_OFF gpio_set(LED0_PIN)
44
#define LED0_TOGGLE gpio_toggle(LED0_PIN)
45
#define LED1_ON gpio_clear(LED1_PIN)
46
#define LED1_OFF gpio_set(LED1_PIN)
47
#define LED1_TOGGLE gpio_toggle(LED1_PIN)
48
#define LED2_ON gpio_clear(LED2_PIN)
49
#define LED2_OFF gpio_set(LED2_PIN)
50
#define LED2_TOGGLE gpio_toggle(LED2_PIN)
51
#define LED3_ON gpio_clear(LED3_PIN)
52
#define LED3_OFF gpio_set(LED3_PIN)
53
#define LED3_TOGGLE gpio_toggle(LED3_PIN)
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
/* BOARD_H */
periph_conf.h
Native CPU peripheral configuration.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Nov 23 2024 19:57:22 by
1.9.8