board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016 Kees Bakker, SODAQ
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "cpu.h"
19 #include "board_common.h"
20 #include "periph/gpio.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 #define LED0_PIN GPIO_PIN(PA, 18)
31 
32 #define LED_PORT PORT->Group[PA]
33 #define LED0_MASK (1 << 18)
34 
35 #define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
36 #define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
37 #define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
40 #ifdef __cplusplus
41 }
42 #endif
43 
Low-level GPIO peripheral driver interface definitions.