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
10#pragma once
11
22
23#include "cpu.h"
24#include "periph_conf.h"
25#include "periph/gpio.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#define LED0_PIN GPIO_PIN(1, 18)
36#define LED1_PIN GPIO_PIN(1, 20)
37#define LED2_PIN GPIO_PIN(1, 21)
38#define LED3_PIN GPIO_PIN(1, 23)
39
40#define LED0_ON gpio_set(LED0_PIN)
41#define LED0_OFF gpio_clear(LED0_PIN)
42#define LED0_TOGGLE gpio_toggle(LED0_PIN)
43#define LED1_ON gpio_set(LED1_PIN)
44#define LED1_OFF gpio_clear(LED1_PIN)
45#define LED1_TOGGLE gpio_toggle(LED1_PIN)
46#define LED2_ON gpio_set(LED2_PIN)
47#define LED2_OFF gpio_clear(LED2_PIN)
48#define LED2_TOGGLE gpio_toggle(LED2_PIN)
49#define LED3_ON gpio_set(LED3_PIN)
50#define LED3_OFF gpio_clear(LED3_PIN)
51#define LED3_TOGGLE gpio_toggle(LED3_PIN)
53
54#ifdef __cplusplus
55}
56#endif
57
Peripheral MCU configuration for the mbed LPC1768 board.
Low-level GPIO peripheral driver interface definitions.