Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014 INRIA
3 * Copyright (C) 2014 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
21#ifndef BOARD_H
22#define BOARD_H
23
24#include "cpu.h"
25#include "periph_conf.h"
26#include "periph/gpio.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#define LED0_PIN GPIO_PIN(1, 18)
37#define LED1_PIN GPIO_PIN(1, 20)
38#define LED2_PIN GPIO_PIN(1, 21)
39#define LED3_PIN GPIO_PIN(1, 23)
40
41#define LED0_ON gpio_set(LED0_PIN)
42#define LED0_OFF gpio_clear(LED0_PIN)
43#define LED0_TOGGLE gpio_toggle(LED0_PIN)
44#define LED1_ON gpio_set(LED1_PIN)
45#define LED1_OFF gpio_clear(LED1_PIN)
46#define LED1_TOGGLE gpio_toggle(LED1_PIN)
47#define LED2_ON gpio_set(LED2_PIN)
48#define LED2_OFF gpio_clear(LED2_PIN)
49#define LED2_TOGGLE gpio_toggle(LED2_PIN)
50#define LED3_ON gpio_set(LED3_PIN)
51#define LED3_OFF gpio_clear(LED3_PIN)
52#define LED3_TOGGLE gpio_toggle(LED3_PIN)
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* BOARD_H */
Native CPU peripheral configuration.
Low-level GPIO peripheral driver interface definitions.