[En-Nut-Discussion] Where is the best place for a new target to setsome defines?

Kim Madsen k_madsen at esenet.dk
Mon Oct 2 23:01:13 CEST 2006


----- Original Message ----- 
From: "Michael Fischer" <fischermi at t-online.de>
To: <en-nut-discussion at egnite.de>
Sent: Monday, October 02, 2006 9:50 PM
Subject: [En-Nut-Discussion] Where is the best place for a new target to 
setsome defines?


> Hello,
>
> where is the best place to define some values for a new
> Nut/OS build? I have try to use the xxxxx.conf file and
> define a new value, for example NUT_CPU_FREQ.
>
> As startup, I use the ethernut30d.conf and added a new line:
>
> NUT_CPU_FREQ="58982400UL"
>
> But inside the source for example my new ostimer_lpc2294.c
> this define is not set.
>
> What is here the correct place?
>
> Best regards,
>
> Michael
>
>
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

This works on the 3e -> and is stolen from the ver. 1 code
-----------------------------------------------------------------------------------------------------------------------
 cpu_crystal = NutGetCpuClock();
    puts("\n*******************************************************************************");
    printf("Timer sample running on %u.%04u MHz CPU\n",
           (int) (cpu_crystal / 1000000UL), (int) ((cpu_crystal - 
(cpu_crystal / 1000000UL) * 1000000UL) / 100)
        );

 puts("\n*******************************************************************************");



More information about the En-Nut-Discussion mailing list