##
#******************************************************************************
#COPYRIGHT 2003 STMicroelectronics
#Source File Name : st7flite2.lkf
#Group            : IPSW,CMG-IPDF
#Author           : MCD Application Team
#Date First Issued: 23/09/2003
#********************************Documentation*********************************
#General Purpose - Linker file
#********************************RevisionHistory*******************************
#______________________________________________________________________________
#Date :23/09/2003                  Release:2.0      
#*****************************************************************************/
#
+seg .text -b 0xE000 -n .text    # program start address
+seg .const -a .text             # constants follow code
+seg .bsct -b 0x80               # zero page start address
+seg .ubsct -n iram              # uninitialized zero page
+seg .data  -b 0x100 -m 0x7f     # Data Segment start address(-b) and width(-m)

#------------------------------------------------------------------------------
# define the .share segment when using compact or memory models only (c,m,ml)
#------------------------------------------------------------------------------
+seg .share -a iram -is			                 # shared segment

"C:\COSMIC\ST7\Lib\crtsi.st7"                    # startup routine

..\..\object\cosmic\main.o                       # application program
#add/remove peripherals according to the application
..\..\object\cosmic\eeprom.o 
..\..\object\cosmic\lart.o 
..\..\object\cosmic\lt.o 
..\..\object\cosmic\itc.o 
..\..\object\cosmic\io.o 
..\..\object\cosmic\wdg.o 
..\..\object\cosmic\adc.o 
..\..\object\cosmic\spi.o 


#------------------------------------------------------------------------------ 
# float and integer library names depend on the model used
#------------------------------------------------------------------------------
"C:\Cosmic\ST7\Lib\libic.st7"
"C:\Cosmic\ST7\Lib\libm.st7" 

#------------------------------------------------------------------------------
# map interrupt vectors
#------------------------------------------------------------------------------
+seg .const -b 0xffe0 -n vector -k 
..\..\object\cosmic\vector_lite2.o 

#------------------------------------------------------------------------------
# define the __stack symbol for stack models only
#------------------------------------------------------------------------------
+def __stack=0x1FF                # stack page (stack models)

#------------------------------------------------------------------------------
# define these symbols if crtsi or crtsx is used
#------------------------------------------------------------------------------
+def __endzp=@.ubsct             # end @ of uninitialized zpage
+def __memory=@.bss	             # end @ of bss segment 
                                                                               
#******************** (c) 2003  ST Microelectronics ************ END OF FILE***