Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2026 Bas Stottelaar <basstottelaar@gmail.com>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
19
#include "cpu.h"
20
#include "board_common.h"
21
#include "
periph/gpio.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#define CONFIG_ZTIMER_USEC_ADJUST_SET 7
32
#define CONFIG_ZTIMER_USEC_ADJUST_SLEEP 21
34
39
#define LED0_PIN GPIO_PIN(0, 15)
40
41
#define LED_PORT (NRF_P0)
42
#define LED0_MASK (1 << 15)
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)
48
49
#ifdef __cplusplus
50
}
51
#endif
52
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Feb 26 2026 19:45:46 by
1.13.2