FreeEMS  0.2.0-SNAPSHOT-282-g9efc524
Macros
memory.h File Reference

Memory usage directives. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define flashSectorSize   1024
#define flashSectorSizeInWords   512 /* 512 words to a 1k flash sector */
#define RPAGE_TUNE_ONE   0xF8
#define RPAGE_TUNE_TWO   0xF9
#define RPAGE_FUEL_ONE   0xFA
#define RPAGE_FUEL_TWO   0xFB
#define RPAGE_TIME_ONE   0xFC
#define RPAGE_TIME_TWO   0xFD
#define RPAGE_LINEAR   0xFD
#define RPAGE_MIN   0xF8
#define PPAGE_MIN   0xE0
#define EPAGE_MIN   0x??
#define RWINDOW   __attribute__ ((section (".rpage"))) /* ~4k paged RAM window */
#define RXBUF   __attribute__ ((section (".rxbuf"))) /* ~2k block of RAM for receive buffer */
#define TXBUF   __attribute__ ((section (".txbuf"))) /* ~2k block of RAM for transmit buffer */
#define FIXEDCONF1   __attribute__ ((section (".fixedconf1"))) /* 1k unpaged block, primary static configuration. */
#define FIXEDCONF2   __attribute__ ((section (".fixedconf2"))) /* 1k unpaged block, secondary static configuration. */
#define TEXT1   __attribute__ ((section (".text1"))) /* 14k unpaged block, must be explicitly used. */
#define TEXT   __attribute__ ((section (".text"))) /* 14k unpaged block, code defaults to being stored here. */
#define DFAR(label)   __attribute__ ((section (label)))
#define FFAR(label)   __attribute__ ((far)) __attribute__ ((section (label)))
#define FPPAGE_E0X   FFAR(".ppageE0X")
#define FPPAGE_E0S   FFAR(".ppageE0S")
#define FPPAGE_E1   FFAR(".ppageE1")
#define FPPAGE_E2   FFAR(".ppageE2")
#define FPPAGE_E3   FFAR(".ppageE3")
#define FPPAGE_E4   FFAR(".ppageE4")
#define FPPAGE_E5   FFAR(".ppageE5")
#define FPPAGE_E6   FFAR(".ppageE6")
#define FPPAGE_E7   FFAR(".ppageE7")
#define FPPAGE_E8   FFAR(".ppageE8")
#define FPPAGE_E9   FFAR(".ppageE9")
#define FPPAGE_EA   FFAR(".ppageEA")
#define FPPAGE_EB   FFAR(".ppageEB")
#define FPPAGE_EC   FFAR(".ppageEC")
#define FPPAGE_ED   FFAR(".ppageED")
#define FPPAGE_EE   FFAR(".ppageEE")
#define FPPAGE_EF   FFAR(".ppageEF")
#define FPPAGE_F0   FFAR(".ppageF0")
#define FPPAGE_F1   FFAR(".ppageF1")
#define FPPAGE_F2   FFAR(".ppageF2")
#define FPPAGE_F3   FFAR(".ppageF3")
#define FPPAGE_F4   FFAR(".ppageF4")
#define FPPAGE_F5   FFAR(".ppageF5")
#define FPPAGE_F6   FFAR(".ppageF6")
#define FPPAGE_F7   FFAR(".ppageF7")
#define PPAGE_E0S   DFAR(".ppageE0S")
#define PPAGE_E0X   DFAR(".ppageE0X")
#define PPAGE_E1   DFAR(".ppageE1")
#define PPAGE_E2   DFAR(".ppageE2")
#define PPAGE_E3   DFAR(".ppageE3")
#define PPAGE_E4   DFAR(".ppageE4")
#define PPAGE_E5   DFAR(".ppageE5")
#define PPAGE_E6   DFAR(".ppageE6")
#define PPAGE_E7   DFAR(".ppageE7")
#define PPAGE_E8   DFAR(".ppageE8")
#define PPAGE_E9   DFAR(".ppageE9")
#define PPAGE_EA   DFAR(".ppageEA")
#define PPAGE_EB   DFAR(".ppageEB")
#define PPAGE_EC   DFAR(".ppageEC")
#define PPAGE_ED   DFAR(".ppageED")
#define PPAGE_EE   DFAR(".ppageEE")
#define PPAGE_EF   DFAR(".ppageEF")
#define PPAGE_F0   DFAR(".ppageF0")
#define PPAGE_F1   DFAR(".ppageF1")
#define PPAGE_F2   DFAR(".ppageF2")
#define PPAGE_F3   DFAR(".ppageF3")
#define PPAGE_F4   DFAR(".ppageF4")
#define PPAGE_F5   DFAR(".ppageF5")
#define PPAGE_F6   DFAR(".ppageF6")
#define PPAGE_F7   DFAR(".ppageF7")
#define FPAGE_F8   FFAR(".fpageF8")
#define DPAGE_F8   DFAR(".dpageF8")
#define PAGE_F8_PPAGE   0xF8
#define LOOKUPF   FFAR(".fpageF9")
#define LOOKUPD   DFAR(".dpageF9")
#define LOOKUP_PPAGE   0xF9
#define FUELTABLESF   FFAR(".fpageFA")
#define FUELTABLESD   DFAR(".dpageFA")
#define FUELTABLES_PPAGE   0xFA
#define TUNETABLESF   FFAR(".fpageFB")
#define TUNETABLESD1   DFAR(".dpageFB1")
#define TUNETABLESD2   DFAR(".dpageFB2")
#define TUNETABLESD3   DFAR(".dpageFB3")
#define TUNETABLESD4   DFAR(".dpageFB4")
#define TUNETABLESD5   DFAR(".dpageFB5")
#define TUNETABLESD6   DFAR(".dpageFB6")
#define TUNETABLESD7   DFAR(".dpageFB7")
#define TUNETABLESD8   DFAR(".dpageFB8")
#define TUNETABLES_PPAGE   0xFB
#define TIMETABLESF   FFAR(".fpageFC")
#define TIMETABLESD   DFAR(".dpageFC")
#define TIMETABLES_PPAGE   0xFC
#define FPAGE_FE   FFAR(".ppageFE") /* This is the block that is present in the page window using linear addressing, represents 0x8000 - 0xBFFF ("text2" paged) */
#define DPAGE_FE   DFAR(".ppageFE") /* This is the block that is present in the page window using linear addressing, represents 0x8000 - 0xBFFF ("text2" paged) */

