Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
21
#ifndef BOARD_H
22
#define BOARD_H
23
24
#include <stdint.h>
25
26
#include "cpu.h"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
36
#define LED0_PIN_NUM 3
37
#define LED0_PORT GPIO_PORT_E
38
#define LED0_PORT_NUM PORT_E
39
40
#define LED1_PIN_NUM 4
41
#define LED1_PORT GPIO_PORT_E
42
#define LED1_PORT_NUM PORT_E
43
44
#define LED2_PIN_NUM 1
45
#define LED2_PORT GPIO_PORT_E
46
#define LED2_PORT_NUM PORT_E
53
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
54
#define BTN0_MODE GPIO_IN
62
#define SI70XX_PARAM_I2C_DEV I2C_DEV(1)
63
#define SI70XX_PARAM_ADDR (0x70)
64
#define SI70XX_SAUL_INFO { .name = "si7034" }
71
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
72
#define SDCARD_SPI_PARAM_CS GPIO_PIN(PORT_E, 11)
73
#define SDCARD_SPI_PARAM_CLK GPIO_PIN(PORT_E, 2)
74
#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(PORT_E, 6)
75
#define SDCARD_SPI_PARAM_MISO GPIO_PIN(PORT_E, 5)
82
#define UB_PWRON_PIN GPIO_PIN(PORT_E, 14)
83
#define UB_M_RST_PIN GPIO_PIN(PORT_B, 5)
84
#define M_GPIO2_PIN GPIO_PIN(PORT_D, 1)
85
#define M_GPIO3_PIN GPIO_PIN(PORT_B, 4)
86
#define GPS_RST_PIN GPIO_PIN(PORT_C, 10)
/* Not connected */
89
#ifdef __cplusplus
90
}
91
#endif
92
93
#include "
stm32_leds.h
"
94
95
#endif
/* BOARD_H */
stm32_leds.h
Common LED macros.
Generated on Sat Nov 23 2024 01:58:05 by
1.9.8