Pico Plus 2: Add a PPP variant.
This commit is contained in:
parent
e569b73c5f
commit
83efc710af
3
.github/workflows/micropython.yml
vendored
3
.github/workflows/micropython.yml
vendored
@ -30,6 +30,9 @@ jobs:
|
|||||||
- name: pico_plus2_rp2350_psram
|
- name: pico_plus2_rp2350_psram
|
||||||
board: PIMORONI_PICO_PLUS2
|
board: PIMORONI_PICO_PLUS2
|
||||||
variant: PSRAM
|
variant: PSRAM
|
||||||
|
- name: pico_plus2_rp2350_psram_n_ppp
|
||||||
|
board: PIMORONI_PICO_PLUS2
|
||||||
|
variant: PPP
|
||||||
- name: pico_plus2_rp2350
|
- name: pico_plus2_rp2350
|
||||||
board: PIMORONI_PICO_PLUS2
|
board: PIMORONI_PICO_PLUS2
|
||||||
|
|
||||||
|
|||||||
3
micropython/board/PIMORONI_PICO_PLUS2/manifest-ppp.py
Normal file
3
micropython/board/PIMORONI_PICO_PLUS2/manifest-ppp.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
require("bundle-networking")
|
||||||
|
|
||||||
|
include("manifest.py")
|
||||||
@ -6,3 +6,20 @@
|
|||||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (PICO_FLASH_SIZE_BYTES - (2 * 1024 * 1024))
|
#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
|
#define MICROPY_HW_PSRAM_CS_PIN PIMORONI_PICO_PLUS2_PSRAM_CS_PIN
|
||||||
|
|
||||||
|
#ifdef PPP_ENABLE_PPP
|
||||||
|
|
||||||
|
// Enable networking.
|
||||||
|
#define MICROPY_PY_NETWORK 1
|
||||||
|
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "Pico"
|
||||||
|
|
||||||
|
#define MICROPY_PY_NETWORK_PPP_LWIP 1
|
||||||
|
|
||||||
|
#define MICROPY_HW_NIC_PPP { MP_ROM_QSTR(MP_QSTR_PINT), MP_ROM_PTR(&mp_network_ppp_lwip_type) },
|
||||||
|
|
||||||
|
#define MICROPY_BOARD_NETWORK_INTERFACES \
|
||||||
|
MICROPY_HW_NIC_PPP
|
||||||
|
|
||||||
|
#define MICROPY_PY_SOCKET_EXTENDED_STATE 1
|
||||||
|
|
||||||
|
#endif
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
# Override the MicroPython board name
|
||||||
|
list(APPEND MICROPY_DEF_BOARD
|
||||||
|
"MICROPY_HW_ENABLE_PSRAM=1"
|
||||||
|
"MICROPY_GC_SPLIT_HEAP=1"
|
||||||
|
"MICROPY_HW_BOARD_NAME=\"Pimoroni Pico Plus 2 (PSRAM)\""
|
||||||
|
"PPP_ENABLE_PPP=1"
|
||||||
|
)
|
||||||
|
|
||||||
|
set(MICROPY_PY_LWIP ON)
|
||||||
|
|
||||||
|
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest-ppp.py)
|
||||||
Loading…
Reference in New Issue
Block a user