This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
NanoX applications priority
- From: llandre <r&d2 at dave-tech dot it>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Tue, 06 Jun 2006 17:32:31 +0200
- Subject: NanoX applications priority
The eCos repository provides several nanox application examples. I have
a doubt about what the priority of such applications should be. In
microwin/ecos_mw_app.h the following #defines are defined:
#define ECOS_MW_STARTUP_PRIORITY 11
#define ECOS_MW_NANOX_PRIORITY (ECOS_MW_STARTUP_PRIORITY+1)
#define ECOS_MW_KND_PRIORITY (ECOS_MW_STARTUP_PRIORITY+2)
#define ECOS_MW_NANOWM_PRIORITY (ECOS_MW_STARTUP_PRIORITY+4)
#define ECOS_MW_APP_PRIORITY (ECOS_MW_STARTUP_PRIORITY+5)
In my understading ECOS_MW_APP_PRIORITY should be used for applications.
However ntetris uses ECOS_MW_NANOX_PRIORITY:
#include <microwin/ecos_mw_app.h>
_mw_app("Nano-tetris demo", ntetris, ECOS_MW_NANOX_PRIORITY, 0);
externC int ntetris_main(int argc, char *argv[]);
...
while "world demo" uses ECOS_MW_APP_PRIORITY:
#include <microwin/ecos_mw_app.h>
_mw_app("World demo", world, ECOS_MW_APP_PRIORITY, 0);
...
Which one is correct?
TIA,
llandre
DAVE Electronics System House - R&D Department
web: http://www.dave-tech.it
email: r&d2@dave-tech.it