board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Inria
3  * 2019 Freie Universität Berlin
4  * 2019 Kaspar Schleiser <kaspar@schleiser.de>
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
11 #pragma once
12 
23 #include <stdint.h>
24 
25 #include "cpu.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #define LED0_PIN_NUM 4
36 #define LED0_PORT GPIO_PORT_B
37 #define LED0_PORT_NUM PORT_B
44 #define BTN0_PIN GPIO_PIN(PORT_B, 3)
45 #define BTN0_MODE GPIO_IN_PU
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #include "stm32_leds.h"
53 
Common LED macros.