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_NUM PORT_E
38
39
#define LED1_PIN_NUM 4
40
#define LED1_PORT_NUM PORT_E
41
42
#define LED2_PIN_NUM 1
43
#define LED2_PORT_NUM PORT_E
50
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
51
#define BTN0_MODE GPIO_IN
59
#define SI70XX_PARAM_I2C_DEV I2C_DEV(1)
60
#define SI70XX_PARAM_ADDR (0x70)
61
#define SI70XX_SAUL_INFO { .name = "si7034" }
68
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
69
#define SDCARD_SPI_PARAM_CS GPIO_PIN(PORT_E, 11)
70
#define SDCARD_SPI_PARAM_CLK GPIO_PIN(PORT_E, 2)
71
#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(PORT_E, 6)
72
#define SDCARD_SPI_PARAM_MISO GPIO_PIN(PORT_E, 5)
79
#define UB_PWRON_PIN GPIO_PIN(PORT_E, 14)
80
#define UB_M_RST_PIN GPIO_PIN(PORT_B, 5)
81
#define M_GPIO2_PIN GPIO_PIN(PORT_D, 1)
82
#define M_GPIO3_PIN GPIO_PIN(PORT_B, 4)
83
#define GPS_RST_PIN GPIO_PIN(PORT_C, 10)
/* Not connected */
86
#ifdef __cplusplus
87
}
88
#endif
89
90
#include "
stm32_leds.h
"
91
92
#endif
/* BOARD_H */
stm32_leds.h
Common LED macros.
Generated on Thu Mar 28 2024 10:55:45 by
1.9.8