/*!
    \file  usbd_conf.h
    \brief USB device-mode configuration header file
*/

/*
    Copyright (C) 2017 GigaDevice

    2017-06-06, V1.0.0, firmware for GD32F3x0
*/

#ifndef USBD_CONF_H
#define USBD_CONF_H

#include "usb_conf.h"

#define USBD_CFG_MAX_NUM                1
#define USBD_ITF_MAX_NUM                1
#define USB_STR_DESC_MAX_SIZE           64

/* USB feature -- self powered */
#define USBD_SELF_POWERED

#define USB_STRING_COUNT                4

/* class layer parameter */
#define MSC_IN_EP                       EP1_IN
#define MSC_OUT_EP                      EP1_OUT

#ifdef USE_USBHS  
    #ifdef USE_ULPI_PHY
        #define MSC_DATA_PACKET_SIZE    512
    #else
        #define MSC_DATA_PACKET_SIZE    64
    #endif
#else  /* USE_USBFS */
    #define MSC_DATA_PACKET_SIZE        64
#endif

#define MSC_MEDIA_PACKET_SIZE           4096

#endif /* USBD_CONF_H */
