Message Edited by BasePointer on 2006-12-2903:02 PM
Message Edited by Alban on 2006-12-29 07:00 PM
Message Edited by BasePointer on 2006-12-3012:13 PM
Message Edited by Lundin on 2007-01-0210:14 AM
typedef struct{ unsigned char Year; unsigned char Month; unsigned char Day; unsigned char Hour; unsigned char Minute; unsigned char Second;} TDate;typedef struct{ char DOW; TDate Date;} TRTC;#pragma DATA_SEG NO_INIT_RAM TRTC RTC; volatile signed char internal_second;#pragma DATA_SEG DEFAULT
/* This is a linker parameter file for the LC60 */NAMES END /* CodeWarrior will pass ... *//*SEGMENTS ROM = READ_ONLY 0x8000 TO 0xFFAF; Z_RAM = READ_WRITE 0x0060 TO 0x00FF; RAM = READ_WRITE 0x0100 TO 0x105F; ROM1 = READ_ONLY 0xFFC0 TO 0xFFD1; ROM2 = READ_ONLY 0x1870 TO 0x7FFF; ROM3 = READ_ONLY 0x1060 TO 0x17FF;END*/SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */ ROM = READ_ONLY 0x8000 TO 0xFFAF; Z_RAM = READ_WRITE 0x0060 TO 0x00FF; RAM = READ_WRITE 0x0100 TO 0x0C5F; NO_INIT_RAM = NO_INIT 0x0C60 TO 0x105F; ROM1 = READ_ONLY 0xFFC0 TO 0xFFD1; ROM2 = READ_ONLY 0x1870 TO 0x7FFF; ROM3 = READ_ONLY 0x1060 TO 0x17FF;ENDPLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */ DEFAULT_RAM INTO RAM; DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM; /* ROM1,ROM2,ROM3 In case you want to ... */ _DATA_ZEROPAGE, MY_ZEROPAGE INTO Z_RAM;ENDSTACKSIZE 0x50VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */
Message Edited by BasePointer on 2007-01-0401:55 PM
/* This is a linker parameter file for the LC60 */NAMES END /* CodeWarrior will pass ... */SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */ ROM = READ_ONLY 0x8000 TO 0xFFAF; Z_RAM = READ_WRITE 0x0060 TO 0x00FF; RAM = READ_WRITE 0x0100 TO 0x0C5F; NO_INIT_RAM_SEG = NO_INIT 0x0C60 TO 0x105F; ROM1 = READ_ONLY 0xFFC0 TO 0xFFD1; ROM2 = READ_ONLY 0x1870 TO 0x7FFF; ROM3 = READ_ONLY 0x1060 TO 0x17FF;ENDPLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */ DEFAULT_RAM INTO RAM; DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM; /* ROM1,ROM2,ROM3 In case you want to ... */ _DATA_ZEROPAGE, MY_ZEROPAGE INTO Z_RAM; NO_INIT_RAM INTO NO_INIT_RAM_SEG;ENDSTACKSIZE 0x50VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */