#
#******************************************************************************
#COPYRIGHT 2003 STMicroelectronics
#Source File Name : st72f561.lkf
#Group            : IPSW,CMG-IPDF
#Author           : MCD Application Team
#Date First Issued: 5/03/2002
#********************************Documentation*********************************
#General Purpose - Linker file
#********************************RevisionHistory*******************************
#______________________________________________________________________________
#Date : 5/03/2002    Release : 1.0 
#Date:22/09/2003     Release: 2.0 
#                       1. Added LIB_PT for library location
#                       2. Added common reg file structure
					     
#******************************************************************************/
#
+seg .text -b 0x1000 -n .text	 # program start address
+seg .const -a .text			 # constants follow code
+seg .bsct -b 0x80 -m 0x80 		 # zero page start address
+seg .ubsct -n iram			     # uninitialized zero page
+seg .data -b 0x100 -m 0xC0

#------------------------------------------------------------------------------
# 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 the peripherals used in the application
..\..\object\cosmic\io.o
..\..\object\cosmic\spi.o
..\..\object\cosmic\itc.o
..\..\object\cosmic\pwmart.o
..\..\object\cosmic\adc.o
..\..\object\cosmic\sci.o
..\..\object\cosmic\wdg.o
..\..\object\cosmic\timer.o
..\..\object\cosmic\timer8.o
#------------------------------------------------------------------------------ 
# float and integer library names depend on the model used
#------------------------------------------------------------------------------
"C:\Cosmic\ST7\Lib\libic.st7"
"C:\Cosmic\ST7\Lib\libm.st7"

#------------------------------------------------------------------------------
# interrupt vectors
#------------------------------------------------------------------------------
+seg .const -b 0xffe0 -n vector_561 -k
..\..\object\cosmic\vector_561.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 ***