board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3  * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
21 #include "cpu.h"
22 #include "arduino_pinmap.h"
23 #include "periph/gpio.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #define LED0_PIN GPIO_PIN(PB, 27)
34 
35 #define LED0_ON (PIOB->PIO_SODR = PIO_PB27)
36 #define LED0_OFF (PIOB->PIO_CODR = PIO_PB27)
37 #define LED0_TOGGLE ((PIOB->PIO_ODSR & PIO_PB27) ? LED0_OFF : LED0_ON)
40 #ifdef __cplusplus
41 }
42 #endif
43 
Compatibility wrapper for arduino_iomap.h.
Low-level GPIO peripheral driver interface definitions.