Skip to content

Commit

Permalink
move uart tx. enable digitalio
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Dec 17, 2024
1 parent d9c05c5 commit e592db7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boards/pca10056/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define DEFAULT_UART_BUS_RX (&pin_P1_01)
#define DEFAULT_UART_BUS_TX (&pin_P1_02)

#define CIRCUITPY_CONSOLE_UART_TX (&pin_P0_06)
#define CIRCUITPY_CONSOLE_UART_TX (&pin_P1_01)
#define CIRCUITPY_CONSOLE_UART_RX (&pin_P0_08)

// Flash operation mode is determined by MICROPY_QSPI_DATAn pin configuration.
Expand Down
2 changes: 1 addition & 1 deletion ports/nordic/common-hal/digitalio/DigitalInOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "shared-bindings/digitalio/DigitalInOut.h"
#include "py/runtime.h"

#include "nrf_gpio.h"
#include <hal/nrf_gpio.h>

void common_hal_digitalio_digitalinout_never_reset(
digitalio_digitalinout_obj_t *self) {
Expand Down
3 changes: 3 additions & 0 deletions prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ CONFIG_RING_BUFFER=y
CONFIG_NRFX_UARTE0=y
CONFIG_NRFX_UARTE1=y
CONFIG_DYNAMIC_INTERRUPTS=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_SWO=n
3 changes: 3 additions & 0 deletions tools/cpbuild/build_circuitpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,15 @@ async def build_circuitpython():
f"ports/{port}/common-hal/os/__init__.c",
"supervisor/stub/misc.c",
"shared/readline/readline.c",
"shared/runtime/context_manager_helpers.c",
"shared/runtime/pyexec.c",
"shared/runtime/interrupt_char.c",
"shared/runtime/stdout_helpers.c",
"shared/runtime/sys_stdio_mphal.c",
"shared-bindings/board/__init__.c",
"shared-bindings/supervisor/Runtime.c",
"shared-bindings/microcontroller/Pin.c",
"shared-bindings/util.c",
"shared-module/board/__init__.c",
"extmod/vfs_reader.c",
"extmod/vfs_blockdev.c",
Expand All @@ -227,6 +229,7 @@ async def build_circuitpython():
# Load the toml settings
kwargs = {}
kwargs["busio"] = True
kwargs["digitalio"] = True
with open(srcdir / "boards" / board / "mpconfigboard.toml", "rb") as f:
mpconfigboard = tomllib.load(f)
if usb_num_endpoint_pairs > 0:
Expand Down

0 comments on commit e592db7

Please sign in to comment.