20.7 Maximum ID (maxdefine)
The definition item maxdefine is provided for the definition of the maximum ID for each object. And this definition is required to use service calls to create an object dynamically.

The macros in which the maximum ID of each object are defined is output to the system information header file "kernel_id.h". (Refer to "18.2 Constant macros")

Format

Parentheses < >show the user input part.

 maxdefine {
     max_task    = <1. Maximum task ID (max_task)>;
     max_sem     = <2. Maximum semaphore ID (max_sem)>;
     max_flag    = <3. Maximum eventflag ID (max_flag)>;
     max_dtq     = <4. Maximum data queue ID (max_dtq)>;
     max_mbx     = <5. Maximum mailbox ID (max_mbx)>;
     max_mtx     = <6. Maximum mutex ID (max_mtx)>;
     max_mbf     = <7. Maximum message buffer ID (max_mbf)>;
     max_mpf     = <8. Maximum fixed-sized memory pool ID (max_mpf)>;
     max_mpl     = <9. Maximum variable-sized memory pool ID (max_mpl)>;
     max_cyh     = <10. Maximum cyclic handler ID (max_cyh)>;
     max_alh     = <11. Maximum alarm handler ID (max_alh)>;
     max_domain  = <12. Maximum domain ID (max_domain)>;
 };


1 ) Maximum task ID (max_task)

- Description
The cre_tsk, acre_tsk, del_tsk, exd_tsk and def_tex can be used by this definition. Ranges of task ID that can be used are is as follows.


- Minimum value : 1

- Maximum value : The largest one among max_task, the ID number defined in "task[]" and the number of "task[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_tsk, acre_tsk, del_tsk and def_tex returns E_NOSPT error. And exd_tsk causes system down.
Ranges of task ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "task[]" and the number of "task[]" definitions

- VTMAX_TSK
The cfg600px outputs the macro VTMAX_TSK which defines the maximum value to the system information header file "kernel_id.h".

2 ) Maximum semaphore ID (max_sem)

- Description
The cre_sem, acre_sem and del_sem can be used by this definition.
Ranges of semaphore ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_sem, the ID number defined in "semaphore[]" and the number of "semaphore[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_sem, acre_sem and del_sem returns E_NOSPT error.
Ranges of semaphore ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "semaphore[]" and the number of "semaphore[]" definitions

- VTMAX_SEM
The cfg600px outputs the macro VTMAX_SEM which defines the maximum value to the system information header file "kernel_id.h".

3 ) Maximum eventflag ID (max_flag)

- Description
The cre_flg, acre_flg and del_flg can be used by this definition.
Ranges of eventflag ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_flag, the ID number defined in "flag[]" and the number of "flag[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_flg, acre_flg and del_flg returns E_NOSPT error.
Ranges of eventflag ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "flag[]" and the number of "flag[]" definitions

- VTMAX_FLG
The cfg600px outputs the macro VTMAX_FLG which defines the maximum value to the system information header file "kernel_id.h".

4 ) Maximum data queue ID (max_dtq)

- Description
The cre_dtq, acre_dtq and del_dtq can be used by this definition.
Ranges of data queue ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_dtq, the ID number defined in "data_queue[]" and the number of "data_queue[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_dtq, acre_dtq and del_dtq returns E_NOSPT error.
Ranges of data queue ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "data_queue[]" and the number of "data_queue[]" definitions

- VTMAX_DTQ
The cfg600px outputs the macro VTMAX_DTQ which defines the maximum value to the system information header file "kernel_id.h".

5 ) Maximum mailbox ID (max_mbx)

- Description
The cre_mbx, acre_mbx and del_mbx can be used by this definition.
Ranges of mailbox ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_mbx, the ID number defined in "mailbox[]" and the number of "mailbox[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_mbx, acre_mbx and del_mbx returns E_NOSPT error.
Ranges of mailbox ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "mailbox[]" and the number of "mailbox[]" definitions

- VTMAX_MBX
The cfg600px outputs the macro VTMAX_MBX which defines the maximum value to the system information header file "kernel_id.h".

