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&[EMAIL PROTECTED]

Reply via email to