-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since both PPP2 or Plasma2350 have a SP/CE connector, enable WiFi in all cases. Additionally enable PPP in all cases. Finally, drop the non-PSRAM build. (TBC if it returns, since it's less RAM but faster.)
- Loading branch information
Showing
18 changed files
with
228 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
require("bundle-networking") | ||
|
||
# Bluetooth | ||
require("aioble") | ||
|
||
include("$(PORT_DIR)/boards/manifest.py") | ||
|
||
include("../manifest_pico2.py") | ||
include("../manifest_pico2.py") | ||
|
||
freeze("$(BOARD_DIR)/../../modules_py", "lte.py") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,39 @@ | ||
# cmake file for Raspberry Pi Pico | ||
set(PICO_BOARD "pimoroni_pico_plus2_rp2350") | ||
set(PICO_BOARD "pimoroni_pico_plus2w_rp2350") | ||
set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}) | ||
set(PICO_PLATFORM "rp2350") | ||
set(PICO_NUM_GPIOS 48) | ||
|
||
# Board specific version of the frozen manifest | ||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py) | ||
|
||
set(MICROPY_C_HEAP_SIZE 4096) | ||
|
||
# Links micropy_lib_lwip and sets MICROPY_PY_LWIP = 1 | ||
# Picked up and expanded upon in mpconfigboard.h | ||
set(MICROPY_PY_LWIP ON) | ||
|
||
# Links cyw43-driver and sets: | ||
# MICROPY_PY_NETWORK_CYW43 = 1, | ||
# MICROPY_PY_SOCKET_DEFAULT_TIMEOUT_MS = 30000 | ||
set(MICROPY_PY_NETWORK_CYW43 ON) | ||
|
||
# Adds mpbthciport.c | ||
# And sets: | ||
# MICROPY_PY_BLUETOOTH = 1, | ||
# MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS = 1, | ||
# MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE = 1 | ||
set(MICROPY_PY_BLUETOOTH ON) | ||
|
||
# Links pico_btstack_hci_transport_cyw43 | ||
# And sets: | ||
# MICROPY_BLUETOOTH_BTSTACK = 1, | ||
# MICROPY_BLUETOOTH_BTSTACK_CONFIG_FILE = | ||
set(MICROPY_BLUETOOTH_BTSTACK ON) | ||
|
||
# Sets: | ||
# CYW43_ENABLE_BLUETOOTH = 1, | ||
# MICROPY_PY_BLUETOOTH_CYW43 = 1 | ||
set(MICROPY_PY_BLUETOOTH_CYW43 ON) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,31 @@ | ||
// Board and hardware specific configuration | ||
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024)) | ||
|
||
#define MICROPY_HW_PSRAM_CS_PIN PIMORONI_PICO_PLUS2_PSRAM_CS_PIN | ||
|
||
#ifndef CYW43_WL_GPIO_COUNT | ||
// Effecively remaps LEDW,EXT_GPIO0 to GPIO25 on non-W builds | ||
#define pin_EXT_GPIO0 pin_GPIO25 | ||
// Shim the EXT GPIOs because we can't specify a variant pins.csv | ||
#define pin_EXT_GPIO1 pin_GPIO1 | ||
#define pin_EXT_GPIO2 pin_GPIO2 | ||
#endif | ||
|
||
// Might be defined in mpconfigvariant_PSRAM.cmake | ||
// or mpconfigvariant_WIRELESS.cmake | ||
#if defined(MICROPY_HW_ENABLE_PSRAM) | ||
|
||
#define MICROPY_GC_SPLIT_HEAP (1) | ||
|
||
#endif | ||
|
||
// Set up networking. | ||
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "PPP2" | ||
|
||
#if defined(MICROPY_PY_NETWORK_CYW43) | ||
#define MICROPY_HW_BOARD_NAME "Pimoroni Pico Plus 2 (PSRAM + LTE + WiFi)" | ||
|
||
// Enable WiFi & PPP | ||
#define MICROPY_PY_NETWORK (1) | ||
#define MICROPY_PY_NETWORK_PPP_LWIP (1) | ||
|
||
// CYW43 driver configuration. | ||
#define CYW43_USE_SPI (1) | ||
#define CYW43_LWIP (1) | ||
#define CYW43_GPIO (1) | ||
#define CYW43_SPI_PIO (1) | ||
|
||
#define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT | ||
|
||
#if defined(CYW43_PIN_WL_DYNAMIC) | ||
|
||
#define CYW43_PIO_CLOCK_DIV_DYNAMIC (1) | ||
|
||
// Defined by pimoroni_pico_plus2w_rp2350.h | ||
//#define CYW43_DEFAULT_PIN_WL_HOST_WAKE SPICE_RESET_MOSI_PIN | ||
//#define CYW43_DEFAULT_PIN_WL_REG_ON SPICE_TX_MISO_PIN | ||
#define CYW43_DEFAULT_PIN_WL_DATA_OUT CYW43_DEFAULT_PIN_WL_HOST_WAKE | ||
#define CYW43_DEFAULT_PIN_WL_DATA_IN CYW43_DEFAULT_PIN_WL_HOST_WAKE | ||
#define CYW43_DEFAULT_PIN_WL_CLOCK 29u | ||
#define CYW43_DEFAULT_PIN_WL_CS 25u | ||
|
||
/* SPICE alternative | ||
#define CYW43_DEFAULT_PIN_WL_HOST_WAKE SPICE_RESET_MOSI_PIN | ||
#define CYW43_DEFAULT_PIN_WL_REG_ON SPICE_TX_MISO_PIN | ||
#define CYW43_DEFAULT_PIN_WL_DATA_OUT SPICE_RESET_MOSI_PIN | ||
#define CYW43_DEFAULT_PIN_WL_DATA_IN SPICE_RESET_MOSI_PIN | ||
#define CYW43_DEFAULT_PIN_WL_CLOCK SPICE_NETLIGHT_SCK_PIN | ||
#define CYW43_DEFAULT_PIN_WL_CS SPICE_RX_CS_PIN | ||
*/ | ||
|
||
// Slow down the wireless clock, since we'll be running | ||
// comms through wiring spaghetti! | ||
#define CYW43_PIO_CLOCK_DIV_INT 50 | ||
#define CYW43_PIO_CLOCK_DIV_FRAC 0 | ||
#define CYW43_SPI_PROGRAM_NAME spi_gap0_sample1 | ||
|
||
#endif | ||
|
||
#endif | ||
|
||
// Might be defined in mpconfigvariant_PPP.cmake | ||
// This is not checked by mpconfigport.h so we must set up networking below | ||
#if defined(MICROPY_PY_NETWORK_PPP_LWIP) | ||
|
||
// Nothing to do here? | ||
|
||
#ifndef CYW43_WL_GPIO_COUNT | ||
#define CYW43_WL_GPIO_COUNT 3 | ||
#endif | ||
|
||
// If a variant is not used, define a fallback board name | ||
#ifndef MICROPY_HW_BOARD_NAME | ||
#define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT | ||
|
||
#define MICROPY_HW_BOARD_NAME "Pimoroni Pico Plus 2" | ||
int mp_hal_is_pin_reserved(int n); | ||
#define MICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i) | ||
|
||
#endif | ||
// PSRAM Settings | ||
#define MICROPY_HW_ENABLE_PSRAM (1) | ||
#define MICROPY_HW_PSRAM_CS_PIN PIMORONI_PICO_PLUS2_PSRAM_CS_PIN | ||
#define MICROPY_GC_SPLIT_HEAP (1) |
Empty file.
6 changes: 0 additions & 6 deletions
6
micropython/board/PIMORONI_PICO_PLUS2/mpconfigvariant_PSRAM.cmake
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
micropython/board/PIMORONI_PICO_PLUS2/mpconfigvariant_WIRELESS.cmake
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
require("bundle-networking") | ||
|
||
# Bluetooth | ||
require("aioble") | ||
|
||
include("$(PORT_DIR)/boards/manifest.py") | ||
|
||
include("../manifest_pico2.py") | ||
include("../manifest_pico2.py") | ||
|
||
freeze("$(BOARD_DIR)/../../modules_py", "lte.py") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,37 @@ | ||
# cmake file for Raspberry Pi Pico | ||
set(PICO_BOARD "pimoroni_plasma2350") | ||
# cmake file for Pimoroni Plasma 2350 | ||
set(PICO_BOARD "pimoroni_plasma2350w") | ||
set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}) | ||
set(PICO_PLATFORM "rp2350") | ||
|
||
# Board specific version of the frozen manifest | ||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py) | ||
|
||
set(MICROPY_C_HEAP_SIZE 4096) | ||
|
||
set(PICO_BOARD "pimoroni_plasma2350") | ||
set(PICO_BOARD_HEADER_DIRS ${CMAKE_CURRENT_LIST_DIR}) | ||
# Links micropy_lib_lwip and sets MICROPY_PY_LWIP = 1 | ||
# Picked up and expanded upon in mpconfigboard.h | ||
set(MICROPY_PY_LWIP ON) | ||
|
||
# Links cyw43-driver and sets: | ||
# MICROPY_PY_NETWORK_CYW43 = 1, | ||
# MICROPY_PY_SOCKET_DEFAULT_TIMEOUT_MS = 30000 | ||
set(MICROPY_PY_NETWORK_CYW43 ON) | ||
|
||
# Adds mpbthciport.c | ||
# And sets: | ||
# MICROPY_PY_BLUETOOTH = 1, | ||
# MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS = 1, | ||
# MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE = 1 | ||
set(MICROPY_PY_BLUETOOTH ON) | ||
|
||
# Links pico_btstack_hci_transport_cyw43 | ||
# And sets: | ||
# MICROPY_BLUETOOTH_BTSTACK = 1, | ||
# MICROPY_BLUETOOTH_BTSTACK_CONFIG_FILE = | ||
set(MICROPY_BLUETOOTH_BTSTACK ON) | ||
|
||
# Sets: | ||
# CYW43_ENABLE_BLUETOOTH = 1, | ||
# MICROPY_PY_BLUETOOTH_CYW43 = 1 | ||
set(MICROPY_PY_BLUETOOTH_CYW43 ON) | ||
|
Oops, something went wrong.