Skip to content

Commit 06ab590

Browse files
committed
Adds Waveshare RP2350 One board
1 parent e7a0e61 commit 06ab590

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* Copyright (c) 2025 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+
// https://www.waveshare.com/wiki/RP2350-One
13+
14+
// pico_cmake_set PICO_PLATFORM=rp2350
15+
16+
#ifndef _BOARDS_WAVESHARE_RP2350_ONE_H
17+
#define _BOARDS_WAVESHARE_RP2350_ONE_H
18+
19+
// For board detection
20+
#define WAVESHARE_RP2350_ONE
21+
22+
// --- RP2350 VARIANT ---
23+
#define PICO_RP2350A 1
24+
25+
// --- UART ---
26+
#ifndef PICO_DEFAULT_UART
27+
#define PICO_DEFAULT_UART 0
28+
#endif
29+
#ifndef PICO_DEFAULT_UART_TX_PIN
30+
#define PICO_DEFAULT_UART_TX_PIN 0
31+
#endif
32+
#ifndef PICO_DEFAULT_UART_RX_PIN
33+
#define PICO_DEFAULT_UART_RX_PIN 1
34+
#endif
35+
36+
// --- WS2812 ---
37+
#ifndef PICO_DEFAULT_WS2812_PIN
38+
#define PICO_DEFAULT_WS2812_PIN 16
39+
#endif
40+
41+
// --- I2C ---
42+
#ifndef PICO_DEFAULT_I2C
43+
#define PICO_DEFAULT_I2C 1
44+
#endif
45+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
46+
#define PICO_DEFAULT_I2C_SDA_PIN 6
47+
#endif
48+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
49+
#define PICO_DEFAULT_I2C_SCL_PIN 7
50+
#endif
51+
52+
// --- SPI ---
53+
#ifndef PICO_DEFAULT_SPI
54+
#define PICO_DEFAULT_SPI 1
55+
#endif
56+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
57+
#define PICO_DEFAULT_SPI_SCK_PIN 10
58+
#endif
59+
#ifndef PICO_DEFAULT_SPI_TX_PIN
60+
#define PICO_DEFAULT_SPI_TX_PIN 11
61+
#endif
62+
#ifndef PICO_DEFAULT_SPI_RX_PIN
63+
#define PICO_DEFAULT_SPI_RX_PIN 12
64+
#endif
65+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
66+
#define PICO_DEFAULT_SPI_CSN_PIN 13
67+
#endif
68+
69+
// --- FLASH ---
70+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
71+
72+
#ifndef PICO_FLASH_SPI_CLKDIV
73+
#define PICO_FLASH_SPI_CLKDIV 2
74+
#endif
75+
76+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (4 * 1024 * 1024)
77+
#ifndef PICO_FLASH_SIZE_BYTES
78+
#define PICO_FLASH_SIZE_BYTES (4 * 1024 * 1024)
79+
#endif
80+
81+
// pico_cmake_set_default PICO_RP2350_A2_SUPPORTED = 1
82+
#ifndef PICO_RP2350_A2_SUPPORTED
83+
#define PICO_RP2350_A2_SUPPORTED 1
84+
#endif
85+
86+
#endif

0 commit comments

Comments
 (0)