rp2/boards/WAVESHARE_RP2040_PLUS: Add Waveshare RP2040 Plus 4M and 16M.
Includes 4MB and 16MB variants. Signed-off-by: EngWill <646689853@qq.com> Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
1968b964f3
commit
8cbd320809
23
ports/rp2/boards/WAVESHARE_RP2040_PLUS/board.json
Normal file
23
ports/rp2/boards/WAVESHARE_RP2040_PLUS/board.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"deploy": [
|
||||
"../deploy.md"
|
||||
],
|
||||
"docs": "",
|
||||
"features": [
|
||||
"Dual-core",
|
||||
"Battery Charging",
|
||||
"External Flash",
|
||||
"USB-C"
|
||||
],
|
||||
"images": [
|
||||
"rp2040-plus-1.jpg"
|
||||
],
|
||||
"mcu": "rp2040",
|
||||
"product": "RP2040-Plus",
|
||||
"thumbnail": "",
|
||||
"url": "https://www.waveshare.com/rp2040-plus.htm",
|
||||
"variants": {
|
||||
"FLASH_16M": "16 MiB Flash"
|
||||
},
|
||||
"vendor": "Waveshare"
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
# cmake file for Waveshare RP2040-Plus
|
||||
7
ports/rp2/boards/WAVESHARE_RP2040_PLUS/mpconfigboard.h
Normal file
7
ports/rp2/boards/WAVESHARE_RP2040_PLUS/mpconfigboard.h
Normal file
@ -0,0 +1,7 @@
|
||||
// url : https://www.waveshare.com/product/rp2040-plus.htm
|
||||
// wiki : https://www.waveshare.com/wiki/RP2040-Plus
|
||||
|
||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (1 * 1024 * 1024))
|
||||
|
||||
#define MICROPY_HW_USB_VID (0x2E8A)
|
||||
#define MICROPY_HW_USB_PID (0x1020)
|
||||
@ -0,0 +1,5 @@
|
||||
set(PICO_BOARD "waveshare_rp2040_plus_4mb")
|
||||
|
||||
list(APPEND MICROPY_DEF_BOARD
|
||||
MICROPY_HW_BOARD_NAME="Waveshare RP2040-Plus 4MB"
|
||||
)
|
||||
@ -0,0 +1,5 @@
|
||||
set(PICO_BOARD "waveshare_rp2040_plus_16mb")
|
||||
|
||||
list(APPEND MICROPY_DEF_BOARD
|
||||
MICROPY_HW_BOARD_NAME="Waveshare RP2040-Plus 16MB"
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user