Download 8051 RTOS

Transcript
Getting Started
Now save your project. You are free to choose a name and a location for the project but you can also
follow this example:
4. From the File menu, select Save Project As...
The Save [Embedded Project1.PrjEmb] As... dialog appears.
-
In this dialog, browse to the folder .../Altium2004/Examples/Embedded.
-
Create a new folder with the name firstrtos.
-
Browse to this folder.
-
Enter the file name for your project: myrtos.PrjEmb and make sure it is saved as type
Embedded Software Project (*.PrjEmb).
5. Click on the Save button.
Add new files to the project
Now you can add files you want to be part of your project. You can either add existing files, or create
and add new files. In this example, two new files are needed: main.c and myrtos.oil:
6. In the Projects panel, right-click on your project myrtos.PrjEmb and select
Add New to Project » C File.
A new empty file with the name Source1.C is added to your project and opened.
7. From the File menu, select Save As...
The Save [Source1.C] As... dialog appears. Save your file as main.c.
Repeat steps 6 and 7 for the file 'myrtos.oil'. Add this file as type 'text document'.
The new project is now ready to be edited.
DXP automatically creates a makefile for the project (in this case myrtos.mak.). This file contains
the rules to build your application. DXP updates the makefile every time you modify your project
settings.
Note that because DXP detected the presence of an .oil file, the makefile contains rules to
generate also the RTOS library from the file myrtos.oil. You can check this for yourself by
opening the file myrtos.mak.
2-7