diff options
| author | Shell <[email protected]> | 2024-05-17 13:19:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-17 13:19:00 +0800 |
| commit | f2d6325b43ea1e390f034e03340b41662351b441 (patch) | |
| tree | 8933d6e52221a7f642148addac77750ef7dbc3a3 /include/rtthread.h | |
| parent | 3d30b56c8631ed3b5fa5fbda71d1ef21853afc9d (diff) | |
[smart] select console device dynamically (#8949)
* [smart] select console device dynamically
- Fixed compiler warning on terminal subsystem for
`components/lwp/terminal/terminal.h`
- Updated default console setup to dynamically select an appropriate tty
device based on the configured console device name.
Signed-off-by: Shell <[email protected]>
* fixup: remove useless codes
---------
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index c2174cce42..1cad47931a 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -75,6 +75,7 @@ rt_err_t rt_custom_object_destroy(rt_object_t obj); #endif /* RT_USING_HEAP */ rt_bool_t rt_object_is_systemobject(rt_object_t object); rt_uint8_t rt_object_get_type(rt_object_t object); +rt_err_t rt_object_for_each(rt_uint8_t type, rt_object_iter_t iter, void *data); rt_object_t rt_object_find(const char *name, rt_uint8_t type); rt_err_t rt_object_get_name(rt_object_t object, char *name, rt_uint8_t name_size); |
