Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Retarget MicroPython to upstream master. #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions boards/enable_cyw43.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Enable networking.
#define MICROPY_PY_NETWORK 1

#ifndef MICROPY_PY_NETWORK_HOSTNAME_DEFAULT
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "Pico"
#endif

// 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

#ifndef CYW43_WL_GPIO_COUNT
#define CYW43_WL_GPIO_COUNT 3
#endif

#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)
2 changes: 1 addition & 1 deletion boards/pico2_w_cosmic/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Enable networking.
#define MICROPY_PY_NETWORK_PPP_LWIP (1)
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "CosmicUnicorn2W"
#include "enable_cyw43.h"
#include "../enable_cyw43.h"

// For debugging mbedtls - also set
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
Expand Down
2 changes: 1 addition & 1 deletion boards/pico2_w_galactic/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Enable networking.
#define MICROPY_PY_NETWORK_PPP_LWIP (1)
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "GalacticUnicorn2W"
#include "enable_cyw43.h"
#include "../enable_cyw43.h"

// For debugging mbedtls - also set
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
Expand Down
2 changes: 1 addition & 1 deletion boards/pico2_w_stellar/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Enable networking.
#define MICROPY_PY_NETWORK_PPP_LWIP (1)
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "StellarUnicorn2W"
#include "enable_cyw43.h"
#include "../enable_cyw43.h"

// For debugging mbedtls - also set
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
Expand Down
2 changes: 1 addition & 1 deletion boards/pico_w_cosmic/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Enable networking.
#define MICROPY_PY_NETWORK_PPP_LWIP (1)
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "CosmicUnicorn"
#include "enable_cyw43.h"
#include "../enable_cyw43.h"

// For debugging mbedtls - also set
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
Expand Down
2 changes: 1 addition & 1 deletion boards/pico_w_galactic/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Enable networking.
#define MICROPY_PY_NETWORK_PPP_LWIP (1)
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "GalacticUnicorn"
#include "enable_cyw43.h"
#include "../enable_cyw43.h"

// For debugging mbedtls - also set
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
Expand Down
2 changes: 1 addition & 1 deletion boards/pico_w_stellar/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Enable networking.
#define MICROPY_PY_NETWORK_PPP_LWIP (1)
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "StellarUnicorn"
#include "enable_cyw43.h"
#include "../enable_cyw43.h"

// For debugging mbedtls - also set
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
Expand Down
4 changes: 2 additions & 2 deletions ci/micropython.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export TERM=${TERM:="xterm-256color"}

MICROPYTHON_FLAVOUR="peterharperuk"
MICROPYTHON_VERSION="pico2_w_changes"
MICROPYTHON_FLAVOUR="micropython"
MICROPYTHON_VERSION="master"

PIMORONI_PICO_FLAVOUR="pimoroni"
PIMORONI_PICO_VERSION="feature/picovector2-and-layers"
Expand Down