Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2013 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef BOARD_H
20#define BOARD_H
21
22#include "lpc23xx.h"
23#include "bitarithm.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#define LED0_PIN GPIO_PIN(2, 25)
34#define LED1_PIN GPIO_PIN(2, 26)
35
36#define LED0_MASK (BIT25)
37#define LED1_MASK (BIT26)
38
39#define LED0_OFF (FIO3SET = LED0_MASK)
40#define LED0_ON (FIO3CLR = LED0_MASK)
41#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
42
43#define LED1_OFF (FIO3SET = LED1_MASK)
44#define LED1_ON (FIO3CLR = LED1_MASK)
45#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
52#ifdef MODULE_MTD_MCI
53#define MTD_0 mtd_dev_get(0)
54#endif
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* BOARD_H */
Helper functions for bit arithmetic.