User`s manual
SCIOPTA - Real-Time Kernel
11-4 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
11 System Start and Setup
11.5 Start Hook
The start hook must always be present and must have the name start_hook. The start hook must be written by the
user. If a start hook is declared the kernel will jump into it after the C environment is initialized.
The start hook is mainly used to do chip, board and system initialization. As the C environment is initialized it can
be written in C. The start hook would also be the right place to include the registration of the system error hook
(see chapter
10.3.2 “Error Hook Registering” on page 10-3) and other kernel hooks.
11.5.1 Syntax
void start_hook (void);
11.5.2 Parameter
None.
11.5.3 Return Value
None.
11.5.4 Location
In the delivered SCIOPTA examples the start hook is usually included in the file system.c
system.c System configuration file including hooks (e.g. start_hook) and other setup code.
File location:
<installation_folder>\sciopta\<version>\exp\<product>\<arch>\<example>\<board>\
11.6 Init Processes
The init process is the first process in a module. Each module has at least one process and this is the init process.
At module start the init process gets automatically the highest priority (0). After the init process has done some
important work it will change its priority to the lowest level (32) and enter an endless loop.
Priority 32 is only allowed for the init process. All other processes are using priority 0 - 31. The INIT process acts
therefore also as idle process which will run when all other processes of a module are in the waiting state.
The init process of the system module will first be swapped-in followed by the init processes of all other modules.
The code of the module init Processes are automatically generated by the SCONF configuration utility and placed
in the file sconf.c. The module init Processes will automatically be named to <module_name>_init and created.
Please consult chapter 5.9 “Init Processes” on page 5-8.
11.7 Module Start Functions
Please consult chapter 4 “Modules” on page 4-1 for general information about SCIOPTA modules.










