/* free buffer used from the application realizing it to the line toggles bit SW_BUF in the double buffered endpoint register  */
void USB_FreeUserBuf(uint8_t bEpNum, uint8_t bDir)
/* free buffer used from the application realizing it to the line toggles bit SW_BUF in the double buffered endpoint register  */
void USB_FreeUserBuf(uint8_t bEpNum, uint8_t bDir)
{
    if (bDir == EP_DBUF_OUT)
    {
        _ToggleDTOG_TX(bEpNum);
    }
    else if (bDir == EP_DBUF_IN)
    {
        _ToggleDTOG_RX(bEpNum);
    }
}