Macros

SEQ_INIT_CRITICAL_SECTION ( )

Default macro for initializing the critical section.

SEQ_ENTER_CRITICAL_SECTION ( )

Default macro for entering the critical section.

SEQ_EXIT_CRITICAL_SECTION ( )

Default macro for exiting a critical section.

SEQ_MEMSET8 ( dest , value , size )

Default macro for calling memset to fill memory.

SEQ_ENTER_CRITICAL_SECTION_IDLE ( )

Default macro for entering the critical section before calling the IDLE function.

Note

In a basic configuration must be identical to the macro SEQ_ENTER_CRITICAL_SECTION. The redefinition of this macro will allow to perform specific operation

SEQ_EXIT_CRITICAL_SECTION_IDLE ( )

Default macro for exiting a critical section when exiting the IDLE function.

Note

The behavior of the macro must be symmetrical with the macro SEQ_ENTER_CRITICAL_SECTION_IDLE

SEQ_TASK_PARAM_DEF ( _FUNC_ , _INSTANCE_ )

This macro can be used to define a task with one parameter.

Note

This is an example of using this macro

    task prototype definition
    void FUNCTION_NAME(void *Instance)
    {
        uint8_t _instance = *(uint8_t*) Instance;
    }

    task declaration in the application for two instances
    const uint8_t instance1 = 1;
    const uint8_t instance2 = 2;
    SEQ_TASK_PARAM_DEF(FUNCTION_NAME, instance1)
    SEQ_TASK_PARAM_DEF(FUNCTION_NAME, instance2)

    task initialization
    SEQ_RegTask(SEQ_TASK_1,  0, SEQ_TASK_FUNCTION(FUNCTION_NAME,instance1));
    SEQ_RegTask(SEQ_TASK_10, 0, SEQ_TASK_FUNCTION(FUNCTION_NAME,instance2));

    Then no change on the management of the task within the application, the instance being managed within the
    overloaded function

SEQ_TASK_FUNCTION ( _FUNC_ , _INSTANCE_ )

This macro is used to retrieve the function name of the task.

Retrieve the function name of the task from two parameters: function and instance.