Skip to content

Commit 7daa20c

Browse files
authored
Add board definition for the RP2040 Stamp Round Carrier (#837)
1 parent 705b5ce commit 7daa20c

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
* Copyright (c) 2022 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 Solder Party RP2040 Stamp Round Carrier
14+
//
15+
// This header may be included by other board headers as "boards/solderparty_rp2040_stamp_round_carrier.h"
16+
17+
#ifndef _BOARDS_SOLDERPARTY_RP2040_STAMP_ROUND_CARRIER_H
18+
#define _BOARDS_SOLDERPARTY_RP2040_STAMP_ROUND_CARRIER_H
19+
20+
// For board detection
21+
#define SOLDERPARTY_RP2040_STAMP_ROUND_CARRIER
22+
23+
// --- User LED ---
24+
#ifndef PICO_DEFAULT_LED_PIN
25+
#define PICO_DEFAULT_LED_PIN 25
26+
#endif
27+
28+
// --- UART ---
29+
#ifndef PICO_DEFAULT_UART
30+
#define PICO_DEFAULT_UART 0
31+
#endif
32+
#ifndef PICO_DEFAULT_UART_TX_PIN
33+
#define PICO_DEFAULT_UART_TX_PIN 16
34+
#endif
35+
#ifndef PICO_DEFAULT_UART_RX_PIN
36+
#define PICO_DEFAULT_UART_RX_PIN 17
37+
#endif
38+
39+
// --- Neopixel Ring ---
40+
#ifndef PICO_DEFAULT_WS2812_PIN
41+
#define PICO_DEFAULT_WS2812_PIN 24
42+
#endif
43+
44+
// --- On-Stamp Neopixel ---
45+
#ifndef SOLDERPARTY_RP2040_STAMP_WS2812_PIN
46+
#define SOLDERPARTY_RP2040_STAMP_WS2812_PIN 21
47+
#endif
48+
49+
// --- I2C ---
50+
#ifndef PICO_DEFAULT_I2C
51+
#define PICO_DEFAULT_I2C 0
52+
#endif
53+
#ifndef PICO_DEFAULT_I2C_SDA_PIN
54+
#define PICO_DEFAULT_I2C_SDA_PIN 0
55+
#endif
56+
#ifndef PICO_DEFAULT_I2C_SCL_PIN
57+
#define PICO_DEFAULT_I2C_SCL_PIN 1
58+
#endif
59+
60+
// --- SPI ---
61+
#ifndef PICO_DEFAULT_SPI
62+
#define PICO_DEFAULT_SPI 1
63+
#endif
64+
#ifndef PICO_DEFAULT_SPI_SCK_PIN
65+
#define PICO_DEFAULT_SPI_SCK_PIN 10
66+
#endif
67+
#ifndef PICO_DEFAULT_SPI_TX_PIN
68+
#define PICO_DEFAULT_SPI_TX_PIN 11
69+
#endif
70+
#ifndef PICO_DEFAULT_SPI_RX_PIN
71+
#define PICO_DEFAULT_SPI_RX_PIN 8
72+
#endif
73+
#ifndef PICO_DEFAULT_SPI_CSN_PIN
74+
#define PICO_DEFAULT_SPI_CSN_PIN 9
75+
#endif
76+
77+
#include "solderparty_rp2040_stamp.h"
78+
79+
#endif

0 commit comments

Comments
 (0)