[En-Nut-Discussion] Ethernut with fix frequency
Klaus Fetscher
k.fetscher at fetron.de
Thu Feb 6 18:39:27 CET 2003
We have compiled the 3.01 sources with the define of NUT_CPU_FREQ.
There was an error because "milli_ticks" was not defined.
\os\timer.c
#ifdef NUT_CPU_FREQ
#define cpu_clock NUT_CPU_FREQ
#define delay_count (NUT_CPU_FREQ/4000)
#else /* !NUT_CPU_FREQ */
static volatile u_long seconds = 0;
static volatile u_char ms62_5 = 0;
static volatile u_long milli_ticks = 0; // -> Should be outside of the
#ifdef / #endif statement
static u_long cpu_clock = 0;
static u_short delay_count = 0;
static u_long NutComputeCpuClock(void);
#endif /* !NUT_CPU_FREQ */
I have put milli_ticks outside the #ifdef / #endif statement and now it
works.
Klaus
More information about the En-Nut-Discussion
mailing list