Loading...
Searching...
No Matches
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
21#ifndef BOARD_H
22#define BOARD_H
23
24#include <stdint.h>
25
26#include "cpu.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#define LED0_PIN_NUM 4
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
54#endif /* BOARD_H */
Common LED macros.