The cc65 compiler has a bug that doesn't allow to initialize an automatic struct with references to automatic variables. Therefore I changed the timetable used for measuring the timestamping time from automatic to static - which wastes some bytes in the data segment. If this isn't generally acceptable then an #ifdef __CC65__ seems to be the appropriate approach.

This commit is contained in:
oliverschmidt 2008-02-28 22:43:40 +00:00
parent 20dc5ee52f
commit 2b24ec3189

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: timetable.c,v 1.1 2008/01/17 12:19:26 adamdunkels Exp $
* $Id: timetable.c,v 1.2 2008/02/28 22:43:40 oliverschmidt Exp $
*/
/**
@ -101,7 +101,7 @@ timetable_init(void)
{
char dummy1, dummy2;
#define temp_size 4
TIMETABLE_NONSTATIC(temp);
TIMETABLE_STATIC(temp);
timetable_clear(&temp);