Detailed Description

Memory usage directives.

This file is solely for the definition of compiler memory usage directives. Each one is just a short form of the larger statements DFAR and FFAR found near the top of this file.

Definition in file memory.h.

Macro Definition Documentation

#define flashSectorSize   1024

Definition at line 46 of file memory.h.

Referenced by eraseSector(), writeBlock(), and writeSector().

#define flashSectorSizeInWords   512 /* 512 words to a 1k flash sector */

Definition at line 47 of file memory.h.

Referenced by writeBlock(), and writeSector().

#define RPAGE_TUNE_ONE   0xF8

Definition at line 65 of file memory.h.

Referenced by initPagedRAMTune(), lookupBlockDetails(), and setupPagedRAM().

#define RPAGE_TUNE_TWO   0xF9

Definition at line 66 of file memory.h.

Referenced by initPagedRAMTune(), lookupBlockDetails(), and setupPagedRAM().

#define RPAGE_FUEL_ONE   0xFA

Definition at line 67 of file memory.h.

Referenced by initPagedRAMFuel(), lookupBlockDetails(), and setupPagedRAM().

#define RPAGE_FUEL_TWO   0xFB

Definition at line 68 of file memory.h.

Referenced by initPagedRAMFuel(), lookupBlockDetails(), and setupPagedRAM().

#define RPAGE_TIME_ONE   0xFC

Definition at line 69 of file memory.h.

Referenced by initPagedRAMTime(), lookupBlockDetails(), and setupPagedRAM().

#define RPAGE_TIME_TWO   0xFD

Definition at line 70 of file memory.h.

Referenced by initPagedRAMTime(), lookupBlockDetails(), and setupPagedRAM().

#define RPAGE_LINEAR   0xFD

Definition at line 71 of file memory.h.

Referenced by lookupBlockDetails().

#define RPAGE_MIN   0xF8

Definition at line 72 of file memory.h.

Referenced by decodePacketAndRespond().

#define PPAGE_MIN   0xE0

Definition at line 73 of file memory.h.

Referenced by decodePacketAndRespond().

#define EPAGE_MIN   0x??

Definition at line 74 of file memory.h.

EXTERN Tables4 TablesD RWINDOW   __attribute__ ((section (".rpage"))) /* ~4k paged RAM window */

Definition at line 85 of file memory.h.

#define RXBUF   __attribute__ ((section (".rxbuf"))) /* ~2k block of RAM for receive buffer */

Definition at line 86 of file memory.h.

