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 haven't started on the SPI implementation yet, but I will be operating the modem as a SPI slave, where the SPI packet will probably have the packet length as the first byte, then then ascii commands after that. Those ascii commands are what will be passed into the "shell_execute_cmd()" function. Reponses from the shell_backend_dummy_get_output() function will be stored in a buffer that will be transmitted out when the SPI master requests it. 

Children
Related