anchor.diff:      end;
   
       if dma then
  -      USBx_INEP(usbx,ep.num)^.DIEPDMA := (ep.dma_addr)
  +      USBx_INEP(usbx,ep.num)^.DIEPDMA := longword(ep.dma_addr)
       else
       begin
         (* Enable the Tx FIFO Empty Interrupt for this EP *)
  
positive.code: 
  function USB_EPClearStall(var USBx: USB_OTG_GlobalTypeDef; var ep: USB_OTG_EPTypeDef): HAL_StatusTypeDef;
  begin
    if (ep.is_in = 1) then
    begin
      USBx_INEP(usbx,ep.num)^.DIEPCTL := USBx_INEP(usbx,ep.num)^.DIEPCTL and (not USB_OTG_DIEPCTL_STALL);
  
  
negative.code: function USB_DeactivateEndpoint(var USBx: USB_OTG_GlobalTypeDef; var ep: USB_OTG_EPTypeDef): HAL_StatusTypeDef;
  begin
    (* Read DEPCTLn register *)
    if (ep.is_in) then
    begin
      USBx_DEVICE(USBx)^.DEACHMSK := USBx_DEVICE(USBx)^.DEACHMSK and (not (USB_OTG_DAINTMSK_IEPM and ((1 shl (ep.num)))));
      USBx_DEVICE(USBx)^.DAINTMSK := USBx_DEVICE(USBx)^.DAINTMSK and (not (USB_OTG_DAINTMSK_IEPM and ((1 shl (ep.num)))));
  