Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 OTA keys S.A.
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 3
31#define LED0_PORT GPIO_PORT_E
32#define LED0_PORT_NUM PORT_E
33
34#define LED1_PIN_NUM 4
35#define LED1_PORT GPIO_PORT_E
36#define LED1_PORT_NUM PORT_E
37
38#define LED2_PIN_NUM 1
39#define LED2_PORT GPIO_PORT_E
40#define LED2_PORT_NUM PORT_E
42
47#define BTN0_PIN GPIO_PIN(PORT_C, 13)
48#define BTN0_MODE GPIO_IN
50
56#define SI70XX_PARAM_I2C_DEV I2C_DEV(1)
57#define SI70XX_PARAM_ADDR (0x70)
58#define SI70XX_SAUL_INFO { .name = "si7034" }
60
65#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
66#define SDCARD_SPI_PARAM_CS GPIO_PIN(PORT_E, 11)
67#define SDCARD_SPI_PARAM_CLK GPIO_PIN(PORT_E, 2)
68#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(PORT_E, 6)
69#define SDCARD_SPI_PARAM_MISO GPIO_PIN(PORT_E, 5)
71
76#define UB_PWRON_PIN GPIO_PIN(PORT_E, 14)
77#define UB_M_RST_PIN GPIO_PIN(PORT_B, 5)
78#define M_GPIO2_PIN GPIO_PIN(PORT_D, 1)
79#define M_GPIO3_PIN GPIO_PIN(PORT_B, 4)
80#define GPS_RST_PIN GPIO_PIN(PORT_C, 10)
82
83#ifdef __cplusplus
84}
85#endif
86
87#include "stm32_leds.h"
88
Common LED macros.