236/317
8 - C Language and the C Compiler
Here is an example of a link parameter file taken from the X10XM IT project described in
Chapter 9:
LINK X10XMIT.abs
NAMES
main.o
interrup.o
map72251.o+
start07.o
ansi.lib
END
SECTIONS
APORTC
= READ_WRITE
0x00 TO
0x02;
/* For ST72251 */
APORTB
= READ_WRITE
0x04 TO
0x06;
APORTA
= READ_WRITE
0x08 TO
0x0A;
AMISC
= READ_WRITE
0x20 TO
0x20;
ASPI
= READ_WRITE
0x21 TO
0x23;
AWDG
= READ_WRITE
0x24 TO
0x24;
AI2C
= READ_WRITE
0x28 TO
0x2E;
ATIMERA
= READ_WRITE
0x31 TO
0x3F;
ATIMERB
= READ_WRITE
0x41 TO
0x4F;
AADC
= READ_WRITE
0x70 TO
0x71;
AZRAM
= READ_WRITE
0x80 TO
0xFF;
ARAM
= READ_WRITE
0x100 TO
0x13F;
ASTACK
= READ_WRITE
0x140 TO
0x17F;
AROM
= READ_ONLY
0xE000 TO 0xFFDF;
PLACEMENT
DEFAULT_ROM, ROM_VAR, STRINGS
INTO
AROM;
DEFAULT_RAM
INTO
ARAM;
_ZEROPAGE, _OVERLAP
INTO
AZRAM;
SSTACK
INTO
ASTACK;
PORTA
INTO
APORTA;
PORTB
INTO
APORTB;
PORTC
INTO
APORTC;
MISC
INTO
AMISC;
WDG
INTO
AWDG;
I2C
INTO
AI2C;
SPI
INTO
ASPI;
TIMERA
INTO
ATIMERA;
TIMERB
INTO
ATIMERB;
ADC
INTO
AADC;
END
STACKSIZE 0x40
VECTOR ADDRESS 0xFFE4 DummyInterrupt
/* I2C */
VECTOR ADDRESS 0xFFEE DelayCounter
/* Timer B */
VECTOR ADDRESS 0xFFF2 TimerAInterrupt
/* Timer A */
VECTOR ADDRESS 0xFFF4 DummyInterrupt
/* SPI */
VECTOR ADDRESS 0xFFF8 DummyInterrupt
/* Ext. B & C */
VECTOR ADDRESS 0xFFFA DummyInterrupt
/* Ext. A */
VECTOR ADDRESS 0xFFFE _Startup
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...