Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#include "cpu.h"
21#include "periph_conf.h"
22#include "periph_cpu.h"
23#include "arduino_pinmap.h"
24#include "periph/gpio.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#define XTIMER_DEV TIMER_DEV(1)
35#define XTIMER_CHAN (0)
37
42#define LED0_PIN GPIO_PIN(PA, 17)
43
44#define LED_PORT PORT->Group[PA]
45#define LED0_MASK (1 << 17)
46
47#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
48#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
49#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
51
52#ifdef __cplusplus
53}
54#endif
55
Compatibility wrapper for arduino_iomap.h.
Configuration of CPU peripherals for Arduino Zero board and clones.
Low-level GPIO peripheral driver interface definitions.