Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2013 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include "lpc23xx.h"
19
#include "
bitarithm.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define LED0_PIN GPIO_PIN(2, 25)
30
#define LED1_PIN GPIO_PIN(2, 26)
31
32
#define LED0_MASK (BIT25)
33
#define LED1_MASK (BIT26)
34
35
#define LED0_OFF (FIO3SET = LED0_MASK)
36
#define LED0_ON (FIO3CLR = LED0_MASK)
37
#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
38
39
#define LED1_OFF (FIO3SET = LED1_MASK)
40
#define LED1_ON (FIO3CLR = LED1_MASK)
41
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
48
#ifdef MODULE_MTD_MCI
49
#define MTD_0 mtd_dev_get(0)
50
#endif
53
#ifdef __cplusplus
54
}
55
#endif
56
bitarithm.h
Helper functions for bit arithmetic.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1