comparison code_part1/OSTC_code_c_part2/18f4685_ostc.lkr @ 116:14a074e1a375

Split C code, and use direct linking.
author JeanDo
date Sun, 26 Dec 2010 14:30:13 +0100
parents 96a35aeda5f2
children
comparison
equal deleted inserted replaced
115:50a06adabc67 116:14a074e1a375
1
2
3 // OSTC - diving computer code 1 // OSTC - diving computer code
4 2
5 // Copyright (C) 2008 HeinrichsWeikamp GbR 3 // Copyright (C) 2008 HeinrichsWeikamp GbR
6 4
7 5 //
8
9 // This program is free software: you can redistribute it and/or modify 6 // This program is free software: you can redistribute it and/or modify
10 7
11 // it under the terms of the GNU General Public License as published by 8 // it under the terms of the GNU General Public License as published by
12 9
13 // the Free Software Foundation, either version 3 of the License, or 10 // the Free Software Foundation, either version 3 of the License, or
14 11
15 // (at your option) any later version. 12 // (at your option) any later version.
16 13
17 14 //
18
19 // This program is distributed in the hope that it will be useful, 15 // This program is distributed in the hope that it will be useful,
20 16
21 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
22 18
23 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 20
25 // GNU General Public License for more details. 21 // GNU General Public License for more details.
26 22
27 23 //
28
29 // You should have received a copy of the GNU General Public License 24 // You should have received a copy of the GNU General Public License
30 25
31 // along with this program. If not, see <http://www.gnu.org/licenses/>. 26 // along with this program. If not, see <http://www.gnu.org/licenses/>.
32 27
33 28 //
34
35
36
37 // File: 18f4685.lkr 29 // File: 18f4685.lkr
38 30
39 // Sample linker script for the PIC18F4685 processor 31 // Sample linker script for the PIC18F4685 processor
40 32
41 // modified by chsw for ostc, Nov. 2007 33 // modified by chsw for ostc, Nov. 2007
44 36
45 LIBPATH . 37 LIBPATH .
46 38
47 39
48 40
49 //FILES c018i.o 41 FILES "clib.lib"
42 FILES "p18f4685.lib"
50 43
51 FILES clib.lib
52
53 FILES p18f4685.lib
54
55
56
57 //CODEPAGE NAME=vectors START=0x0 END=0x29 PROTECTED
58
59 //CODEPAGE NAME=page START=0x2A END=0x17FFF
60 44
61 CODEPAGE NAME=page START=0x0 END=0x17FFF 45 CODEPAGE NAME=page START=0x0 END=0x17FFF
62 46
63 CODEPAGE NAME=idlocs START=0x200000 END=0x200007 PROTECTED 47 CODEPAGE NAME=idlocs START=0x200000 END=0x200007 PROTECTED
64 48
102 86
103 DATABANK NAME=sfr14 START=0xE00 END=0xEFF PROTECTED 87 DATABANK NAME=sfr14 START=0xE00 END=0xEFF PROTECTED
104 88
105 DATABANK NAME=sfr15 START=0xF00 END=0xF5F PROTECTED 89 DATABANK NAME=sfr15 START=0xF00 END=0xF5F PROTECTED
106 90
91
107 ACCESSBANK NAME=accesssfr START=0xF60 END=0xFFF PROTECTED 92 ACCESSBANK NAME=accesssfr START=0xF60 END=0xFFF PROTECTED
108 93
109 94
110 95
111 SECTION NAME=CONFIG ROM=config 96 SECTION NAME=CONFIG ROM=config