Skip to content

zshell: direct-UART transport backed by the zdevice UART driver #31

Description

@swoisz

Replace/augment the current VFS stdio polling transport (fgetc + 10 ms sleep in shell_stdio.c) with a shell_transport_uart backed by the zdevice UART driver's IRQ-mode API. Lives alongside shell_transport_stdio — users pick per-project. Estimated ~30 lines in a new shell_uart.c.

Unblocked by the UART driver (feature/uart branch).

Related shell_stdio.c housekeeping to fold in:

  • Drop unused #include <string.h>
  • Check the fcntl(F_SETFL) return in init — on failure stdin stays blocking and the shell thread can freeze; log + return -EIO
  • shell_stdio_write flushes stdout per write; revisit the call-site pattern when the UART transport lands

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions