mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/nxinit: Add final event
Add the final event option to the Kconfig Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
parent
d8ead1a0f3
commit
5341a2fc92
2 changed files with 8 additions and 2 deletions
|
|
@ -73,6 +73,13 @@ config SYSTEM_NXINIT_ACTION_MANAGER_EVENT_MAX
|
|||
...
|
||||
};
|
||||
```
|
||||
config SYSTEM_NXINIT_FINALINIT
|
||||
bool "Enable NXInit final event"
|
||||
default n
|
||||
--help--
|
||||
Enable support to run the "final" event. Currently only "boot",
|
||||
and "init" event are enabled by default, where "netinit" and
|
||||
"final" are optional.
|
||||
|
||||
comment "NXInit Service"
|
||||
|
||||
|
|
|
|||
|
|
@ -198,8 +198,7 @@ int main(int argc, FAR char *argv[])
|
|||
init_action_add_event(&am, "netinit");
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BOARDCTL_FINALINIT
|
||||
boardctl(BOARDIOC_FINALINIT, 0);
|
||||
#ifdef CONFIG_SYSTEM_NXINIT_FINALINIT
|
||||
init_action_add_event(&am, "finalinit");
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue