Skip to content
Snippets Groups Projects
Select Git revision
  • fee89d520fb02b6fb673050c9d2043e14641edf6
  • main default protected
  • phhw
  • captouch-threshold
  • t
  • dos
  • test2
  • test
  • slewtest
  • simtest
  • view-think
  • vm-pending
  • media-buf
  • scope
  • passthrough
  • wave
  • vsync
  • dos-main-patch-50543
  • json-error
  • rahix/big-flow3r
  • pippin/media_framework
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
34 results

usbd_conf.h

Blame
  • Forked from flow3r / flow3r firmware
    1529 commits behind, 36 commits ahead of the upstream repository.
    usbd_conf.h 1.06 KiB
    #ifndef __USBD_CONF__H__
    #define __USBD_CONF__H__
    
    #define USBD_CFG_MAX_NUM            1
    #define USBD_ITF_MAX_NUM            1 // TODO need more than 1?
    
    // CDC Endpoints parameters
    #define CDC_IN_EP                   0x81  /* EP1 for data IN */
    #define CDC_OUT_EP                  0x01  /* EP1 for data OUT */
    #define CDC_CMD_EP                  0x82  /* EP2 for CDC commands */
    #define CDC_DATA_MAX_PACKET_SIZE    64   /* Endpoint IN & OUT Packet size */
    #define CDC_CMD_PACKET_SZE          8    /* Control Endpoint Packet size */
    #define CDC_IN_FRAME_INTERVAL       5    /* Number of frames between IN transfers */
    #define APP_RX_DATA_SIZE            2048 /* Total size of IN buffer: 
                                                    APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL */
    
    // MSC parameters
    #define MSC_IN_EP                   0x83
    #define MSC_OUT_EP                  0x03
    #define MSC_MAX_PACKET              64
    #define MSC_MEDIA_PACKET            4096
    
    // for both?
    #define APP_FOPS                        VCP_fops
    
    #endif //__USBD_CONF__H__