Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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 "mtd.h"
24
#include "
bitarithm.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#define LED0_PIN GPIO_PIN(2, 25)
35
#define LED1_PIN GPIO_PIN(2, 26)
36
37
#define LED0_MASK (BIT25)
38
#define LED1_MASK (BIT26)
39
40
#define LED0_OFF (FIO3SET = LED0_MASK)
41
#define LED0_ON (FIO3CLR = LED0_MASK)
42
#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
43
44
#define LED1_OFF (FIO3SET = LED1_MASK)
45
#define LED1_ON (FIO3CLR = LED1_MASK)
46
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
47
53
#ifdef MODULE_MTD_MCI
54
extern
mtd_dev_t
*
mtd0
;
55
#define MTD_0 mtd0
56
#endif
57
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#endif
/* BOARD_H */
64
mtd_dev_t
MTD device descriptor.
Definition:
mtd.h:58
mtd0
mtd_dev_t * mtd0
mtd flash emulation device
bitarithm.h
Helper functions for bit arithmetic.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17