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
9
#pragma once
10
21
#include "lpc23xx.h"
22
#include "
bitarithm.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define LED0_PIN GPIO_PIN(2, 25)
33
#define LED1_PIN GPIO_PIN(2, 26)
34
35
#define LED0_MASK (BIT25)
36
#define LED1_MASK (BIT26)
37
38
#define LED0_OFF (FIO3SET = LED0_MASK)
39
#define LED0_ON (FIO3CLR = LED0_MASK)
40
#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
41
42
#define LED1_OFF (FIO3SET = LED1_MASK)
43
#define LED1_ON (FIO3CLR = LED1_MASK)
44
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
51
#ifdef MODULE_MTD_MCI
52
#define MTD_0 mtd_dev_get(0)
53
#endif
56
#ifdef __cplusplus
57
}
58
#endif
59
bitarithm.h
Helper functions for bit arithmetic.
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1