Skip to content

Commit 6708707

Browse files
committed
Add board file for Eelectronicparts Pico Mini in 2,4,8,16MB variants
Store page and pinout diagrams are here: https://www.eelectronicparts.com/products/rp2040-pro-mini-pico-development-board-for-raspberry-pi-dual-core-mciro-python
1 parent b1676c1 commit 6708707

5 files changed

+436
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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+
//------------------------------------------------------------------------------------------
13+
// Board definition for the E Electronic Parts "Pico_Mini RP2040"
14+
//
15+
// This header may be included by other board headers as "boards/eelectronicparts_picomini.h"
16+
17+
// pico_cmake_set PICO_PLATFORM=rp2040
18+
19+
#ifndef _BOARDS_EELECTRONICPARTS_PICOMINI_H
20+
#define _BOARDS_EELECTRONICPARTS_PICOMINI_H
21+
22+
// For board detection
23+
#define EELECTRONICPARTS_PICOMINI
24+
25+
// // copied from itsybitsy rp2040 idk why
26+
// #ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER
27+
// #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
28+
// #endif
29+
30+
#ifndef PICO_DEFAULT_UART
31+
#define PICO_DEFAULT_UART 0
32+
#endif
33+
#ifndef PICO_DEFAULT_UART_TX_PIN
34+
#define PICO_DEFAULT_UART_TX_PIN 0
35+
#endif
36+
#ifndef PICO_DEFAULT_UART_RX_PIN
37+
#define PICO_DEFAULT_UART_RX_PIN 1
38+
#endif
39+
40+
#ifndef PICO_DEFAULT_LED_PIN
41+
#define PICO_DEFAULT_LED_PIN 25
42+
#endif
43+
#ifndef PICO_DEFAULT_WS2812_PIN
44+
#define PICO_DEFAULT_WS2812_PIN 16
45+
#endif
46+
47+
#ifndef PICO_DEFAULT_I2C
48+
#define PICO_DEFAULT_I2C 0
49+
#endif
50+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
51+
#define PICO_DEFAULT_I2C_SDA_PIN 16
52+
#endif
53+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
54+
#define PICO_DEFAULT_I2C_SCL_PIN 17
55+
#endif
56+
57+
// --- SPI ---
58+
#ifndef PICO_DEFAULT_SPI
59+
#define PICO_DEFAULT_SPI 1
60+
#endif
61+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
62+
#define PICO_DEFAULT_SPI_SCK_PIN 10
63+
#endif
64+
#ifndef PICO_DEFAULT_SPI_TX_PIN
65+
#define PICO_DEFAULT_SPI_TX_PIN 11
66+
#endif
67+
#ifndef PICO_DEFAULT_SPI_RX_PIN
68+
#define PICO_DEFAULT_SPI_RX_PIN 12
69+
#endif
70+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
71+
#define PICO_DEFAULT_SPI_CSN_PIN 13
72+
#endif
73+
74+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
75+
76+
#ifndef PICO_FLASH_SPI_CLKDIV
77+
#define PICO_FLASH_SPI_CLKDIV 2
78+
#endif
79+
80+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (8 * 1024 * 1024)
81+
#ifndef PICO_FLASH_SIZE_BYTES
82+
// This board comes in several variants with different flash sizes
83+
// Default to 8MB, but there are 2MB, 4MB, and 16MB variants as well
84+
#define PICO_FLASH_SIZE_BYTES (8 * 1024 * 1024)
85+
#endif
86+
// All boards have B1 RP2040
87+
88+
#ifndef PICO_RP2040_B0_SUPPORTED
89+
#define PICO_RP2040_B0_SUPPORTED 0
90+
#endif
91+
92+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
//------------------------------------------------------------------------------------------
13+
// Board definition for the E Electronic Parts "Pico_Mini RP2040"
14+
//
15+
// This header may be included by other board headers as "boards/eelectronicparts_picomini_16mb.h"
16+
17+
// pico_cmake_set PICO_PLATFORM=rp2040
18+
19+
#ifndef _BOARDS_EELECTRONICPARTS_PICOMINI_16MB_H
20+
#define _BOARDS_EELECTRONICPARTS_PICOMINI_16MB_H
21+
22+
// For board detection
23+
#define EELECTRONICPARTS_PICOMINI_16MB
24+
25+
#ifndef PICO_DEFAULT_UART
26+
#define PICO_DEFAULT_UART 0
27+
#endif
28+
#ifndef PICO_DEFAULT_UART_TX_PIN
29+
#define PICO_DEFAULT_UART_TX_PIN 0
30+
#endif
31+
#ifndef PICO_DEFAULT_UART_RX_PIN
32+
#define PICO_DEFAULT_UART_RX_PIN 1
33+
#endif
34+
35+
#ifndef PICO_DEFAULT_LED_PIN
36+
#define PICO_DEFAULT_LED_PIN 25
37+
#endif
38+
#ifndef PICO_DEFAULT_WS2812_PIN
39+
#define PICO_DEFAULT_WS2812_PIN 16
40+
#endif
41+
42+
#ifndef PICO_DEFAULT_I2C
43+
#define PICO_DEFAULT_I2C 0
44+
#endif
45+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
46+
#define PICO_DEFAULT_I2C_SDA_PIN 16
47+
#endif
48+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
49+
#define PICO_DEFAULT_I2C_SCL_PIN 17
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+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
70+
71+
#ifndef PICO_FLASH_SPI_CLKDIV
72+
#define PICO_FLASH_SPI_CLKDIV 2
73+
#endif
74+
75+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (16 * 1024 * 1024)
76+
#ifndef PICO_FLASH_SIZE_BYTES
77+
// This board comes in 2MB, 4MB, 8MB, and 16MB variants
78+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
79+
#endif
80+
// All boards have B1 RP2040
81+
82+
#ifndef PICO_RP2040_B0_SUPPORTED
83+
#define PICO_RP2040_B0_SUPPORTED 0
84+
#endif
85+
86+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
//------------------------------------------------------------------------------------------
13+
// Board definition for the E Electronic Parts "Pico_Mini RP2040"
14+
//
15+
// This header may be included by other board headers as "boards/eelectronicparts_picomini_2mb.h"
16+
17+
// pico_cmake_set PICO_PLATFORM=rp2040
18+
19+
#ifndef _BOARDS_EELECTRONICPARTS_PICOMINI_2MB_H
20+
#define _BOARDS_EELECTRONICPARTS_PICOMINI_2MB_H
21+
22+
// For board detection
23+
#define EELECTRONICPARTS_PICOMINI_2MB
24+
25+
#ifndef PICO_DEFAULT_UART
26+
#define PICO_DEFAULT_UART 0
27+
#endif
28+
#ifndef PICO_DEFAULT_UART_TX_PIN
29+
#define PICO_DEFAULT_UART_TX_PIN 0
30+
#endif
31+
#ifndef PICO_DEFAULT_UART_RX_PIN
32+
#define PICO_DEFAULT_UART_RX_PIN 1
33+
#endif
34+
35+
#ifndef PICO_DEFAULT_LED_PIN
36+
#define PICO_DEFAULT_LED_PIN 25
37+
#endif
38+
#ifndef PICO_DEFAULT_WS2812_PIN
39+
#define PICO_DEFAULT_WS2812_PIN 16
40+
#endif
41+
42+
#ifndef PICO_DEFAULT_I2C
43+
#define PICO_DEFAULT_I2C 0
44+
#endif
45+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
46+
#define PICO_DEFAULT_I2C_SDA_PIN 16
47+
#endif
48+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
49+
#define PICO_DEFAULT_I2C_SCL_PIN 17
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+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
70+
71+
#ifndef PICO_FLASH_SPI_CLKDIV
72+
#define PICO_FLASH_SPI_CLKDIV 2
73+
#endif
74+
75+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (2 * 1024 * 1024)
76+
#ifndef PICO_FLASH_SIZE_BYTES
77+
// This board comes in 2MB, 4MB, 8MB, and 16MB variants
78+
#define PICO_FLASH_SIZE_BYTES (2 * 1024 * 1024)
79+
#endif
80+
// All boards have B1 RP2040
81+
82+
#ifndef PICO_RP2040_B0_SUPPORTED
83+
#define PICO_RP2040_B0_SUPPORTED 0
84+
#endif
85+
86+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
//------------------------------------------------------------------------------------------
13+
// Board definition for the E Electronic Parts "Pico_Mini RP2040"
14+
//
15+
// This header may be included by other board headers as "boards/eelectronicparts_picomini_4mb.h"
16+
17+
// pico_cmake_set PICO_PLATFORM=rp2040
18+
19+
#ifndef _BOARDS_EELECTRONICPARTS_PICOMINI_4MB_H
20+
#define _BOARDS_EELECTRONICPARTS_PICOMINI_4MB_H
21+
22+
// For board detection
23+
#define EELECTRONICPARTS_PICOMINI_4MB
24+
25+
#ifndef PICO_DEFAULT_UART
26+
#define PICO_DEFAULT_UART 0
27+
#endif
28+
#ifndef PICO_DEFAULT_UART_TX_PIN
29+
#define PICO_DEFAULT_UART_TX_PIN 0
30+
#endif
31+
#ifndef PICO_DEFAULT_UART_RX_PIN
32+
#define PICO_DEFAULT_UART_RX_PIN 1
33+
#endif
34+
35+
#ifndef PICO_DEFAULT_LED_PIN
36+
#define PICO_DEFAULT_LED_PIN 25
37+
#endif
38+
#ifndef PICO_DEFAULT_WS2812_PIN
39+
#define PICO_DEFAULT_WS2812_PIN 16
40+
#endif
41+
42+
#ifndef PICO_DEFAULT_I2C
43+
#define PICO_DEFAULT_I2C 0
44+
#endif
45+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
46+
#define PICO_DEFAULT_I2C_SDA_PIN 16
47+
#endif
48+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
49+
#define PICO_DEFAULT_I2C_SCL_PIN 17
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+
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
70+
71+
#ifndef PICO_FLASH_SPI_CLKDIV
72+
#define PICO_FLASH_SPI_CLKDIV 2
73+
#endif
74+
75+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (4 * 1024 * 1024)
76+
#ifndef PICO_FLASH_SIZE_BYTES
77+
// This board comes in 2MB, 4MB, 8MB, and 16MB variants
78+
#define PICO_FLASH_SIZE_BYTES (4 * 1024 * 1024)
79+
#endif
80+
// All boards have B1 RP2040
81+
82+
#ifndef PICO_RP2040_B0_SUPPORTED
83+
#define PICO_RP2040_B0_SUPPORTED 0
84+
#endif
85+
86+
#endif

0 commit comments

Comments
 (0)