System Initialization and Action Processing
Description
System Initialization and Action Processing.
System Init
System Init provides a function for initializing the system and the products:
This function calls a set of functions that are automatically generated and located in
autogen/sl_event_handler.c
. Handlers can be registered for the following events using the Event Handler API provided by the Event Handler component:
- platform_init -> sl_platform_init()
- driver_init -> sl_driver_init()
- service_init -> sl_service_init()
- stack_init -> sl_stack_init()
- internal_app_init -> sl_internal_app_init()
These events are fired in the order listed above when
sl_system_init()
is called.
System Kernel
System Kernel component provides a function for starting the kernel:
This function calls a functions that is automatically generated and located in
$autogen/sl_event_handler.c
. Handlers can be registered for the following events using the Event Handler API provided by the Event Handler component:
- kernel_start -> sl_kernel_start()
The event is fired when
sl_system_kernel_start()
is called.
System Process Action
System Process Action component provides a function for running the products from a super loop:
This function calls a set of functions that are automatically generated and located in
$autogen/sl_event_handler.c
. Handlers can be registered for the following events using the Event Handler API provided by the Event Handler component:
- platform_process_action -> sl_platform_process_action()
- service_process_action -> sl_service_process_action()
- stack_process_action -> sl_stack_process_action()
- internal_app_process_action -> sl_internal_process_action()
These events are fired in the order listed above when
sl_system_process_action()
is called.
Usage example:
Functions |
|
void | sl_system_kernel_start (void) |
Start the kernel.
|
|
void | sl_system_init (void) |
Initialize Silicon Labs products.
|
|
void | sl_system_process_action (void) |
System processing action.
|
|
Function Documentation
◆ sl_system_kernel_start()
void sl_system_kernel_start | ( | void |
|
) |
Start the kernel.
◆ sl_system_init()
void sl_system_init | ( | void |
|
) |
Initialize Silicon Labs products.
◆ sl_system_process_action()
void sl_system_process_action | ( | void |
|
) |
System processing action.