/* Allocate the (fully) FIFO for EP0 only. This will divide the FIFO into two equal part. half for for EP0 IN and other half for EP0 OUT  */
static void alloc_fifo_for_ep0_only(usbd_device *dev)
/* Allocate the (fully) FIFO for EP0 only. This will divide the FIFO into two equal part. half for for EP0 IN and other half for EP0 OUT  */
static void alloc_fifo_for_ep0_only(usbd_device *dev)
{
	uint16_t fifo_depth = get_fifo_depth(dev);
	uint16_t fifo_depth_2 = fifo_depth / 2;
	REBASE(DWC_OTG_GRXFSIZ) = fifo_depth_2;
	REBASE(DWC_OTG_DIEP0TXF) = DWC_OTG_DIEP0TXF_TX0FD(fifo_depth_2) |
								DWC_OTG_DIEP0TXF_TX0FSA(fifo_depth_2);
}