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) 2015 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 "board_common.h"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#define LED0_PIN GPIO_PIN(0, 21)
32
#define LED1_PIN GPIO_PIN(0, 22)
33
#define LED2_PIN GPIO_PIN(0, 23)
34
35
#define LED0_MASK (1 << 21)
36
#define LED1_MASK (1 << 22)
37
#define LED2_MASK (1 << 23)
38
39
#define LED0_ON (NRF_GPIO->OUTCLR = LED0_MASK)
40
#define LED0_OFF (NRF_GPIO->OUTSET = LED0_MASK)
41
#define LED0_TOGGLE (NRF_GPIO->OUT ^= LED0_MASK)
42
43
#define LED1_ON (NRF_GPIO->OUTCLR = LED1_MASK)
44
#define LED1_OFF (NRF_GPIO->OUTSET = LED1_MASK)
45
#define LED1_TOGGLE (NRF_GPIO->OUT ^= LED1_MASK)
46
47
#define LED2_ON (NRF_GPIO->OUTCLR = LED2_MASK)
48
#define LED2_OFF (NRF_GPIO->OUTSET = LED2_MASK)
49
#define LED2_TOGGLE (NRF_GPIO->OUT ^= LED2_MASK)
52
#ifdef __cplusplus
53
}
54
#endif
55
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1