00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00041
00042
00043 #ifndef FILE_MEMORY_H_SEEN
00044 #define FILE_MEMORY_H_SEEN
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #define RWINDOW __attribute__ ((section (".rpage")))
00056 #define RXBUF __attribute__ ((section (".rxbuf")))
00057 #define TXBUF __attribute__ ((section (".txbuf")))
00058
00059
00060
00061 #define FIXEDCONF1 __attribute__ ((section (".fixedconf1")))
00062 #define FIXEDCONF2 __attribute__ ((section (".fixedconf2")))
00063 #define TEXT1 __attribute__ ((section (".text1")))
00064 #define TEXT __attribute__ ((section (".text")))
00065
00066
00067
00068
00069 #define DFAR(label) __attribute__ ((section (label)))
00070
00071 #define FFAR(label) __attribute__ ((far)) __attribute__ ((section (label)))
00072
00073
00074
00075 #define FPPAGE_E0 FFAR(".ppageE0")
00076 #define FPPAGE_E1 FFAR(".ppageE1")
00077 #define FPPAGE_E2 FFAR(".ppageE2")
00078 #define FPPAGE_E3 FFAR(".ppageE3")
00079 #define FPPAGE_E4 FFAR(".ppageE4")
00080 #define FPPAGE_E5 FFAR(".ppageE5")
00081 #define FPPAGE_E6 FFAR(".ppageE6")
00082 #define FPPAGE_E7 FFAR(".ppageE7")
00083 #define FPPAGE_E8 FFAR(".ppageE8")
00084 #define FPPAGE_E9 FFAR(".ppageE9")
00085 #define FPPAGE_EA FFAR(".ppageEA")
00086 #define FPPAGE_EB FFAR(".ppageEB")
00087 #define FPPAGE_EC FFAR(".ppageEC")
00088 #define FPPAGE_ED FFAR(".ppageED")
00089 #define FPPAGE_EE FFAR(".ppageEE")
00090 #define FPPAGE_EF FFAR(".ppageEF")
00091 #define FPPAGE_F0 FFAR(".ppageF0")
00092 #define FPPAGE_F1 FFAR(".ppageF1")
00093 #define FPPAGE_F2 FFAR(".ppageF2")
00094 #define FPPAGE_F3 FFAR(".ppageF3")
00095 #define FPPAGE_F4 FFAR(".ppageF4")
00096 #define FPPAGE_F5 FFAR(".ppageF5")
00097 #define FPPAGE_F6 FFAR(".ppageF6")
00098 #define FPPAGE_F7 FFAR(".ppageF7")
00099
00100
00101 #define PPAGE_E0 DFAR(".ppageE0")
00102 #define PPAGE_E1 DFAR(".ppageE1")
00103 #define PPAGE_E2 DFAR(".ppageE2")
00104 #define PPAGE_E3 DFAR(".ppageE3")
00105 #define PPAGE_E4 DFAR(".ppageE4")
00106 #define PPAGE_E5 DFAR(".ppageE5")
00107 #define PPAGE_E6 DFAR(".ppageE6")
00108 #define PPAGE_E7 DFAR(".ppageE7")
00109 #define PPAGE_E8 DFAR(".ppageE8")
00110 #define PPAGE_E9 DFAR(".ppageE9")
00111 #define PPAGE_EA DFAR(".ppageEA")
00112 #define PPAGE_EB DFAR(".ppageEB")
00113 #define PPAGE_EC DFAR(".ppageEC")
00114 #define PPAGE_ED DFAR(".ppageED")
00115 #define PPAGE_EE DFAR(".ppageEE")
00116 #define PPAGE_EF DFAR(".ppageEF")
00117 #define PPAGE_F0 DFAR(".ppageF0")
00118 #define PPAGE_F1 DFAR(".ppageF1")
00119 #define PPAGE_F2 DFAR(".ppageF2")
00120 #define PPAGE_F3 DFAR(".ppageF3")
00121 #define PPAGE_F4 DFAR(".ppageF4")
00122 #define PPAGE_F5 DFAR(".ppageF5")
00123 #define PPAGE_F6 DFAR(".ppageF6")
00124 #define PPAGE_F7 DFAR(".ppageF7")
00125
00126
00127
00128
00129 #define FPAGE_F8 FFAR(".fpageF8")
00130 #define DPAGE_F8 DFAR(".dpageF8")
00131 #define PAGE_F8_PPAGE 0xF8
00132
00133
00134 #define LOOKUPF FFAR(".fpageF9")
00135 #define LOOKUPD DFAR(".dpageF9")
00136 #define LOOKUP_PPAGE 0xF9
00137
00138
00139 #define FUELTABLESF FFAR(".fpageFA")
00140 #define FUELTABLESD DFAR(".dpageFA")
00141 #define FUELTABLES_PPAGE 0xFA
00142
00143
00144 #define TUNETABLESF FFAR(".fpageFB")
00145 #define TUNETABLESD1 DFAR(".dpageFB1")
00146 #define TUNETABLESD2 DFAR(".dpageFB2")
00147 #define TUNETABLESD3 DFAR(".dpageFB3")
00148 #define TUNETABLESD4 DFAR(".dpageFB4")
00149 #define TUNETABLESD5 DFAR(".dpageFB5")
00150 #define TUNETABLESD6 DFAR(".dpageFB6")
00151 #define TUNETABLESD7 DFAR(".dpageFB7")
00152 #define TUNETABLESD8 DFAR(".dpageFB8")
00153 #define TUNETABLES_PPAGE 0xFB
00154
00155
00156 #define TIMETABLESF FFAR(".fpageFC")
00157 #define TIMETABLESD DFAR(".dpageFC")
00158 #define TIMETABLES_PPAGE 0xFC
00159
00160
00161 #define FPAGE_FE FFAR(".ppageFE")
00162 #define DPAGE_FE DFAR(".ppageFE")
00163
00164
00165
00166
00167
00168
00169
00170
00171 #else
00172
00173 #warning "Header file MEMORY_H seen before, sort it out!"
00174
00175 #endif