Skip to content

Commit a386863

Browse files
committed
fix: lower compiler optimization to -O2 for wiznet_w55rp20_evb_pico
1 parent 7aa13ed commit a386863

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

ports/raspberrypi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ INC_WIZNET := \
8989

9090
SRC_WIZNET := \
9191
common-hal/wiznet/wizchip_pio_spi.c \
92-
92+
9393
WIZNET_PIOASM = $(BUILD)/pioasm/pioasm/pioasm
9494
.PHONY: pioasmBuild
9595
pioasmBuild: $(WIZNET_PIOASM)

ports/raspberrypi/bindings/wiznet/PIO_SPI.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//
55
// SPDX-License-Identifier: MIT
66

7-
//TODO: busio.WIZNET_PIO_SPI class.
7+
// TODO: wiznet.PIO_SPI class.
88
// This file contains all of the Python API definitions for the
9-
// busio.WIZNET_PIO_SPI class.
9+
// wiznet.PIO_SPI class.
1010

1111
#include <string.h>
1212

@@ -22,7 +22,7 @@
2222
#include "py/runtime.h"
2323

2424

25-
//TODO: class WIZNET_PIO_SPI
25+
// TODO: class WIZNET_PIO_SPI
2626

2727

2828
static mp_obj_t wiznet_pio_spi_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
@@ -292,7 +292,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
292292
MP_TYPE_FLAG_NONE,
293293
make_new, wiznet_pio_spi_make_new,
294294
locals_dict, &wiznet_pio_spi_locals_dict
295-
);
295+
);
296296

297297
wiznet_pio_spi_obj_t *validate_obj_is_wiznet_pio_spi_bus(mp_obj_t obj, qstr arg_name) {
298298
return mp_arg_validate_type(obj, &wiznet_pio_spi_type, arg_name);

ports/raspberrypi/boards/wiznet_w55rp20_evb_pico/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ CIRCUITPY_WIZNET = 1
1212
CIRCUITPY__EVE = 1
1313
CIRCUITPY_SSL = 1
1414
CIRCUITPY_USB_HOST = 0
15+
16+
OPTIMIZATION_FLAGS = -O2

0 commit comments

Comments
 (0)