Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 OTA keys S.A.
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
23
#include <stdint.h>
24
25
#include "cpu.h"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
#define LED0_PIN_NUM 3
36
#define LED0_PORT GPIO_PORT_E
37
#define LED0_PORT_NUM PORT_E
38
39
#define LED1_PIN_NUM 4
40
#define LED1_PORT GPIO_PORT_E
41
#define LED1_PORT_NUM PORT_E
42
43
#define LED2_PIN_NUM 1
44
#define LED2_PORT GPIO_PORT_E
45
#define LED2_PORT_NUM PORT_E
52
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
53
#define BTN0_MODE GPIO_IN
61
#define SI70XX_PARAM_I2C_DEV I2C_DEV(1)
62
#define SI70XX_PARAM_ADDR (0x70)
63
#define SI70XX_SAUL_INFO { .name = "si7034"
}
70
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
71
#define SDCARD_SPI_PARAM_CS GPIO_PIN(PORT_E, 11)
72
#define SDCARD_SPI_PARAM_CLK GPIO_PIN(PORT_E, 2)
73
#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(PORT_E, 6)
74
#define SDCARD_SPI_PARAM_MISO GPIO_PIN(PORT_E, 5)
81
#define UB_PWRON_PIN GPIO_PIN(PORT_E, 14)
82
#define UB_M_RST_PIN GPIO_PIN(PORT_B, 5)
83
#define M_GPIO2_PIN GPIO_PIN(PORT_D, 1)
84
#define M_GPIO3_PIN GPIO_PIN(PORT_B, 4)
85
#define GPS_RST_PIN GPIO_PIN(PORT_C, 10)
/* Not connected */
88
#ifdef __cplusplus
89
}
90
#endif
91
92
#include "
stm32_leds.h
"
93
stm32_leds.h
Common LED macros.
Generated on Fri Jun 20 2025 21:02:35 by
1.9.1