Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Supported Boards
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Enumerations
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerator
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
►
RIOT OS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2024 Méwen Berthelot
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 "cpu.h"
23
#include "board_common.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
#define LED0_PIN GPIO_PIN(0, 13)
34
#define LED0_MASK (1 << 13)
35
#define LED0_ON (NRF_P0->OUTCLR = LED0_MASK)
36
#define LED0_OFF (NRF_P0->OUTSET = LED0_MASK)
37
#define LED0_TOGGLE (NRF_P0->OUT ^= LED0_MASK)
38
39
#define LED1_PIN GPIO_PIN(0, 24)
40
#define LED1_MASK (1 << 24)
41
#define LED1_ON (NRF_P0->OUTCLR = LED1_MASK)
42
#define LED1_OFF (NRF_P0->OUTSET = LED1_MASK)
43
#define LED1_TOGGLE (NRF_P0->OUT ^= LED1_MASK)
44
45
#define LED2_PIN GPIO_PIN(0, 16)
46
#define LED2_MASK (1 << 16)
47
#define LED2_ON (NRF_P0->OUTCLR = LED2_MASK)
48
#define LED2_OFF (NRF_P0->OUTSET = LED2_MASK)
49
#define LED2_TOGGLE (NRF_P0->OUT ^= LED2_MASK)
50
51
#define LED3_PIN GPIO_PIN(0, 6)
52
#define LED3_MASK (1 << 6)
53
#define LED3_ON (NRF_P0->OUTCLR = LED3_MASK)
54
#define LED3_OFF (NRF_P0->OUTSET = LED3_MASK)
55
#define LED3_TOGGLE (NRF_P0->OUT ^= LED3_MASK)
56
57
#define LED4_PIN GPIO_PIN(1, 9)
58
#define LED4_MASK (1 << 9)
59
#define LED4_ON (NRF_P1->OUTCLR = LED4_MASK)
60
#define LED4_OFF (NRF_P1->OUTSET = LED4_MASK)
61
#define LED4_TOGGLE (NRF_P1->OUT ^= LED4_MASK)
68
#define VDD GPIO_PIN(0, 22)
75
#define SCL1 GPIO_PIN(0, 15)
76
#define SDA1 GPIO_PIN(0, 14)
83
#define HTS221_PARAM_I2C I2C_DEV(1)
90
#define LPSXXX_PARAM_ADDR (0x5c)
91
#define LPSXXX_PARAM_I2C I2C_DEV(1)
98
#define APDS99XX_PARAM_DEV I2C_DEV(1)
99
#define APDS99XX_PARAM_INT_PIN GPIO_PIN(0, 19)
102
#ifdef __cplusplus
103
}
104
#endif
105
106
#endif
/* BOARD_H */
Generated on Mon Feb 17 2025 17:48:06 by
1.12.0