Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Inria
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
26extern "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)
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* BOARD_H */