To create a new RTOS component:
- Use Component Wizard tool to create a new RTOS adapter component.
- Create a new component.
- Fill the short hint, author name, and change the icon (optional).
- Select component category SW Operating System.
- Add one property of RTOS component (optional)
Select the property of type Enumeration
for selecting the version of RTOS. This
property is optional.
- Remove the existing RTOS adapter group containing properties to select between RTOS native or user-defined functions to enter/exit into/from a critical section.
- Add configuration properties of new RTOS adapter. These properties are all RTOS specific.
- Add calls of export/publish subroutines to the .TS2 file of the RTOS components to export/publish all RTOS adapter properties. For details, see Hosted properties in RTOS component topic.
- There is a limitation of current Component Wizard distributed with CodeWarrior. As a workaround for this, open bean XML file of RTOS Component located at: $PE/beans/<rtosName>.bean1 and add <OperatingSystemId>XXX</OperatingSystemId> to the /<Options> new child XML element. Replace XXX with the name of RTOS.
Note:
On Windows Vista, the bean file can be created at $SystemDrive/Program Data/Processor Expert/CW/beans/<rtosName>.bean depending on the permissions on the Program Files directory.