AVR: fix redeclaration of ISR_PROTO() macro.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Mar 2010 11:53:10 +0000 (11:53 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Mar 2010 11:53:10 +0000 (11:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3223 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/irq.h

index 83b0496415751f3fa601cb0649fc3c39579aa5c8..4e61f20a41590f3462d3e602f96289a683447f40 100644 (file)
                        }                                               \
                        INLINE void __isr_##vect(void)
 
-               /**
-                * Interrupt service routine prototype: can be used for
-                * forward declarations.
-                */
-               #define ISR_PROTO(vect) ISR(vect)
-
                /**
                 * With task priorities enabled each ISR is used a point to
                 * check if we need to perform a context switch.
                #if CONFIG_KERN_PRI
                        #define DECLARE_ISR(func) \
                                DECLARE_ISR_CONTEXT_SWITCH(func)
-
+                       /**
+                        * Interrupt service routine prototype: can be used for
+                        * forward declarations.
+                        */
                        #define ISR_PROTO(func) \
                                ISR_PROTO_CONTEXT_SWITCH(func)
                #endif /* !CONFIG_KERN_PRI */
        #endif
 
-       #ifndef DECLARE_ISR
-               #define ISR_PROTO(vect) ISR(vect)
+       #ifndef ISR_PROTO
+               #define ISR_PROTO(vect) ISR(vect)
        #endif
        #ifndef DECLARE_ISR
                #define DECLARE_ISR(vect) ISR(vect)
        #ifndef DECLARE_ISR_CONTEXT_SWITCH
                #define DECLARE_ISR_CONTEXT_SWITCH(vect) ISR(vect)
        #endif
-       #ifndef ISR_PROTO
-               #define ISR_PROTO(func) ISR(vect)
-       #endif
        #ifndef ISR_PROTO_CONTEXT_SWITCH
                #define ISR_PROTO_CONTEXT_SWITCH(func) ISR(vect)
        #endif