#define TXBUF   __attribute__ ((section (".txbuf"))) /* ~2k block of RAM for transmit buffer */

Definition at line 87 of file memory.h.

#define FIXEDCONF1   __attribute__ ((section (".fixedconf1"))) /* 1k unpaged block, primary static configuration. */

Definition at line 91 of file memory.h.

#define FIXEDCONF2   __attribute__ ((section (".fixedconf2"))) /* 1k unpaged block, secondary static configuration. */

Definition at line 92 of file memory.h.

#define TEXT1   __attribute__ ((section (".text1"))) /* 14k unpaged block, must be explicitly used. */

Definition at line 93 of file memory.h.

#define TEXT   __attribute__ ((section (".text"))) /* 14k unpaged block, code defaults to being stored here. */

Definition at line 94 of file memory.h.

#define DFAR (   label)    __attribute__ ((section (label)))

Definition at line 99 of file memory.h.

#define FFAR (   label)    __attribute__ ((far)) __attribute__ ((section (label)))

Definition at line 101 of file memory.h.

#define FPPAGE_E0X   FFAR(".ppageE0X")

Definition at line 105 of file memory.h.

#define FPPAGE_E0S   FFAR(".ppageE0S")

Definition at line 106 of file memory.h.

#define FPPAGE_E1   FFAR(".ppageE1")

Definition at line 107 of file memory.h.

#define FPPAGE_E2   FFAR(".ppageE2")

Definition at line 108 of file memory.h.

#define FPPAGE_E3   FFAR(".ppageE3")

Definition at line 109 of file memory.h.

#define FPPAGE_E4   FFAR(".ppageE4")

Definition at line 110 of file memory.h.

#define FPPAGE_E5   FFAR(".ppageE5")

Definition at line 111 of file memory.h.

#define FPPAGE_E6   FFAR(".ppageE6")

Definition at line 112 of file memory.h.

#define FPPAGE_E7   FFAR(".ppageE7")

Definition at line 113 of file memory.h.

#define FPPAGE_E8   FFAR(".ppageE8")

Definition at line 114 of file memory.h.

#define FPPAGE_E9   FFAR(".ppageE9")

Definition at line 115 of file memory.h.

#define FPPAGE_EA   FFAR(".ppageEA")

Definition at line 116 of file memory.h.

#define FPPAGE_EB   FFAR(".ppageEB")

Definition at line 117 of file memory.h.

#define FPPAGE_EC   FFAR(".ppageEC")

Definition at line 118 of file memory.h.

#define FPPAGE_ED   FFAR(".ppageED")

Definition at line 119 of file memory.h.

#define FPPAGE_EE   FFAR(".ppageEE")

Definition at line 120 of file memory.h.

#define FPPAGE_EF   FFAR(".ppageEF")

Definition at line 121 of file memory.h.

#define FPPAGE_F0   FFAR(".ppageF0")

Definition at line 122 of file memory.h.

#define FPPAGE_F1   FFAR(".ppageF1")

Definition at line 123 of file memory.h.

#define FPPAGE_F2   FFAR(".ppageF2")

Definition at line 124 of file memory.h.

#define FPPAGE_F3   FFAR(".ppageF3")

Definition at line 125 of file memory.h.

#define FPPAGE_F4   FFAR(".ppageF4")

Definition at line 126 of file memory.h.

#define FPPAGE_F5   FFAR(".ppageF5")

Definition at line 127 of file memory.h.

#define FPPAGE_F6   FFAR(".ppageF6")

Definition at line 128 of file memory.h.

#define FPPAGE_F7   FFAR(".ppageF7")

Definition at line 129 of file memory.h.

#define PPAGE_E0S   DFAR(".ppageE0S")

Definition at line 132 of file memory.h.

#define PPAGE_E0X   DFAR(".ppageE0X")

Definition at line 133 of file memory.h.

#define PPAGE_E1   DFAR(".ppageE1")

Definition at line 134 of file memory.h.

#define PPAGE_E2   DFAR(".ppageE2")

Definition at line 135 of file memory.h.

#define PPAGE_E3   DFAR(".ppageE3")

Definition at line 136 of file memory.h.

#define PPAGE_E4   DFAR(".ppageE4")

Definition at line 137 of file memory.h.

#define PPAGE_E5   DFAR(".ppageE5")

Definition at line 138 of file memory.h.

#define PPAGE_E6   DFAR(".ppageE6")

Definition at line 139 of file memory.h.

#define PPAGE_E7   DFAR(".ppageE7")

Definition at line 140 of file memory.h.

