Skip to content

Commit 67a5120

Browse files
committed
Adafruit Fruit Jam board
1 parent ee68c78 commit 67a5120

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Copyright (c) 2025 Dan Halbert for Adafruit Industries
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/adafruit_fruit_jam.h"
13+
14+
// pico_cmake_set PICO_PLATFORM=rp2350
15+
16+
#ifndef _BOARDS_ADAFRUIT_FRUIT_JAM_H
17+
#define _BOARDS_ADAFRUIT_FRUIT_JAM_H
18+
19+
// On some samples, the xosc can take longer to stabilize than is usual
20+
#ifndef PICO_XOSC_STARTUP_DELAY_MULTIPLIER
21+
#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64
22+
#endif
23+
24+
// For board detection
25+
#define ADAFRUIT_FRUIT_JAM
26+
27+
// --- RP2350 VARIANT ---
28+
// This means RP2350B.
29+
#define PICO_RP2350A 0
30+
31+
// no PICO_DEFAULT_UART
32+
33+
// --- LED ---
34+
#ifndef PICO_DEFAULT_LED_PIN
35+
#define PICO_DEFAULT_LED_PIN 29
36+
#endif
37+
38+
#ifndef PICO_DEFAULT_WS2812_PIN
39+
#define PICO_DEFAULT_WS2812_PIN 32
40+
#endif
41+
42+
// --- I2C ---
43+
#ifndef PICO_DEFAULT_I2C
44+
#define PICO_DEFAULT_I2C 0
45+
#endif
46+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
47+
#define PICO_DEFAULT_I2C_SDA_PIN 20
48+
#endif
49+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
50+
#define PICO_DEFAULT_I2C_SCL_PIN 21
51+
#endif
52+
53+
// --- SPI ---
54+
#ifndef PICO_DEFAULT_SPI
55+
#define PICO_DEFAULT_SPI 1
56+
#endif
57+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
58+
#define PICO_DEFAULT_SPI_SCK_PIN 30
59+
#endif
60+
#ifndef PICO_DEFAULT_SPI_TX_PIN
61+
#define PICO_DEFAULT_SPI_TX_PIN 31
62+
#endif
63+
#ifndef PICO_DEFAULT_SPI_RX_PIN
64+
#define PICO_DEFAULT_SPI_RX_PIN 28
65+
#endif
66+
67+
// --- FLASH ---
68+
69+
#ifndef PICO_FLASH_SPI_CLKDIV
70+
#define PICO_FLASH_SPI_CLKDIV 2
71+
#endif
72+
73+
// pico_cmake_set_default PICO_FLASH_SIZE_BYTES = (16 * 1024 * 1024)
74+
#ifndef PICO_FLASH_SIZE_BYTES
75+
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
76+
#endif
77+
78+
// pico_cmake_set_default PICO_RP2350_A2_SUPPORTED = 1
79+
#ifndef PICO_RP2350_A2_SUPPORTED
80+
#define PICO_RP2350_A2_SUPPORTED 1
81+
#endif
82+
83+
#endif

0 commit comments

Comments
 (0)