summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/zephyr/prj_base.conf2
-rw-r--r--ports/zephyr/prj_qemu_cortex_m3.conf2
-rw-r--r--ports/zephyr/prj_qemu_x86.conf2
-rw-r--r--ports/zephyr/src/zephyr_start.c2
-rw-r--r--ports/zephyr/uart_core.c4
5 files changed, 6 insertions, 6 deletions
diff --git a/ports/zephyr/prj_base.conf b/ports/zephyr/prj_base.conf
index 49c851992..1b8b4ec40 100644
--- a/ports/zephyr/prj_base.conf
+++ b/ports/zephyr/prj_base.conf
@@ -5,7 +5,7 @@ CONFIG_STDOUT_CONSOLE=y
CONFIG_CONSOLE_HANDLER=y
CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS=y
-CONFIG_CONSOLE_PULL=y
+CONFIG_CONSOLE_SUBSYS=y
CONFIG_CONSOLE_GETCHAR=y
CONFIG_CONSOLE_GETCHAR_BUFSIZE=128
CONFIG_CONSOLE_PUTCHAR_BUFSIZE=128
diff --git a/ports/zephyr/prj_qemu_cortex_m3.conf b/ports/zephyr/prj_qemu_cortex_m3.conf
index 1ade981e2..dac0c358d 100644
--- a/ports/zephyr/prj_qemu_cortex_m3.conf
+++ b/ports/zephyr/prj_qemu_cortex_m3.conf
@@ -1,6 +1,6 @@
# Interrupt-driven UART console has emulation artifacts under QEMU,
# disable it
-CONFIG_CONSOLE_PULL=n
+CONFIG_CONSOLE_SUBSYS=n
# Networking drivers
# SLIP driver for QEMU
diff --git a/ports/zephyr/prj_qemu_x86.conf b/ports/zephyr/prj_qemu_x86.conf
index 1ade981e2..dac0c358d 100644
--- a/ports/zephyr/prj_qemu_x86.conf
+++ b/ports/zephyr/prj_qemu_x86.conf
@@ -1,6 +1,6 @@
# Interrupt-driven UART console has emulation artifacts under QEMU,
# disable it
-CONFIG_CONSOLE_PULL=n
+CONFIG_CONSOLE_SUBSYS=n
# Networking drivers
# SLIP driver for QEMU
diff --git a/ports/zephyr/src/zephyr_start.c b/ports/zephyr/src/zephyr_start.c
index 452e304ca..591eec76b 100644
--- a/ports/zephyr/src/zephyr_start.c
+++ b/ports/zephyr/src/zephyr_start.c
@@ -30,7 +30,7 @@
int real_main(void);
void main(void) {
-#ifdef CONFIG_CONSOLE_PULL
+#ifdef CONFIG_CONSOLE_SUBSYS
console_init();
#else
zephyr_getchar_init();
diff --git a/ports/zephyr/uart_core.c b/ports/zephyr/uart_core.c
index e41fb9acc..325e43743 100644
--- a/ports/zephyr/uart_core.c
+++ b/ports/zephyr/uart_core.c
@@ -36,7 +36,7 @@
// Receive single character
int mp_hal_stdin_rx_chr(void) {
-#ifdef CONFIG_CONSOLE_PULL
+#ifdef CONFIG_CONSOLE_SUBSYS
return console_getchar();
#else
return zephyr_getchar();
@@ -45,7 +45,7 @@ int mp_hal_stdin_rx_chr(void) {
// Send string of given length
void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) {
-#ifdef CONFIG_CONSOLE_PULL
+#ifdef CONFIG_CONSOLE_SUBSYS
while (len--) {
char c = *str++;
while (console_putchar(c) == -1) {