Move global interrupt enable/disable functions out to Common.h and document them.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / UC3 / Device_UC3.h
index 150b188..2a029bf 100644 (file)
 \r
                        static inline void USB_Device_GetSerialString(uint16_t* UnicodeString)\r
                        {\r
-                               uint_reg_t CurrentGlobalInt = USB_INT_GetGlobalEnableState();\r
-                               USB_INT_GlobalDisable();\r
+                               uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();\r
+                               GlobalInterruptDisable();\r
                                \r
                                uint8_t* SigReadAddress = (uint8_t*)0x80800204;\r
 \r
                                                                                                                           (('A' - 10) + SerialByte) : ('0' + SerialByte));\r
                                }\r
                                \r
-                               USB_INT_SetGlobalEnableState(CurrentGlobalInt);\r
+                               SetGlobalInterruptMask(CurrentGlobalInt);\r
                        }\r
        #endif\r
 \r