MQX 精简版概述 MQX精简版是一个实时操作系统,该系统管理微处理器或者微控制器的时间并且允许以下功能:
多任务处理 基于优先级的调度 资源访问的同步 任务间(进程或者说线程间)通信 中断处理 MQX精简版提供一个为实时多任务应用的运行时函数库。 MQX由内核和组件组成。内核组件只包含由MQX系统或者应用程序调用的函数。 为了满足应用程序的需求,应用程序可以添加可选的组件来扩展。 由于MQX精简版集成处理专家应用程序,可以轻易的通过MQX精简版的PEx组件的GUI图形界面来配置。集成到PEx组件中的技术可以让逻辑设备驱动为不同模块和设备生产驱动来达到广泛的使用。
MQX精简版集成PEx组件,使得用户代码可以在飞思卡尔的不同平台之间轻松的移植。这不需要标准版MQX需要的板级支持包。而是,PEx组件和设备逻辑驱动可以生产像传统MQX系统代码一样的源代码。生产的代码包含了特定板的底层启动,处理器和板级初始化的代码。
用户可以通过运行PEx组件,用新建工程向导来创建裸板工程。这会将MQX精简版的PEx组件添加到创建的工程中。添加MQX到已有的工程中也是可以的。两种创建带MQX精简版的应用程序的方法在这个文档中都有描述。PEx组件的GUI可以用来配置MQX实时系统和定义用户任务和它们的参数。当所有的PEx组件都添加到工程中,并且所有的配置都已经完成,针对所选用的编译器的代码就会生产。你可以通过配置已经定义好的MQX精简版的任务来编写应用程序代码,然后编译,运行和调试它。
Overview of MQX Lite
MQX Lite is an RTOS that manages the time of a microprocessor or microcontroller and
allows:
• Multi-tasking
• Scheduling tasks with priorities
• Synchronization of the resource access
• Inter-task communication
• Interrupt handling
MQX Lite provides a run-time library of functions designed for real-time multitasking
applications.
MQX consists of core (non-optional) and optional components. Functions, which are
called either by MQX or an application, are the only functions included in the application
image for core components. To match application requirements, an application can be
extended by adding optional components.
Because MQX Lite is integrated with Processor Expert installation, it is easily
configurable through GUI, which is the dedicated MQX Lite PEx component. The
integration to PEx technology allows the usage of a wide range of Logical Device Drivers
(LDD) that can be generated for different modules and different devices.
MQX Lite integration with PEx also allows an easy migration of the user application
code across different Freescale platforms. There is no need for a Board Support Package
(BSP) which is necessary for a standard MQX version. Instead, the set of PEx
components and LDDs can be used to generate source code similar to the classic MQX
BSP code. The generated code contains board-specific low-level startup code, processor,
and board initialization code.
The user runs the PEx and creates a new bareboard project by using the New Project
Wizard. This adds the MQX Lite PEx component into the created project. Adding MQX
Lite into an existing project is also possible. Both ways of creating an MQX Lite
application are described in this document. PEx GUI allows configuring the MQX Lite
RTOS and defining application tasks and their parameters. When all required PEx
components are added into the project and the entire configuration is complete, the source
code for the selected compiler is generated. You can write the application by
implementing already defined MQX Lite tasks, build, run and debug the application。
|