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) 2020 Freie Universität Berlin
3
* Copyright (C) 2023 HAW Hamburg
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
10
#pragma once
11
24
#include "cpu.h"
25
#include "board_common.h"
26
#include "
periph/gpio.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
36
#define LED0_PIN GPIO_PIN(1, 9)
37
#define LED1_PIN GPIO_PIN(1, 10)
38
39
#define LED_PORT (NRF_P1)
40
#define LED0_MASK (1 << 9)
41
#define LED1_MASK (1 << 10)
42
#define LED_MASK (LED0_MASK | LED1_MASK)
43
44
#define LED0_ON (LED_PORT->OUTSET = LED0_MASK)
45
#define LED0_OFF (LED_PORT->OUTCLR = LED0_MASK)
46
#define LED0_TOGGLE (LED_PORT->OUT ^= LED0_MASK)
47
48
#define LED1_ON (LED_PORT->OUTSET = LED1_MASK)
49
#define LED1_OFF (LED_PORT->OUTCLR = LED1_MASK)
50
#define LED1_TOGGLE (LED_PORT->OUT ^= LED1_MASK)
57
#define BTN0_PIN GPIO_PIN(1, 2)
58
#define BTN0_MODE GPIO_IN_PU
65
#define MTD_0 mtd_dev_get(0)
72
#define BMX280_PARAM_I2C_DEV I2C_DEV(0)
79
#define LIS3MDL_PARAM_I2C I2C_DEV(0)
80
#define LIS3MDL_PARAM_ADDR (0x1C)
87
#define SHT3X_PARAM_I2C_DEV I2C_DEV(0)
88
#define SHT3X_PARAM_I2C_ADDR (SHT3X_I2C_ADDR_1)
95
#define LSM6DSXX_PARAM_I2C I2C_DEV(0)
96
#define LSM6DSXX_PARAM_ADDR (0x6A)
103
#ifndef WS281X_PARAM_PIN
107
#define WS281X_PARAM_PIN GPIO_PIN(0, 16)
108
#endif
109
#ifndef WS281X_PARAM_NUMOF
110
#define WS281X_PARAM_NUMOF (1U)
111
#endif
114
#ifdef __cplusplus
115
}
116
#endif
117
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jun 26 2025 14:14:43 by
1.9.1