-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #947 from pimoroni/test/network-ppp
PPP-enabled Pico build.
- Loading branch information
Showing
13 changed files
with
327 additions
and
43 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 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"deploy": [ | ||
"../deploy.md" | ||
], | ||
"docs": "", | ||
"features": [ | ||
"Breadboard friendly", | ||
"Castellated Pads", | ||
"Micro USB" | ||
], | ||
"id": "rp2-pico", | ||
"images": [ | ||
"rp2-pico.jpg" | ||
], | ||
"mcu": "rp2040", | ||
"product": "Pico", | ||
"thumbnail": "", | ||
"url": "https://www.raspberrypi.com/products/raspberry-pi-pico/", | ||
"vendor": "Raspberry Pi" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include("$(PORT_DIR)/boards/manifest.py") | ||
|
||
require("bundle-networking") | ||
|
||
include("../manifest_pico.py") | ||
|
||
freeze("../../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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# cmake file for Raspberry Pi Pico | ||
set(PICO_BOARD "pico") | ||
|
||
set(MICROPY_PY_LWIP ON) | ||
|
||
# Board specific version of the frozen manifest | ||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py) | ||
|
||
set(MICROPY_C_HEAP_SIZE 4096) |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Board and hardware specific configuration | ||
#define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico" | ||
#define MICROPY_HW_FLASH_STORAGE_BYTES (1024 * 1024) | ||
|
||
// 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 |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 | ||
GP25,GPIO25 | ||
GP26,GPIO26 | ||
GP27,GPIO27 | ||
GP28,GPIO28 | ||
LED,GPIO25 |
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 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 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
include_directories(${CMAKE_CURRENT_LIST_DIR}/../../) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../") | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../") | ||
|
||
set(CMAKE_C_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
include(micropython-common) | ||
|
||
# C++ Magic Memory | ||
include(cppmem/micropython) | ||
|
||
# Disable build-busting C++ exceptions | ||
include(micropython-disable-exceptions) |
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
Oops, something went wrong.