mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-29 03:03:13 +01:00
* Split assembler routines into -cosmic.s and -iar.s. * Split Cosmic and IAR specific code using __CSMC__ and __IAR_SYSTEMS_ICC__. * Context-switch virtual registers on IAR. * Add detailed description of IAR context-switch scheme. * Add sample IAR project. * Add support for IAR to STM8S peripheral driver modules. * Fix EWSTM8 compiler warnings.
68 lines
1.5 KiB
Plaintext
68 lines
1.5 KiB
Plaintext
# Segment configuration
|
|
#<BEGIN SEGMENT_CONF>
|
|
# Segment Code,Constants:
|
|
+seg .const -b 0x8080 -m 0x7f80 -n .const -it
|
|
+seg .text -a .const -n .text
|
|
# Segment Eeprom:
|
|
+seg .eeprom -b 0x4000 -m 0x400 -n .eeprom
|
|
# Segment Zero Page (this deliberately avoids 0x0 to avoid
|
|
# NULL pointers to real data):
|
|
+seg .bsct -b 0x2 -m 0xfe -n .bsct
|
|
+seg .ubsct -a .bsct -n .ubsct
|
|
+seg .bit -a .ubsct -n .bit -id
|
|
+seg .share -a .bit -n .share -is
|
|
# Segment Ram (allow up to RAMTOP-64 to be used for data
|
|
# sections, leaving 64 bytes for the startup stack):
|
|
+seg .data -b 0x100 -m 0x6c0 -n .data
|
|
+seg .bss -a .data -n .bss
|
|
#<END SEGMENT_CONF>
|
|
|
|
|
|
# Startup file
|
|
#<BEGIN STARTUP_FILE>
|
|
crtsi0.sm8
|
|
#<END STARTUP_FILE>
|
|
|
|
|
|
# Object files list - section reserved for STVD
|
|
#<BEGIN OBJECT_FILES>
|
|
build\atomkernel.o
|
|
build\atommutex.o
|
|
build\atomqueue.o
|
|
build\atomsem.o
|
|
build\atomtimer.o
|
|
build\stm8s_clk.o
|
|
build\stm8s_gpio.o
|
|
build\stm8s_tim1.o
|
|
build\stm8s_uart2.o
|
|
build\tests-main.o
|
|
build\atomport.o
|
|
build\uart.o
|
|
build\atomport-asm-cosmic.o
|
|
# Caller passes in test application object name as param1
|
|
@1
|
|
#<END OBJECT_FILES>
|
|
|
|
|
|
# Library list
|
|
#<BEGIN LIBRARY_FILES>
|
|
libis0.sm8
|
|
libm0.sm8
|
|
#<END LIBRARY_FILES>
|
|
|
|
|
|
# Interrupt vectors file
|
|
#<BEGIN VECTOR_FILE>
|
|
+seg .const -b 0x8000 -k
|
|
build/stm8_interrupt_vector.o
|
|
#<END VECTOR_FILE>
|
|
|
|
# Defines
|
|
#<BEGIN DEFINED_VARIABLES>
|
|
+def __endzp=@.ubsct # end of uninitialized zpage
|
|
+def __memory=@.bss # end of bss segment
|
|
+def __startmem=@.bss
|
|
+def __endmem=0x7bf
|
|
+def __stack=0x7ff
|
|
#<END DEFINED_VARIABLES>
|