Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include "board_nucleo.h"
20#include "arduino_pinmap.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#ifdef BOARD_NUCLEO_G031K8
31# define LED0_PIN_NUM 6
32# define LED0_PORT GPIO_PORT_C
33# define LED0_PORT_NUM PORT_C
34#else
35# define LED0_PIN_NUM 3
36# define LED0_PORT GPIO_PORT_B
37# define LED0_PORT_NUM PORT_B
38#endif
40
41#ifdef __cplusplus
42}
43#endif
44
45#include "stm32_leds.h"
46
Compatibility wrapper for arduino_iomap.h.
Global common Nucleo board configuration.
Common LED macros.