Processor Expert MQX Lite component generates following files to the project directory in a user Eclipse workspace:
- Generated_Code\<MQXLiteComponentName>.c and .h (for example,
MQX1.c,
MQX1.h) - Implementation of MQX Lite interface, time notification of MQX Lite scheduler, definition of MQX Lite initialization structure, definition of task stacks, definition of
PEX_RTOS_INIT() and
PEX_RTOS_START() macros.
- Generated_Code\task_template_list.c and .h - definition of task template list based on MQX Lite component configuration.
- Generated_Code\user_config.h - MQX Lite configuration file based on MQX Lite component configuration.
- Sources\mqx_task.c and .h - Processor Expert user module containing implementation/definition of task routines.
The user can add custom code to this module and implement the body of a task function here. A content of this file is not regenerated by Processor Expert and all user changes are kept. When a new task is specified in the MQX Lite component properties tab,
a default MQX Lite task routine is created. The user can modify an implementation of this function according to the application needs.
Figure 1.
MQX Lite Task Routine
