mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
rp2/boards/RPI_PICO2_W: Add new Pico 2 W board definition.
Signed-off-by: Peter Harper <peter.harper@raspberrypi.com>
This commit is contained in:
committed by
Damien George
parent
4a6c246008
commit
1b611dab03
21
ports/rp2/boards/RPI_PICO2_W/board.json
Normal file
21
ports/rp2/boards/RPI_PICO2_W/board.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"deploy": [
|
||||
"../deploy.md"
|
||||
],
|
||||
"docs": "",
|
||||
"features": [
|
||||
"BLE",
|
||||
"Dual-core",
|
||||
"External Flash",
|
||||
"USB",
|
||||
"WiFi"
|
||||
],
|
||||
"images": [
|
||||
"rp2-pico2-w.jpg"
|
||||
],
|
||||
"mcu": "rp2350",
|
||||
"product": "Pico 2 W",
|
||||
"thumbnail": "",
|
||||
"url": "https://www.raspberrypi.com/products/raspberry-pi-pico-2/",
|
||||
"vendor": "Raspberry Pi"
|
||||
}
|
||||
6
ports/rp2/boards/RPI_PICO2_W/manifest.py
Normal file
6
ports/rp2/boards/RPI_PICO2_W/manifest.py
Normal file
@@ -0,0 +1,6 @@
|
||||
include("$(PORT_DIR)/boards/manifest.py")
|
||||
|
||||
require("bundle-networking")
|
||||
|
||||
# Bluetooth
|
||||
require("aioble")
|
||||
17
ports/rp2/boards/RPI_PICO2_W/mpconfigboard.cmake
Normal file
17
ports/rp2/boards/RPI_PICO2_W/mpconfigboard.cmake
Normal file
@@ -0,0 +1,17 @@
|
||||
# cmake file for Raspberry Pi Pico 2 W
|
||||
|
||||
set(PICO_BOARD "pico2_w")
|
||||
|
||||
# To change the gpio count for QFN-80
|
||||
# set(PICO_NUM_GPIOS 48)
|
||||
|
||||
set(MICROPY_PY_LWIP ON)
|
||||
set(MICROPY_PY_NETWORK_CYW43 ON)
|
||||
|
||||
# Bluetooth
|
||||
set(MICROPY_PY_BLUETOOTH ON)
|
||||
set(MICROPY_BLUETOOTH_BTSTACK ON)
|
||||
set(MICROPY_PY_BLUETOOTH_CYW43 ON)
|
||||
|
||||
# Board specific version of the frozen manifest
|
||||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
|
||||
22
ports/rp2/boards/RPI_PICO2_W/mpconfigboard.h
Normal file
22
ports/rp2/boards/RPI_PICO2_W/mpconfigboard.h
Normal file
@@ -0,0 +1,22 @@
|
||||
// Board and hardware specific configuration
|
||||
#define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico 2 W"
|
||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - 1536 * 1024)
|
||||
|
||||
// Enable networking.
|
||||
#define MICROPY_PY_NETWORK 1
|
||||
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "Pico2W"
|
||||
|
||||
// CYW43 driver configuration.
|
||||
#define CYW43_USE_SPI (1)
|
||||
#define CYW43_LWIP (1)
|
||||
#define CYW43_GPIO (1)
|
||||
#define CYW43_SPI_PIO (1)
|
||||
|
||||
// For debugging mbedtls - also set
|
||||
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
|
||||
// #define MODUSSL_MBEDTLS_DEBUG_LEVEL 1
|
||||
|
||||
#define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT
|
||||
|
||||
int mp_hal_is_pin_reserved(int n);
|
||||
#define MICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i)
|
||||
1
ports/rp2/boards/RPI_PICO2_W/mpconfigvariant.cmake
Normal file
1
ports/rp2/boards/RPI_PICO2_W/mpconfigvariant.cmake
Normal file
@@ -0,0 +1 @@
|
||||
set(PICO_PLATFORM "rp2350")
|
||||
30
ports/rp2/boards/RPI_PICO2_W/pins.csv
Normal file
30
ports/rp2/boards/RPI_PICO2_W/pins.csv
Normal file
@@ -0,0 +1,30 @@
|
||||
GP0,GPIO0
|
||||
GP1,GPIO1
|
||||
GP2,GPIO2
|
||||
GP3,GPIO3
|
||||
GP4,GPIO4
|
||||
GP5,GPIO5
|
||||
GP6,GPIO6
|
||||
GP7,GPIO7
|
||||
GP8,GPIO8
|
||||
GP9,GPIO9
|
||||
GP10,GPIO10
|
||||
GP11,GPIO11
|
||||
GP12,GPIO12
|
||||
GP13,GPIO13
|
||||
GP14,GPIO14
|
||||
GP15,GPIO15
|
||||
GP16,GPIO16
|
||||
GP17,GPIO17
|
||||
GP18,GPIO18
|
||||
GP19,GPIO19
|
||||
GP20,GPIO20
|
||||
GP21,GPIO21
|
||||
GP22,GPIO22
|
||||
GP26,GPIO26
|
||||
GP27,GPIO27
|
||||
GP28,GPIO28
|
||||
WL_GPIO0,EXT_GPIO0
|
||||
WL_GPIO1,EXT_GPIO1
|
||||
WL_GPIO2,EXT_GPIO2
|
||||
LED,EXT_GPIO0
|
||||
|
Reference in New Issue
Block a user