[Feature Request] Compile Time Macros for MCU specs
Original Reporter info from Mantis: Simon Ameis @SAmeis
-
Reporter name: Simon Ameis
Original Reporter info from Mantis: Simon Ameis @SAmeis
- Reporter name: Simon Ameis
Description:
Please expose compiler known microcontroller unit dependant specifications via compile time macros like as found in compiler/avr/cpuinfo.pas
&LtPos;ul>
&LtPos;li>flashbase&LtPos;/li>
&LtPos;li>flashsize&LtPos;/li>
&LtPos;li>srambase&LtPos;/li>
&LtPos;li>sramsize&LtPos;/li>
&LtPos;li>eeprombase&LtPos;/li>
&LtPos;li>eepromsize&LtPos;/li>
&LtPos;/ul>
Additional information:
Using them may be relevant when writing code which is the same on all MCU's but need to react on individual hardware specifications.
E.g. Program memory location counter depends on flashsize but is required to calculate timings for RET instruction.
Mantis conversion info:
- Mantis ID: 29365
- OS: embedded
- Platform: AVR
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 33236
- Target version: 3.2.0