Hello,
I'm currently trying to build an uTasker project in simulation on MS Visual Studio 2005 (professional edition).
I want my application to use DHCP, so I uncommented USE_DHCP in config.h
The thing is that the simulator does not get a IP address from the DHCP server. After examining this I noticed that in taskconfig.h, the lines
#ifdef USE_DHCP
{ "DHCP", fnDHCP, SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP}, // delay only for timer queue space
#endif
are STILL grayed out, while in other files that refer to USE_DHCP, those lines are colored.
So I guess the DHCP task will never be called...
In fact, everything behind #ifdef OPSYS_CONFIG is grayed out in taskconfig.h while OPSYS_CONFIG is defined in config.h and taskconfig.h is included in config.h after the defines of USE_DHCP and OPSYS_CONFIG.
So maybe there's some bug in VS2005? Or maybe I'm just missing something here?
I'm using uTasker for Coldfire by the way, with SP5 installed.
EDIT:
OPSYS_CONFIG is defined in winsym.c, after which config.h is included. So config.h and taskconfig.h are supposed to "know" OPSYS_CONFIG but apparently they don't...