If i use only "Clean" and "Library F7" or only "Library F7" from the
configtool, then changes in my CDL-seting's don't work the right way.
Thats because the "Clean" command don't delete the makefiles. And in the
"\andrew1_build\hal\arm\at91\at91sam7s\current\makefile" is written:
...
COMPILE := src/at91_misc.c src/timer_pit.c src/hal_diag.c
...
So i think this means, that the #ifdef's don't realy work, but that they
don't allow the linker to link the wrong functions in the application.
An alternative would be:
#ifndef ...PIT...
#error This file should not be compiled...
#endif
Oliver
----- Original Message -----
From: "Andrew Lunn" <[EMAIL PROTECTED]>
To: "oliver munz @ s p e a g" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "Andrew Lunn" <[EMAIL PROTECTED]>
Sent: Thursday, March 23, 2006 8:04 PM
Subject: Re: Initialisation for the AT91... PIT if there is no kernel...
There are new #ifdef CYGBLD_HAL_ARM_AT91_TIMER_PIT ... statements in
timer_pit.c and timer_tc.c sources, because whitout it can go wrong - at
least in on my thinkpad...
Please could you give me more information about this. How does it go
wrong? How does the extra #ifdef help?
Thanks
Andrew