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 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
19
#include "lpc23xx.h"
20
#include "
bitarithm.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define LED0_PIN GPIO_PIN(2, 25)
31
#define LED1_PIN GPIO_PIN(2, 26)
32
33
#define LED0_MASK (BIT25)
34
#define LED1_MASK (BIT26)
35
36
#define LED0_OFF (FIO3SET = LED0_MASK)
37
#define LED0_ON (FIO3CLR = LED0_MASK)
38
#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
39
40
#define LED1_OFF (FIO3SET = LED1_MASK)
41
#define LED1_ON (FIO3CLR = LED1_MASK)
42
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
45
#ifdef __cplusplus
46
}
47
#endif
48
bitarithm.h
Helper functions for bit arithmetic.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1