Chapter 6 Using Configurator
- 105 -
3. User stack size of task
[( Definition format )] Numeric value
[( Definition range )] 12 or more
[( Default value )] 256
Define the user stack size for each task. The user stack means a stack area used by each individual
task. MR308 requires that a user stack area be allocated for each task, which amount to at least 12
bytes.
4. Initial priority of task
[( Definition format )] Numeric value
[( Definition range )] 1 to (maximum value of priority in system definition)
[( Default value )] 1
Define the priority of a task at startup time.
As for MR308's priority, the lower the value, the higher the priority.
5. Regisers Used
[( Definition format )] Symbol[,Symbol,....]
[( Definition range )] Selected from R0,R1,R2,R3,A0,A1,SB,FB
[( Default value )] All registers
Define the registers used in a task. MR308 handles the register defined here as a context. Specify the
R0 register because task startup code is set in it when the task starts.
However, the registers used can only be selected when the task is written in the assembly language.
Select all registers when the task is written in the C language. When selecting a register here, be sure
to select all registers that store service call parameters used in each task.
MR308 kernel does not change the registers of bank.
If this definition is omitted, it is assumed that all registers are selected.
6. Section name in which the stack is located
[( Definition format )] Symbol
[( Definition range )] None
[( Default value )] stack
Define the section name in which the stack is located. The section defined here must always have an
area allocated for it in the section file (asm_sec.inc or c_sec.inc).
If no section names are defined, the stack is located in the stack section.
7. TA_ACT attribute (initial startup state)
[( Definition format )] Symbol
[( Definition range )] ON or OFF
[( Default value )] OFF
Define the initial startup state of a task.
If this attribute is specified ON, the task goes to a READY state at the initial system startup time.