zephyr: Rename CONFIG_CONSOLE_PULL to CONFIG_CONSOLE_SUBSYS.

Following a similar change in the Zephyr Project.
This commit is contained in:
Damien George 2018-06-27 15:33:59 +10:00
parent 11a7a70a6f
commit 05e0103e9e
5 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -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();

View File

@ -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) {