zephyr/subsys/shell
Tomasz Bursztyka 8d7bb8ffd8 device: Refactor device structures
When the device driver model got introduced, there were no concept of
SYS_INIT() which can be seen as software service. These were introduced
afterwards and reusing the device infrastructure for simplicity.
However, it meant to allocate a bit too much for something that only
required an initialization function to be called at right time.

Thus refactoring the devices structures relevantly:
- introducing struct init_entry which is a generic init end-point
- struct deviceconfig is removed and struct device owns everything now.
- SYS_INIT() generates only a struct init_entry via calling
  INIT_ENTRY_DEFINE()
- DEVICE_AND_API_INIT() generates a struct device and calls
  INIT_ENTRY_DEFINE()
- init objects sections are in ROM
- device objects sections are in RAM (but will end up in ROM once they
  will be 'constified')

It also generate a tiny memory gain on both ROM and RAM, which is nice.

Perhaps kernel/device.c could be renamed to something more relevant.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-05-08 23:07:44 +02:00
..
modules device: Refactor device structures 2020-05-08 23:07:44 +02:00
CMakeLists.txt
Kconfig kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
Kconfig.backends shell: kconfig: Have SHELL_BACKEND_RTT depend on USE_SEGGER_RTT 2020-01-24 22:47:53 +01:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c shell: Refactor command execution to enable raw arguments 2020-05-07 23:47:39 -05:00
shell_dummy.c shell: Extend dummy backend to record for testing 2020-05-07 10:04:28 +02:00
shell_fprintf.c
shell_help.c shell: Refactor command getters 2020-04-23 18:30:41 +02:00
shell_help.h
shell_history.c
shell_log_backend.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shell_ops.c
shell_ops.h
shell_rtt.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shell_telnet_protocol.h
shell_telnet.c shell: telnet: Refactor because of timeout overhaul 2020-04-09 16:07:03 +03:00
shell_uart.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
shell_utils.c shell: Refactor command execution to enable raw arguments 2020-05-07 23:47:39 -05:00
shell_utils.h shell: Refactor command execution to enable raw arguments 2020-05-07 23:47:39 -05:00
shell_vt100.h shell: add Ctrl+N and Ctrl+P meta-keys 2019-06-24 07:17:53 -04:00
shell_wildcard.c shell: Refactor command getters 2020-04-23 18:30:41 +02:00
shell_wildcard.h shell: Refactor command getters 2020-04-23 18:30:41 +02:00
shell.c shell: Refactor command execution to enable raw arguments 2020-05-07 23:47:39 -05:00