[riot-devel] How does the Border router excute the command that ethos sends?

Kaspar Schleiser kaspar at schleiser.de
Wed Jun 15 17:43:24 CEST 2016


Hi,

On 06/15/2016 05:30 PM, Jianwen Ouyang wrote:
> And my question is how this ringbuffer related to the function which I
> defined in "shell_commands[]" array?

The ringbuffer is is used to buffer incoming UART bytes for consumption.

In main(), the function shell_run() is called which starts the shell
loop, which in turn will read() all bytes from the ringbuffer, parse
command names and finally execute the functions from shell_commands[].

Kaspar


More information about the devel mailing list