Skip to content

Commit

Permalink
adjust naming of stdio device path macros
Browse files Browse the repository at this point in the history
  • Loading branch information
shengwen-tw committed Nov 30, 2023
1 parent 595265b commit e973736
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions kconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
#define SIGNAL_QUEUE_SIZE 5

/* Standard I/O (Use /dev/null if not implemented) */
#define STDIN_DEV_PATH "/dev/serial0"
#define STDOUT_DEV_PATH "/dev/serial0"
#define STDERR_DEV_PATH "/dev/serial0"
#define STDIN_PATH "/dev/serial0"
#define STDOUT_PATH "/dev/serial0"
#define STDERR_PATH "/dev/serial0"

#define PRINT_SIZE_MAX 100 /* Buffer size of the printf and printk */

Expand Down
6 changes: 3 additions & 3 deletions kernel/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2750,9 +2750,9 @@ static void *init(void *arg)
__board_init();
rom_dev_init();
null_dev_init();
link_stdin_dev(STDIN_DEV_PATH);
link_stdout_dev(STDOUT_DEV_PATH);
link_stderr_dev(STDERR_DEV_PATH);
link_stdin_dev(STDIN_PATH);
link_stdout_dev(STDOUT_PATH);
link_stderr_dev(STDERR_PATH);
printkd_start();
}
preempt_enable();
Expand Down

0 comments on commit e973736

Please sign in to comment.