Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 luisan00
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
18#ifndef BOARD_H
19#define BOARD_H
20
21#include "cpu.h"
22#include "periph_conf.h"
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
33#define LED0_PIN_NUM 6
34#define LED0_PORT_NUM PORT_G
35#define LED0_IS_INVERTED 1
36
37#define LED1_PIN_NUM 4
38#define LED1_PORT_NUM PORT_D
39#define LED1_IS_INVERTED 1
40
41#define LED2_PIN_NUM 5
42#define LED2_PORT_NUM PORT_D
43#define LED2_IS_INVERTED 1
44
45#define LED3_PIN_NUM 3
46#define LED3_PORT_NUM PORT_K
47#define LED3_IS_INVERTED 1
54#define BTN0_PIN GPIO_PIN(PORT_A, 0)
55#define BTN0_MODE GPIO_IN
58#ifdef __cplusplus
59}
60#endif
61
62#include "stm32_leds.h"
63
64#endif /* BOARD_H */
Native CPU peripheral configuration.
Common LED macros.