Skip to content

Commit 1a1a163

Browse files
committed
Added Olimex RP2350-PICO2-XL&XXL boards
https://github.com/OLIMEX/RP2350-PICO2-XXL
1 parent 8fb131a commit 1a1a163

File tree

2 files changed

+195
-0
lines changed

2 files changed

+195
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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+
// This header may be included by other board headers as "boards/olimex_rp2350_xl.h"
13+
14+
#ifndef _BOARDS_OLIMEX_RP2350_XL
15+
#define _BOARDS_OLIMEX_RP2350_XL
16+
17+
pico_board_cmake_set(PICO_PLATFORM, rp2350)
18+
19+
// Check https://github.com/OLIMEX/RP2350-PICO2-XXL
20+
21+
// For board detection
22+
#define OLIMEX_RP2350_XL
23+
24+
// --- RP2350 VARIANT ---
25+
#define PICO_RP2350A 0
26+
27+
// --- UART ---
28+
#ifndef PICO_DEFAULT_UART
29+
#define PICO_DEFAULT_UART 0
30+
#endif
31+
#ifndef PICO_DEFAULT_UART_TX_PIN
32+
#define PICO_DEFAULT_UART_TX_PIN 0
33+
#endif
34+
#ifndef PICO_DEFAULT_UART_RX_PIN
35+
#define PICO_DEFAULT_UART_RX_PIN 1
36+
#endif
37+
38+
// --- LED ---
39+
#ifndef PICO_DEFAULT_LED_PIN
40+
#define PICO_DEFAULT_LED_PIN 25
41+
#endif
42+
43+
// --- I2C ---
44+
#ifndef PICO_DEFAULT_I2C
45+
#define PICO_DEFAULT_I2C 1
46+
#endif
47+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
48+
#define PICO_DEFAULT_I2C_SDA_PIN 2
49+
#endif
50+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
51+
#define PICO_DEFAULT_I2C_SCL_PIN 3
52+
#endif
53+
54+
// --- SPI ---
55+
#ifndef PICO_DEFAULT_SPI
56+
#define PICO_DEFAULT_SPI 0
57+
#endif
58+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
59+
#define PICO_DEFAULT_SPI_SCK_PIN 6
60+
#endif
61+
#ifndef PICO_DEFAULT_SPI_TX_PIN
62+
#define PICO_DEFAULT_SPI_TX_PIN 7
63+
#endif
64+
#ifndef PICO_DEFAULT_SPI_RX_PIN
65+
#define PICO_DEFAULT_SPI_RX_PIN 4
66+
#endif
67+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
68+
#define PICO_DEFAULT_SPI_CSN_PIN 5
69+
#endif
70+
71+
// --- FLASH ---
72+
73+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
74+
75+
#ifndef PICO_FLASH_SPI_CLKDIV
76+
#define PICO_FLASH_SPI_CLKDIV 2
77+
#endif
78+
79+
pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (2 * 1024 * 1024))
80+
#ifndef PICO_FLASH_SIZE_BYTES
81+
#define PICO_FLASH_SIZE_BYTES (2 * 1024 * 1024)
82+
#endif
83+
84+
pico_board_cmake_set_default(PICO_RP2350_A2_SUPPORTED, 1)
85+
#ifndef PICO_RP2350_A2_SUPPORTED
86+
#define PICO_RP2350_A2_SUPPORTED 1
87+
#endif
88+
89+
#endif
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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+
// This header may be included by other board headers as "boards/olimex_rp2350_xxl.h"
13+
14+
#ifndef _BOARDS_OLIMEX_RP2350_XXL
15+
#define _BOARDS_OLIMEX_RP2350_XXL
16+
17+
pico_board_cmake_set(PICO_PLATFORM, rp2350)
18+
19+
// Check https://github.com/OLIMEX/RP2350-PICO2-XXL
20+
21+
// For board detection
22+
#define OLIMEX_RP2350_XXL
23+
24+
// --- RP2350 VARIANT ---
25+
#define PICO_RP2350A 0
26+
27+
// --- UART ---
28+
#ifndef PICO_DEFAULT_UART
29+
#define PICO_DEFAULT_UART 0
30+
#endif
31+
#ifndef PICO_DEFAULT_UART_TX_PIN
32+
#define PICO_DEFAULT_UART_TX_PIN 0
33+
#endif
34+
#ifndef PICO_DEFAULT_UART_RX_PIN
35+
#define PICO_DEFAULT_UART_RX_PIN 1
36+
#endif
37+
38+
// --- LED ---
39+
#ifndef PICO_DEFAULT_LED_PIN
40+
#define PICO_DEFAULT_LED_PIN 25
41+
#endif
42+
43+
// --- I2C ---
44+
#ifndef PICO_DEFAULT_I2C
45+
#define PICO_DEFAULT_I2C 1
46+
#endif
47+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
48+
#define PICO_DEFAULT_I2C_SDA_PIN 2
49+
#endif
50+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
51+
#define PICO_DEFAULT_I2C_SCL_PIN 3
52+
#endif
53+
54+
// --- SPI ---
55+
#ifndef PICO_DEFAULT_SPI
56+
#define PICO_DEFAULT_SPI 0
57+
#endif
58+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
59+
#define PICO_DEFAULT_SPI_SCK_PIN 6
60+
#endif
61+
#ifndef PICO_DEFAULT_SPI_TX_PIN
62+
#define PICO_DEFAULT_SPI_TX_PIN 7
63+
#endif
64+
#ifndef PICO_DEFAULT_SPI_RX_PIN
65+
#define PICO_DEFAULT_SPI_RX_PIN 4
66+
#endif
67+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
68+
#define PICO_DEFAULT_SPI_CSN_PIN 5
69+
#endif
70+
71+
// --- XXL HAS AN SD CARD ---
72+
#ifndef PICO_SD_CLK_PIN
73+
#define PICO_SD_CLK_PIN 10
74+
#endif
75+
#ifndef PICO_SD_CMD_PIN
76+
#define PICO_SD_CMD_PIN 11
77+
#endif
78+
#ifndef PICO_SD_DAT0_PIN
79+
#define PICO_SD_DAT0_PIN 24
80+
#endif
81+
#ifndef PICO_SD_DAT3_PIN
82+
#define PICO_SD_DAT3_PIN 9 // DAT3 of the SD card is the chip select pin
83+
#endif
84+
#ifndef PICO_SD_DAT_PIN_COUNT
85+
#define PICO_SD_DAT_PIN_COUNT 1
86+
#endif
87+
88+
// --- FLASH ---
89+
90+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
91+
92+
#ifndef PICO_FLASH_SPI_CLKDIV
93+
#define PICO_FLASH_SPI_CLKDIV 2
94+
#endif
95+
96+
pico_board_cmake_set_default(PICO_FLASH_SIZE_BYTES, (16 * 1024 * 1024))
97+
#ifndef PICO_FLASH_SIZE_BYTES
98+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
99+
#endif
100+
101+
pico_board_cmake_set_default(PICO_RP2350_A2_SUPPORTED, 1)
102+
#ifndef PICO_RP2350_A2_SUPPORTED
103+
#define PICO_RP2350_A2_SUPPORTED 1
104+
#endif
105+
106+
#endif

0 commit comments

Comments
 (0)