#define PPAGE_E8   DFAR(".ppageE8")

Definition at line 141 of file memory.h.

#define PPAGE_E9   DFAR(".ppageE9")

Definition at line 142 of file memory.h.

#define PPAGE_EA   DFAR(".ppageEA")

Definition at line 143 of file memory.h.

#define PPAGE_EB   DFAR(".ppageEB")

Definition at line 144 of file memory.h.

#define PPAGE_EC   DFAR(".ppageEC")

Definition at line 145 of file memory.h.

#define PPAGE_ED   DFAR(".ppageED")

Definition at line 146 of file memory.h.

#define PPAGE_EE   DFAR(".ppageEE")

Definition at line 147 of file memory.h.

#define PPAGE_EF   DFAR(".ppageEF")

Definition at line 148 of file memory.h.

#define PPAGE_F0   DFAR(".ppageF0")

Definition at line 149 of file memory.h.

#define PPAGE_F1   DFAR(".ppageF1")

Definition at line 150 of file memory.h.

#define PPAGE_F2   DFAR(".ppageF2")

Definition at line 151 of file memory.h.

#define PPAGE_F3   DFAR(".ppageF3")

Definition at line 152 of file memory.h.

#define PPAGE_F4   DFAR(".ppageF4")

Definition at line 153 of file memory.h.

#define PPAGE_F5   DFAR(".ppageF5")

Definition at line 154 of file memory.h.

#define PPAGE_F6   DFAR(".ppageF6")

Definition at line 155 of file memory.h.

#define PPAGE_F7   DFAR(".ppageF7")

Definition at line 156 of file memory.h.

#define FPAGE_F8   FFAR(".fpageF8")

Definition at line 161 of file memory.h.

#define DPAGE_F8   DFAR(".dpageF8")

Definition at line 162 of file memory.h.

#define PAGE_F8_PPAGE   0xF8

Definition at line 163 of file memory.h.

#define LOOKUPF   FFAR(".fpageF9")

Definition at line 166 of file memory.h.

#define LOOKUPD   DFAR(".dpageF9")

Definition at line 167 of file memory.h.

#define LOOKUP_PPAGE   0xF9

Definition at line 168 of file memory.h.

Referenced by lookupBlockDetails().

#define FUELTABLESF   FFAR(".fpageFA")

Definition at line 171 of file memory.h.

const volatile mainTable LambdaTableFlashV FUELTABLESD   DFAR(".dpageFA")

Definition at line 172 of file memory.h.

#define FUELTABLES_PPAGE   0xFA

Definition at line 173 of file memory.h.

Referenced by lookupBlockDetails().

#define TUNETABLESF   FFAR(".fpageFB")

Definition at line 176 of file memory.h.

#define TUNETABLESD1   DFAR(".dpageFB1")

Definition at line 177 of file memory.h.

#define TUNETABLESD2   DFAR(".dpageFB2")

Definition at line 178 of file memory.h.

#define TUNETABLESD3   DFAR(".dpageFB3")

Definition at line 179 of file memory.h.

#define TUNETABLESD4   DFAR(".dpageFB4")

Definition at line 180 of file memory.h.

#define TUNETABLESD5   DFAR(".dpageFB5")

Definition at line 181 of file memory.h.

#define TUNETABLESD6   DFAR(".dpageFB6")

Definition at line 182 of file memory.h.

#define TUNETABLESD7   DFAR(".dpageFB7")

Definition at line 183 of file memory.h.

#define TUNETABLESD8   DFAR(".dpageFB8")

Definition at line 184 of file memory.h.

#define TUNETABLES_PPAGE   0xFB

Definition at line 185 of file memory.h.

Referenced by lookupBlockDetails().

#define TIMETABLESF   FFAR(".fpageFC")

Definition at line 188 of file memory.h.

const volatile mainTable InjectionAdvanceTableSecondaryFlashV TIMETABLESD   DFAR(".dpageFC")

Definition at line 189 of file memory.h.

#define TIMETABLES_PPAGE   0xFC

Definition at line 190 of file memory.h.

Referenced by lookupBlockDetails().

#define FPAGE_FE   FFAR(".ppageFE") /* This is the block that is present in the page window using linear addressing, represents 0x8000 - 0xBFFF ("text2" paged) */

Definition at line 193 of file memory.h.

#define DPAGE_FE   DFAR(".ppageFE") /* This is the block that is present in the page window using linear addressing, represents 0x8000 - 0xBFFF ("text2" paged) */

Definition at line 194 of file memory.h.