242/317
8 - C Language and the C Compiler
prefixed by a asterisk indicate that the files must not be searched only in that directory, but
also in any of its subdirectories.
Finally, the main path of the project is specified as the working path in the configuration panel
of WinEdit.
Here is an example of the environment file:
LIBPATH=*C:\ST7\Work\x10Xmit\sources;C:\ST7\HICROSS\LIB\ST7C
GENPATH=*C:\ST7\Work\x10Xmit;C:\ST7\HICROSS\LIB\ST7C
OBJPATH=C:\ST7\Work\x10Xmit\OBJECT
ABSPATH=C:\ST7\Work\x10Xmit\OBJECT
TXTPATH=C:\ST7\Work\x10Xmit\OBJECT
MAPPATH=C:\ST7\Work\x10Xmit\OBJECT
COMP=C:\st7\HICROSS\PROG\CST7.EXE
LINK=C:\st7\HICROSS\PROG\LINKER.EXE
FLAGS=-W2
COMPOPTIONS=-Or -Cni -Cc
ERRORFILE=\EDOUT
8.8 HINTS ON C WRITING STYLE FOR THE ST7
STMicroelectronics supplies a set of files that define the registers and the memory map of the
ST7. Also, to make support easier, a particular directory tree arrangement is recommended.
This paragraph gives advice and rules that will provide you with pre-written definitions and a
working frame that will help you start and organize your work.
8.8.1 Accessing individual bits in registers
The MAP_72251.C and MAP_72251.H files provide the declarations of the registers of the
72251; a set of thse files also exists for each variant of the ST7.
The C source file must be compiled, and the object linked with the other files of the project.
However, you must take care to add a + sign after the name of the object file, in the list of the
files to be linked, as follows:
LINK X10XMIT.abs
NAMES
main.o
map_7225.o+
start07.o
ansi.lib
END
(to be continued)
Содержание 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 ...