Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdint.h>
19
20#include "cpu.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define LED0_PIN_NUM 13
31#define LED0_PORT GPIO_PORT_E
32#define LED0_PORT_NUM PORT_E
33
34#define LED1_PIN_NUM 6
35#define LED1_PORT GPIO_PORT_H
36#define LED1_PORT_NUM PORT_H
37
38#define LED2_PIN_NUM 7
39#define LED2_PORT GPIO_PORT_H
40#define LED2_PORT_NUM PORT_H
42
47#define BTN0_PIN GPIO_PIN(PORT_C, 13)
48#define BTN0_MODE GPIO_IN_PU
50
55#define HTS221_PARAM_I2C I2C_DEV(1)
57
62#define LPSXXX_PARAM_I2C I2C_DEV(1)
64
65#ifdef __cplusplus
66}
67#endif
68
69#include "stm32_leds.h"
70
Common LED macros.