6 ) Maximum mutex ID (max_mtx)

- Description
The cre_mtx, acre_mtx and del_mtx can be used by this definition.
Ranges of mutex ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_mtx, the ID number defined in "mutex[]" and the number of "mutex[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_mtx, acre_mtx and del_mtx returns E_NOSPT error.
Ranges of mutex ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "mutex[]" and the number of "mutex[]" definitions

- VTMAX_MTX
The cfg600px outputs the macro VTMAX_MTX which defines the maximum value to the system information

7 ) Maximum message buffer ID (max_mbf)

- Description
The cre_mbf, acre_mbf and del_mbf can be used by this definition.
Ranges of message buffer ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_mbf, the ID number defined in "message_buffer[]" and the number of "message_buffer[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_mbf, acre_mbf and del_mbf returns E_NOSPT error.
Ranges of message buffer ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "message_buffer[]" and the number of "message_buffer[]" definitions

- VTMAX_MBF
The cfg600px outputs the macro VTMAX_MBF which defines the maximum value to the system information

8 ) Maximum fixed-sized memory pool ID (max_mpf)

- Description
The cre_mpf, acre_mpf and del_mpf can be used by this definition.
Ranges of fixed-sized memory pool ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_mpf, the ID number defined in "memorypool[]" and the number of "memorypool[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_mpf, acre_mpf and del_mpf returns E_NOSPT error.
Ranges of fixed-sized memory pool ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "memorypool[]" and the number of "memorypool[]" definitions

- VTMAX_MPF
The cfg600px outputs the macro VTMAX_MPF which defines the maximum value to the system information

9 ) Maximum variable-sized memory pool ID (max_mpl)

- Description
The cre_mpl, acre_mpl and del_mpl can be used by this definition.
Ranges of variable-sized memory pool ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_mpl, the ID number defined in "variable_memorypool[]" and the number of "variable_memorypool[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_mpl, acre_mpl and del_mpl returns E_NOSPT error.
Ranges of variable-sized memory pool ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "variable_memorypool[]" and the number of "variable_memorypool[]" definitions

- VTMAX_MPL
The cfg600px outputs the macro VTMAX_MPL which defines the maximum value to the system information

10 ) Maximum cyclic handler ID (max_cyh)

- Description
The cre_cyc, acre_cyc and del_cyc can be used by this definition.
Ranges of cyclic handler ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_cyh, the ID number defined in "cyclic_hand[]" and the number of "cyclic_hand[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_cyc, acre_cyc and del_cyc returns E_NOSPT error.
Ranges of cyclic handler ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "cyclic_hand[]" and the number of "cyclic_hand[]" definitions

- VTMAX_CYH
The cfg600px outputs the macro VTMAX_CYH which defines the maximum value to the system information

11 ) Maximum alarm handler ID (max_alh)

- Description
The cre_alm, acre_alm and del_alm can be used by this definition.
Ranges of alarm handler ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among max_alh, the ID number defined in "alarm_hand[]" and the number of "alarm_hand[]" definitions

- Definition format
Numeric value


- Definition range
From 1 to 255


- When omitting
The cre_alm, acre_alm and del_alm returns E_NOSPT error.
Ranges of alarm handler ID that can be used are is as follows.



- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "alarm_hand[]" and the number of "alarm_hand[]" definitions

- VTMAX_ALH
The cfg600px outputs the macro VTMAX_ALH which defines the maximum value to the system information

12 ) Maximum domain ID (max_domain)

- Description
Ranges of domain ID that can be used are is as follows.


- Minimum value : 1

- Maximum value : The largest one among max_domain, the ID number defined in "domain[]"

- Definition format
Numeric value


- Definition range
From 1 to 15


- When omitting
Ranges of mutex ID that can be used are is as follows.


- Minimum value : 1

- Maximum value : The largest one among the ID number defined in "domain[]"

- VTMAX_DOMAIN
The cfg600px outputs the macro VTMAX_DOMAIN which defines the maximum value to the system information