avr-libc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-commit] [2466] patch [#8565] (modified): Compute and include d


From: Senthil Kumar Selvaraj
Subject: [avr-libc-commit] [2466] patch [#8565] (modified): Compute and include device header file name from __AVR_DEV_LIB_NAME__ as fallback in io .h.
Date: Mon, 23 Feb 2015 06:06:57 +0000

Revision: 2466
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2466
Author:   saaadhu
Date:     2015-02-23 06:06:56 +0000 (Mon, 23 Feb 2015)
Log Message:
-----------
patch [#8565] (modified): Compute and include device header file name from 
__AVR_DEV_LIB_NAME__ as fallback in io.h.

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/NEWS
    trunk/avr-libc/include/avr/io.h

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2015-02-05 13:09:43 UTC (rev 2465)
+++ trunk/avr-libc/ChangeLog    2015-02-23 06:06:56 UTC (rev 2466)
@@ -17,3 +17,9 @@
        * include/avr/iox32a4.h: (Dito.)
        * include/avr/iox32d4.h: (Dito.)
        * include/avr/iox64a3.h: (Dito.)
+
+2015-02-23  Joern Rennecke  <address@hidden>
+                   Senthil Kumar Selvaraj <address@hidden>
+
+       patch #8565:
+       * include/avr/io.h: Use __AVR_DEV_LIB_NAME__ as a fallback.

Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2015-02-05 13:09:43 UTC (rev 2465)
+++ trunk/avr-libc/NEWS 2015-02-23 06:06:56 UTC (rev 2466)
@@ -13,6 +13,8 @@
   [#8543] Fix multiple issues with device header files
   [#8563] Generalize power reduction macros in power.h by removing hard coded 
device names
   [#8590] WDT enable/disable for devices with CCP
+  [#8565] Compute and include device header file name from
+          __AVR_DEV_LIB_NAME__ as fallback in io.h.
 
 * Other changes:
 

Modified: trunk/avr-libc/include/avr/io.h
===================================================================
--- trunk/avr-libc/include/avr/io.h     2015-02-05 13:09:43 UTC (rev 2465)
+++ trunk/avr-libc/include/avr/io.h     2015-02-23 06:06:56 UTC (rev 2466)
@@ -531,6 +531,11 @@
 #  include <avr/iotn11.h>
 #elif defined (__AVR_M3000__)
 #  include <avr/iom3000.h>
+#elif defined (__AVR_DEV_LIB_NAME__)
+#  define __concat__(a,b) a##b
+#  define __header1__(a,b) __concat__(a,b)
+#  define __AVR_DEVICE_HEADER__ <avr/__header1__(io,__AVR_DEV_LIB_NAME__).h>
+#  include __AVR_DEVICE_HEADER__
 #else
 #  if !defined(__COMPILING_AVR_LIBC__)
 #    warning "device type not defined"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]