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
* SPDX-FileCopyrightText: 2026 Baptiste Le Duc <baptiste.leduc@etik.com>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "
periph/gpio.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
28
#ifndef CONFIG_T1000E_ENABLE_3V3
29
# define CONFIG_T1000E_ENABLE_3V3 1
30
#endif
31
#ifndef CONFIG_T1000E_ENABLE_SENSOR
32
# define CONFIG_T1000E_ENABLE_SENSOR 1
33
#endif
34
#ifndef CONFIG_T1000E_ENABLE_ACC
35
# define CONFIG_T1000E_ENABLE_ACC 1
36
#endif
38
43
#define BTN0_PIN GPIO_PIN(0, 6)
44
#define BTN0_MODE GPIO_IN_PD
45
#define BTN0_INT_FLANK GPIO_RISING
47
52
#define LED0_PIN GPIO_PIN(0, 24)
53
#define LED0_ON gpio_set(LED0_PIN)
54
#define LED0_OFF gpio_clear(LED0_PIN)
55
#define LED0_TOGGLE gpio_toggle(LED0_PIN)
57
62
#define BUZZER_EN_PIN GPIO_PIN(1, 5)
63
#define BUZZER_PIN GPIO_PIN(0, 25)
65
70
#define T1000E_SENSOR_EN_PIN GPIO_PIN(0, 4)
71
#define T1000E_3V3_EN_PIN GPIO_PIN(1, 6)
72
#define T1000E_3V3_ACC_EN_PIN GPIO_PIN(1, 7)
74
79
#define T1000E_LORA_NSS_PIN GPIO_PIN(0, 12)
80
#define T1000E_LORA_RESET_PIN GPIO_PIN(1, 10)
81
#define T1000E_LORA_IRQ_PIN GPIO_PIN(1, 1)
82
#define T1000E_LORA_BUSY_PIN GPIO_PIN(0, 7)
84
89
#define T1000E_GPS_EN_PIN GPIO_PIN(1, 11)
90
#define T1000E_GPS_RESET_PIN GPIO_PIN(1, 15)
91
#define T1000E_GPS_VRTC_EN_PIN GPIO_PIN(0, 8)
92
#define T1000E_GPS_SLEEP_INT_PIN GPIO_PIN(1, 12)
93
#define T1000E_GPS_RTC_INT_PIN GPIO_PIN(0, 15)
94
#define T1000E_GPS_RESETB_OUT_PIN GPIO_PIN(1, 14)
96
101
#define T1000E_BAT_ADC_PIN GPIO_PIN(0, 2)
102
#define T1000E_CHRG_DETECT_PIN GPIO_PIN(1, 3)
103
#define T1000E_EXT_PWR_DETECT_PIN GPIO_PIN(0, 5)
105
110
#define T1000E_ACC_INT_PIN GPIO_PIN(1, 2)
112
113
#ifdef __cplusplus
114
}
115
#endif
116
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Wed May 27 2026 00:47:43 by
1.13.2