board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
9 #pragma once
10 
21 #include "cpu.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define XTIMER_WIDTH (16)
38 #define LED0_PIN_NUM 4
39 #define LED0_PORT GPIO_PORT_B
40 #define LED0_PORT_NUM PORT_B
41 
42 #define LED1_PIN_NUM 5
43 #define LED1_PORT GPIO_PORT_A
44 #define LED1_PORT_NUM PORT_A
51 #define BTN0_PIN GPIO_PIN(PORT_A, 0)
52 #define BTN0_MODE GPIO_IN
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #include "stm32_leds.h"
60 
Common LED macros.