Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7582d7a

Browse files
committed
rp2: Add RPI_PICO2_W.
Reserve 1536KB for the future.Signed-off-by: Peter Harper <peter.harper@raspberrypi.com>
1 parentffb0fbb commit7582d7a

File tree

6 files changed

+97
-1
lines changed

6 files changed

+97
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Board and hardware specific configuration
22
#defineMICROPY_HW_BOARD_NAME "Raspberry Pi Pico2"
3-
#defineMICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES -1024 * 1024)
3+
#defineMICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES -(1536 * 1024))
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"docs":"",
6+
"features": [
7+
"BLE",
8+
"Dual-core",
9+
"External Flash",
10+
"USB",
11+
"WiFi"
12+
],
13+
"images": [
14+
"rp2-pico2-w.jpg"
15+
],
16+
"mcu":"rp2350",
17+
"product":"Pico 2 W",
18+
"thumbnail":"",
19+
"url":"https://www.raspberrypi.com/products/raspberry-pi-pico-2/",
20+
"vendor":"Raspberry Pi"
21+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include("$(PORT_DIR)/boards/manifest.py")
2+
3+
require("bundle-networking")
4+
5+
# Bluetooth
6+
require("aioble")
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# cmake file for Raspberry Pi Pico 2 W
2+
3+
set(PICO_BOARD"pico2_w")
4+
5+
# To change the gpio count for QFN-80
6+
# set(PICO_NUM_GPIOS 48)
7+
8+
set(MICROPY_PY_LWIPON)
9+
set(MICROPY_PY_NETWORK_CYW43ON)
10+
11+
# Bluetooth
12+
set(MICROPY_PY_BLUETOOTHON)
13+
set(MICROPY_BLUETOOTH_BTSTACKON)
14+
set(MICROPY_PY_BLUETOOTH_CYW43ON)
15+
16+
# Board specific version of the frozen manifest
17+
set(MICROPY_FROZEN_MANIFEST${MICROPY_BOARD_DIR}/manifest.py)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Board and hardware specific configuration
2+
#defineMICROPY_HW_BOARD_NAME "Raspberry Pi Pico 2 W"
3+
#defineMICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - 1024 * 1024)
4+
5+
// Enable networking.
6+
#defineMICROPY_PY_NETWORK 1
7+
#defineMICROPY_PY_NETWORK_HOSTNAME_DEFAULT "Pico2W"
8+
9+
// CYW43 driver configuration.
10+
#defineCYW43_USE_SPI (1)
11+
#defineCYW43_LWIP (1)
12+
#defineCYW43_GPIO (1)
13+
#defineCYW43_SPI_PIO (1)
14+
15+
// For debugging mbedtls - also set
16+
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
17+
// #define MODUSSL_MBEDTLS_DEBUG_LEVEL 1
18+
19+
#defineMICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT
20+
21+
intmp_hal_is_pin_reserved(intn);
22+
#defineMICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i)

‎ports/rp2/boards/RPI_PICO2_W/pins.csv

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
GP0,GPIO0
2+
GP1,GPIO1
3+
GP2,GPIO2
4+
GP3,GPIO3
5+
GP4,GPIO4
6+
GP5,GPIO5
7+
GP6,GPIO6
8+
GP7,GPIO7
9+
GP8,GPIO8
10+
GP9,GPIO9
11+
GP10,GPIO10
12+
GP11,GPIO11
13+
GP12,GPIO12
14+
GP13,GPIO13
15+
GP14,GPIO14
16+
GP15,GPIO15
17+
GP16,GPIO16
18+
GP17,GPIO17
19+
GP18,GPIO18
20+
GP19,GPIO19
21+
GP20,GPIO20
22+
GP21,GPIO21
23+
GP22,GPIO22
24+
GP26,GPIO26
25+
GP27,GPIO27
26+
GP28,GPIO28
27+
WL_GPIO0,EXT_GPIO0
28+
WL_GPIO1,EXT_GPIO1
29+
WL_GPIO2,EXT_GPIO2
30+
LED,EXT_GPIO0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp