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 14 // 15 // This header may be included by other board headers as "boards/solderparty_rp2040_stamp.h" 16 17 // pico_cmake_set PICO_PLATFORM=rp2040 18 19 #ifndef _BOARDS_SOLDERPARTY_RP2040_STAMP_H 20 #define _BOARDS_SOLDERPARTY_RP2040_STAMP_H 21 22 // For board detection 23 #define SOLDERPARTY_RP2040_STAMP 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 // --- Neopixel --- 37 #ifndef PICO_DEFAULT_WS2812_PIN 38 #define PICO_DEFAULT_WS2812_PIN 21 39 #endif 40 41 // --- I2C --- 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 4 47 #endif 48 #ifndef PICO_DEFAULT_I2C_SCL_PIN 49 #define PICO_DEFAULT_I2C_SCL_PIN 5 50 #endif 51 52 // --- SPI --- 53 #ifndef PICO_DEFAULT_SPI 54 #define PICO_DEFAULT_SPI 0 55 #endif 56 #ifndef PICO_DEFAULT_SPI_SCK_PIN 57 #define PICO_DEFAULT_SPI_SCK_PIN 18 58 #endif 59 #ifndef PICO_DEFAULT_SPI_TX_PIN 60 #define PICO_DEFAULT_SPI_TX_PIN 19 61 #endif 62 #ifndef PICO_DEFAULT_SPI_RX_PIN 63 #define PICO_DEFAULT_SPI_RX_PIN 16 64 #endif 65 #ifndef PICO_DEFAULT_SPI_CSN_PIN 66 #define PICO_DEFAULT_SPI_CSN_PIN 17 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 = (8 * 1024 * 1024) 77 #ifndef PICO_FLASH_SIZE_BYTES 78 #define PICO_FLASH_SIZE_BYTES (8 * 1024 * 1024) 79 #endif 80 // All production boards have B1 RP2040 81 #ifndef PICO_RP2040_B0_SUPPORTED 82 #define PICO_RP2040_B0_SUPPORTED 0 83 #endif 84 85 #endif 86