{\r
GCC_FORCE_POINTER_ACCESS(Buffer);\r
\r
- uint_reg_t CurrentGlobalInt = USB_INT_GetGlobalEnableState();\r
- USB_INT_GlobalDisable();\r
+ uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();\r
+ GlobalInterruptDisable();\r
\r
Buffer->In = DataPtr;\r
Buffer->Out = DataPtr;\r
Buffer->Size = Size;\r
Buffer->Count = 0;\r
\r
- USB_INT_SetGlobalEnableState(CurrentGlobalInt);\r
+ SetGlobalInterruptMask(CurrentGlobalInt);\r
}\r
\r
/** Retrieves the minimum number of bytes stored in a particular buffer. This value is computed\r
{\r
uint16_t Count;\r
\r
- uint_reg_t CurrentGlobalInt = USB_INT_GetGlobalEnableState();\r
- USB_INT_GlobalDisable();\r
+ uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();\r
+ GlobalInterruptDisable();\r
\r
Count = Buffer->Count;\r
\r
- USB_INT_SetGlobalEnableState(CurrentGlobalInt);\r
+ SetGlobalInterruptMask(CurrentGlobalInt);\r
return Count;\r
}\r
\r
if (++Buffer->In == Buffer->End)\r
Buffer->In = Buffer->Start;\r
\r
- uint_reg_t CurrentGlobalInt = USB_INT_GetGlobalEnableState();\r
- USB_INT_GlobalDisable();\r
+ uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();\r
+ GlobalInterruptDisable();\r
\r
Buffer->Count++;\r
\r
- USB_INT_SetGlobalEnableState(CurrentGlobalInt);\r
+ SetGlobalInterruptMask(CurrentGlobalInt);\r
}\r
\r
/** Removes an element from the ring buffer.\r
if (++Buffer->Out == Buffer->End)\r
Buffer->Out = Buffer->Start;\r
\r
- uint_reg_t CurrentGlobalInt = USB_INT_GetGlobalEnableState();\r
- USB_INT_GlobalDisable();\r
+ uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();\r
+ GlobalInterruptDisable();\r
\r
Buffer->Count--;\r
\r
- USB_INT_SetGlobalEnableState(CurrentGlobalInt);\r
+ SetGlobalInterruptMask(CurrentGlobalInt);\r
\r
return Data;\r
}\r