2014-07-30 11:19 GMT+04:00 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com>: > On Mon, Jul 28, 2014 at 08:09:28PM +0200, Georg-Johann Lay wrote: >> Senthil Kumar Selvaraj schrieb: >> >The below patch adds a new preprocessor define for the device name >> >(__AVR_DEVICE_NAME__) that was passed to the compiler. >> > >> >While the device name macro (say __AVR_ATmega128__) can be used to check >> >for a specific device, there is no way right now for code to get the >> >device name it is being compiled against (without checking >> >for every possible device). >> >> Shouldn't this also be added to the documentation? >> There's a section "AVR Built-in Macros" in the manual. > > Thanks for reminding me, Johann. Here's the patch - if ok, could someone > commit please? > > Regards > Senthil > > 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com> > > * doc/invoke.texi (AVR Options): Add documentation about > __AVR_DEVICE_NAME__ built-in macro. >
Committed. Denis.