Zephyr Shell with custom interface transport layer

I want to use the Zephyr Shell with my own transport layer. Since the only connection I will have to the modem is over SPI, I want to have the SPI read/writes handled with custom interface functions that replace, for example, the UART interface.

How can I make my own interface functions for the Zephyr shell?

Parents Reply
  • I've seen that list of supported transport layers before, but I want a custom interface, something that I can just pass messages to and from directly in software (instead of directly through the UART, for example). That way my SPI receive functions can just pass the ascii text commands to the shell, and then the shell ascii text response can be passed into the SPI transmit functions, completely transparent to the shell.

    I took a look at the GPIO examples, and I think I already understand how to make my own custom commands, its just using a custom physical interface that is holding me back right now.

Children
Related