Move global interrupt enable/disable functions out to Common.h and document them.
[pub/lufa.git] / LUFA / Drivers / USB / Core / AVR8 / Device_AVR8.h
index 77af512..47f58b2 100644 (file)
                
                        static inline void USB_Device_GetSerialString(uint16_t* UnicodeString)
                        {
-                               uint_reg_t CurrentGlobalInt = USB_INT_GetGlobalEnableState();
-                               USB_INT_GlobalDisable();
+                               uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();
+                               GlobalInterruptDisable();
                                
                                uint8_t SigReadAddress = 0x0E;
 
                                                                                                                           (('A' - 10) + SerialByte) : ('0' + SerialByte));
                                }
                                
-                               USB_INT_SetGlobalEnableState(CurrentGlobalInt);
+                               SetGlobalInterruptMask(CurrentGlobalInt);
                        }
                
        #endif