Skip to content

Commit 761bb1d

Browse files
authored
hellbender_0001 board file (#1957)
* hellbender_0001 board file * Fix FTRX_RX_PIN, Fix define names to match filename
1 parent bd5523c commit 761bb1d

File tree

1 file changed

+147
-0
lines changed

1 file changed

+147
-0
lines changed
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
/*
2+
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
// -----------------------------------------------------
8+
// NOTE: THIS HEADER IS ALSO INCLUDED BY ASSEMBLER SO
9+
// SHOULD ONLY CONSIST OF PREPROCESSOR DIRECTIVES
10+
// -----------------------------------------------------
11+
12+
#ifndef _BOARDS_HELLBENDER_0001_H
13+
#define _BOARDS_HELLBENDER_0001_H
14+
15+
// pico_cmake_set PICO_PLATFORM=rp2350
16+
17+
// For board detection
18+
#define HELLBENDER_0001
19+
20+
// Pin aliases
21+
#define HELLBENDER_0001_BLACKBOX_FLASH_CS_PIN 0 // on qspi bus
22+
23+
#define HELLBENDER_0001_IMU_CS_PIN 1 // also defined as PICO_DEFAULT_SPI_CSN_PIN
24+
#define HELLBENDER_0001_IMU_IRQ_PIN 22
25+
#define HELLBENDER_0001_IMU_CLKOUT_PIN 23
26+
27+
#define HELLBENDER_0001_5V_EN_PIN 14
28+
#define HELLBENDER_0001_9V_EN_PIN 15
29+
30+
#define HELLBENDER_0001_LED_BLUE_PIN 6 // also defined as PICO_DEFAULT_LED_PIN
31+
#define HELLBENDER_0001_LED_GREEN_PIN 7
32+
#define HELLBENDER_0001_BUZZER_PIN 5
33+
34+
#define HELLBENDER_0001_GNSS_UART_TX_PIN 8
35+
#define HELLBENDER_0001_GNSS_UART_RX_PIN 9
36+
37+
#define HELLBENDER_0001_DVTX_UART_TX_PIN 12
38+
#define HELLBENDER_0001_DVTX_UART_RX_PIN 13
39+
#define HELLBENDER_0001_DVTX_SBUS_PIN 36
40+
41+
#define HELLBENDER_0001_ESC_TELEM_RX_PIN 37
42+
43+
#define HELLBENDER_0001_OFFBOARD_WS2812_PIN 38
44+
#define HELLBENDER_0001_ONBOARD_WS2812_PIN 39 // also defined as PICO_DEFAULT_WS2812_PIN
45+
46+
#define HELLBENDER_0001_SPARE_UART_TX_PIN 34
47+
#define HELLBENDER_0001_SPARE_UART_RX_PIN 35
48+
49+
#define HELLBENDER_0001_I2C_CON_SDA_PIN 10
50+
#define HELLBENDER_0001_I2C_CON_SCL_PIN 11
51+
52+
#define HELLBENDER_0001_FTRX_TX_PIN 20
53+
#define HELLBENDER_0001_FTRX_RX_PIN 21
54+
55+
#define HELLBENDER_0001_SD_OSD_SPI_TX_PIN 27
56+
#define HELLBENDER_0001_SD_OSD_SPI_RX_PIN 24
57+
#define HELLBENDER_0001_SD_OSD_SPI_SCK_PIN 26
58+
#define HELLBENDER_0001_OSD_CS_PIN 17
59+
#define HELLBENDER_0001_SD_CS_PIN 25
60+
61+
#define HELLBENDER_0001_DSHOT1_PIN 28
62+
#define HELLBENDER_0001_DSHOT2_PIN 29
63+
#define HELLBENDER_0001_DSHOT3_PIN 30
64+
#define HELLBENDER_0001_DSHOT4_PIN 31
65+
66+
#define HELLBENDER_0001_GPIO_SPARE1_PIN 32
67+
#define HELLBENDER_0001_GPIO_SPARE2_PIN 33
68+
#define HELLBENDER_0001_GPIO_SPARE3_PIN 47
69+
70+
#define HELLBENDER_0001_VBAT_SENSE_PIN 40
71+
#define HELLBENDER_0001_CURR_SENSE_PIN 41
72+
#define HELLBENDER_0001_SPARE_ADC_PIN 42
73+
74+
75+
// --- UART ---
76+
// Note, conflicts with HSTX range
77+
#ifndef PICO_DEFAULT_UART
78+
#define PICO_DEFAULT_UART 0
79+
#endif
80+
#ifndef PICO_DEFAULT_UART_TX_PIN
81+
#define PICO_DEFAULT_UART_TX_PIN 12
82+
#endif
83+
#ifndef PICO_DEFAULT_UART_RX_PIN
84+
#define PICO_DEFAULT_UART_RX_PIN 13
85+
#endif
86+
87+
#ifndef PICO_DEFAULT_LED_PIN
88+
#define PICO_DEFAULT_LED_PIN 6
89+
#endif
90+
91+
#ifndef PICO_DEFAULT_WS2812_PIN
92+
#define PICO_DEFAULT_WS2812_PIN 39
93+
#endif
94+
95+
// --- I2C ---
96+
// Default I2C is connected to barometer
97+
#ifndef PICO_DEFAULT_I2C
98+
#define PICO_DEFAULT_I2C 0
99+
#endif
100+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
101+
#define PICO_DEFAULT_I2C_SDA_PIN 44
102+
#endif
103+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
104+
#define PICO_DEFAULT_I2C_SCL_PIN 45
105+
#endif
106+
107+
// --- SPI ---
108+
// Default SPI is connected to IMU
109+
#ifndef PICO_DEFAULT_SPI
110+
#define PICO_DEFAULT_SPI 0
111+
#endif
112+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
113+
#define PICO_DEFAULT_SPI_SCK_PIN 2
114+
#endif
115+
#ifndef PICO_DEFAULT_SPI_TX_PIN
116+
#define PICO_DEFAULT_SPI_TX_PIN 3
117+
#endif
118+
#ifndef PICO_DEFAULT_SPI_RX_PIN
119+
#define PICO_DEFAULT_SPI_RX_PIN 4
120+
#endif
121+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
122+
#define PICO_DEFAULT_SPI_CSN_PIN 1
123+
#endif
124+
125+
// --- FLASH ---
126+
127+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
128+
129+
#ifndef PICO_FLASH_SPI_CLKDIV
130+
#define PICO_FLASH_SPI_CLKDIV 2
131+
#endif
132+
133+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (16 * 1024 * 1024)
134+
#ifndef PICO_FLASH_SIZE_BYTES
135+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
136+
#endif
137+
138+
#define HELLBENDER_0001_BLACKBOX_FLASH_SIZE_BYTES (128 * 1024 * 1024)
139+
140+
// --- RP2350 VARIANT ---
141+
#define PICO_RP2350B 1
142+
143+
#ifndef PICO_RP2350_A2_SUPPORTED
144+
#define PICO_RP2350_A2_SUPPORTED 1
145+
#endif
146+
147+
#endif

0 commit comments

Comments
 (0)