Skip to content

Commit

Permalink
[hal/linux] avoid stdin for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
versaloon committed Aug 2, 2023
1 parent 3f261b1 commit 7b2b011
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/hal/driver/generic/linux/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ static void __vsf_linux_debug_stream_at_exit(void)
tcsetattr(STDIN_FILENO, TCSANOW, &__vsf_linux_original_term);
}

# ifndef __CPU_WEBASSEMBLY__
static void __vsf_linux_debug_stream_rx_irqhandler(void *arg)
{
vsf_arch_irq_thread_t *thread = arg;
Expand Down Expand Up @@ -164,12 +165,15 @@ static void __vsf_linux_debug_stream_rx_irqhandler(void *arg)
__vsf_arch_irq_end(thread, false);
}
}
# endif

static void __vsf_linux_debug_stream_init(void)
{
VSF_STREAM_CONNECT_TX(&VSF_DEBUG_STREAM_RX);
# ifndef __CPU_WEBASSEMBLY__
__vsf_arch_irq_init(&__vsf_linux_debug_stream_rx_irq, "debug_stream_rx",
__vsf_linux_debug_stream_rx_irqhandler, vsf_arch_prio_0);
# endif
}
# elif VSF_USE_STREAM == ENABLED
# endif
Expand Down

0 comments on commit 7b2b011

Please sign in to comment.