rp2/boards/WAVESHARE_RP2350B_CORE: Add Waveshare RP2350B Core board.
Signed-off-by: Ned Konz <ned@metamagix.tech>
This commit is contained in:
parent
3a24bdbe71
commit
20ffe6f139
23
ports/rp2/boards/WAVESHARE_RP2350B_CORE/board.json
Normal file
23
ports/rp2/boards/WAVESHARE_RP2350B_CORE/board.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"deploy": [
|
||||
"../deploy.md"
|
||||
],
|
||||
"docs": "",
|
||||
"features": [
|
||||
"Dual-core",
|
||||
"External Flash",
|
||||
"External RAM",
|
||||
"USB-C"
|
||||
],
|
||||
"images": [
|
||||
"waveshare_rp2350b_core.png"
|
||||
],
|
||||
"mcu": "rp2350",
|
||||
"product": "RP2350B Core",
|
||||
"thumbnail": "",
|
||||
"url": "https://www.waveshare.com/core2350b.htm",
|
||||
"variants": {
|
||||
"RISCV": "RISC V"
|
||||
},
|
||||
"vendor": "Waveshare"
|
||||
}
|
||||
10
ports/rp2/boards/WAVESHARE_RP2350B_CORE/mpconfigboard.cmake
Normal file
10
ports/rp2/boards/WAVESHARE_RP2350B_CORE/mpconfigboard.cmake
Normal file
@ -0,0 +1,10 @@
|
||||
# CMake file for Waveshare RP2350B Core
|
||||
|
||||
# The Core is powered by an RP2350B with 48 GPIOs
|
||||
set(PICO_NUM_GPIOS 48)
|
||||
|
||||
# The Waveshare boards don't have official pico-sdk support.
|
||||
# So, add this board directory to the header search path and define PICO_BOARD
|
||||
# which will instruct pico-sdk to look for waveshare_rp2350b_core.h
|
||||
list(APPEND PICO_BOARD_HEADER_DIRS ${MICROPY_BOARD_DIR})
|
||||
set(PICO_BOARD "waveshare_rp2350b_core")
|
||||
15
ports/rp2/boards/WAVESHARE_RP2350B_CORE/mpconfigboard.h
Normal file
15
ports/rp2/boards/WAVESHARE_RP2350B_CORE/mpconfigboard.h
Normal file
@ -0,0 +1,15 @@
|
||||
// Board and hardware specific configuration
|
||||
#define MICROPY_HW_BOARD_NAME "Waveshare RP2350B Core"
|
||||
#define PICO_FLASH_SIZE_BYTES (16 * 1024 * 1024)
|
||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (14 * 1024 * 1024)
|
||||
|
||||
#define MICROPY_HW_PSRAM_CS_PIN (47)
|
||||
#define MICROPY_HW_ENABLE_PSRAM (1)
|
||||
|
||||
// Override machine_uart.c definitions.
|
||||
// See waveshare_rp2350b.h and note that the PICO_DEFAULT_UART configuration
|
||||
// is not currently referenced in machine_uart.c.
|
||||
#define MICROPY_HW_UART0_TX (0)
|
||||
#define MICROPY_HW_UART0_RX (1)
|
||||
#define MICROPY_HW_UART0_CTS (-1)
|
||||
#define MICROPY_HW_UART0_RTS (-1)
|
||||
@ -0,0 +1,2 @@
|
||||
# Set the ARM-based RP2350 platform
|
||||
set(PICO_PLATFORM "rp2350")
|
||||
@ -0,0 +1,2 @@
|
||||
# Set the RISC-V-based RP2350 platform
|
||||
set(PICO_PLATFORM "rp2350-riscv")
|
||||
1
ports/rp2/boards/WAVESHARE_RP2350B_CORE/pins.csv
Normal file
1
ports/rp2/boards/WAVESHARE_RP2350B_CORE/pins.csv
Normal file
@ -0,0 +1 @@
|
||||
LED,GPIO39
|
||||
|
@ -0,0 +1,60 @@
|
||||
#ifndef _BOARDS_WAVESHARE_RP2350B_CORE_COMMON_H
|
||||
#define _BOARDS_WAVESHARE_RP2350B_CORE_COMMON_H
|
||||
|
||||
// --- LED ---
|
||||
#ifndef PICO_DEFAULT_LED_PIN
|
||||
#define PICO_DEFAULT_LED_PIN 39
|
||||
#endif
|
||||
|
||||
// Note: Avoid using Pin 47 for any default peripheral since it can be used for
|
||||
// extra PSRAM/flash
|
||||
// NOTE that the PICO_DEFAULT_UART configuration
|
||||
// is not currently referenced in machine_uart.c.
|
||||
|
||||
// --- UART ---
|
||||
#ifndef PICO_DEFAULT_UART
|
||||
#define PICO_DEFAULT_UART 0
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_UART_TX_PIN
|
||||
#define PICO_DEFAULT_UART_TX_PIN 0
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_UART_RX_PIN
|
||||
#define PICO_DEFAULT_UART_RX_PIN 1
|
||||
#endif
|
||||
|
||||
// --- I2C ---
|
||||
#ifndef PICO_DEFAULT_I2C
|
||||
#define PICO_DEFAULT_I2C 0
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_I2C_SDA_PIN
|
||||
#define PICO_DEFAULT_I2C_SDA_PIN 8
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_I2C_SCL_PIN
|
||||
#define PICO_DEFAULT_I2C_SCL_PIN 9
|
||||
#endif
|
||||
|
||||
// --- SPI ---
|
||||
#ifndef PICO_DEFAULT_SPI
|
||||
#define PICO_DEFAULT_SPI 0
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_SPI_SCK_PIN
|
||||
#define PICO_DEFAULT_SPI_SCK_PIN 18
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_SPI_TX_PIN
|
||||
#define PICO_DEFAULT_SPI_TX_PIN 19
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_SPI_RX_PIN
|
||||
#define PICO_DEFAULT_SPI_RX_PIN 16
|
||||
#endif
|
||||
#ifndef PICO_DEFAULT_SPI_CSN_PIN
|
||||
#define PICO_DEFAULT_SPI_CSN_PIN 17
|
||||
#endif
|
||||
|
||||
// Flash configuration
|
||||
#define PICO_BOOT_STAGE2_CHOOSE_W25Q080 1
|
||||
|
||||
#ifndef PICO_FLASH_SPI_CLKDIV
|
||||
#define PICO_FLASH_SPI_CLKDIV 2
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user