Commit Graph

4 Commits

Author SHA1 Message Date
Angelos Oikonomopoulos 45b0241f94 Introduce dynamically registered shell command sets
Commands are part of a single array, which means that their definition
is static. However, different apps in the same source tree may
reasonably want to add to the command set (perhaps even shadow existing
commands), which would make for awkward code.

Instead, allow dynamic registration/deregistration of command sets at
runtime. This keeps the data overhead low (two pointers per enabled
command set).
2018-06-11 11:09:24 +00:00
Angelos Oikonomopoulos 1a95aad7a7 Mark shell_commands as const
This enables the compiler to place the array in flash, saving us a bit
of RAM.

Suggested-by: g-oikonomou
2018-06-08 10:44:33 +00:00
Yasuyuki Tanaka 514a0365fe shell: add 6top command 2017-09-14 21:48:08 +09:00
Simon Duquennoy 192f8ee582 Move shell from apps to os/services 2017-09-01 15:39:39 +02:00