/* Auto-generated config file usbd_config.h */ #ifndef USBD_CONFIG_H #define USBD_CONFIG_H // <<< Use Configuration Wizard in Context Menu >>> // ---- USB Device Stack Core Options ---- // High Speed Support // Enable high speed specific descriptors support, e.g., DeviceQualifierDescriptor and OtherSpeedConfiguration Descriptor. // High speed support require descriptors description array on start, for LS/FS and HS support in first and second place. // usbd_hs_sp #ifndef CONF_USBD_HS_SP #define CONF_USBD_HS_SP 0 #endif // ---- USB Device Stack CDC ACM Options ---- // Enable String Descriptors // usb_cdcd_acm_str_en #ifndef CONF_USB_CDCD_ACM_STR_EN #define CONF_USB_CDCD_ACM_STR_EN 1 #endif // Language IDs // Language IDs in c format, split by comma (E.g., 0x0409 ...) // usb_cdcd_acm_langid #ifndef CONF_USB_CDCD_ACM_LANGID #define CONF_USB_CDCD_ACM_LANGID "0x0409" #endif #ifndef CONF_USB_CDCD_ACM_LANGID_DESC #define CONF_USB_CDCD_ACM_LANGID_DESC 4, 0x03, 0x09, 0x04, #endif // // CDC ACM Device Descriptor // bcdUSB // <0x0200=> USB 2.0 version // <0x0210=> USB 2.1 version // usb_cdcd_acm_bcdusb #ifndef CONF_USB_CDCD_ACM_BCDUSB #define CONF_USB_CDCD_ACM_BCDUSB 0x200 #endif // bMaxPackeSize0 // <0x0008=> 8 bytes // <0x0010=> 16 bytes // <0x0020=> 32 bytes // <0x0040=> 64 bytes // usb_cdcd_acm_bmaxpksz0 #ifndef CONF_USB_CDCD_ACM_BMAXPKSZ0 #define CONF_USB_CDCD_ACM_BMAXPKSZ0 0x40 #endif // idVender <0x0000-0xFFFF> // usb_cdcd_acm_idvender #ifndef CONF_USB_CDCD_ACM_IDVENDER #define CONF_USB_CDCD_ACM_IDVENDER 0x1d50 #endif // idProduct <0x0000-0xFFFF> // usb_cdcd_acm_idproduct #ifndef CONF_USB_CDCD_ACM_IDPRODUCT #define CONF_USB_CDCD_ACM_IDPRODUCT 0x6141 #endif // bcdDevice <0x0000-0xFFFF> // usb_cdcd_acm_bcddevice #ifndef CONF_USB_CDCD_ACM_BCDDEVICE #define CONF_USB_CDCD_ACM_BCDDEVICE 0x100 #endif // Enable string descriptor of iManufact // usb_cdcd_acm_imanufact_en #ifndef CONF_USB_CDCD_ACM_IMANUFACT_EN #define CONF_USB_CDCD_ACM_IMANUFACT_EN 1 #endif #ifndef CONF_USB_CDCD_ACM_IMANUFACT #define CONF_USB_CDCD_ACM_IMANUFACT (CONF_USB_CDCD_ACM_IMANUFACT_EN * (CONF_USB_CDCD_ACM_IMANUFACT_EN)) #endif // Unicode string of iManufact // usb_cdcd_acm_imanufact_str #ifndef CONF_USB_CDCD_ACM_IMANUFACT_STR #define CONF_USB_CDCD_ACM_IMANUFACT_STR "sysmocom - s.f.m.c. GmbH" #endif #ifndef CONF_USB_CDCD_ACM_IMANUFACT_STR_DESC #define CONF_USB_DFUD_IMANUFACT_STR_DESC 50, 0x03, 's',0, 'y',0, 's',0, 'm',0, 'o',0, 'c',0, 'o',0, 'm',0, ' ',0, '-',0, ' ',0, \ 's',0, '.',0, 'f',0, '.',0, 'm',0, '.',0, 'c',0, '.',0, ' ',0, 'G',0, 'm',0, 'b',0, 'H',0, #endif // // Enable string descriptor of iProduct // usb_cdcd_acm_iproduct_en #ifndef CONF_USB_CDCD_ACM_IPRODUCT_EN #define CONF_USB_CDCD_ACM_IPRODUCT_EN 1 #endif #ifndef CONF_USB_CDCD_ACM_IPRODUCT #define CONF_USB_CDCD_ACM_IPRODUCT \ (CONF_USB_CDCD_ACM_IPRODUCT_EN * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN)) #endif // Unicode string of iProduct // usb_cdcd_acm_iproduct_str #ifndef CONF_USB_CDCD_ACM_IPRODUCT_STR #define CONF_USB_CDCD_ACM_IPRODUCT_STR "sysmoOCTSIM" #endif #ifndef CONF_USB_CDCD_ACM_IPRODUCT_STR_DESC #define CONF_USB_CDCD_ACM_IPRODUCT_STR_DESC \ 24, 0x03, 's', 0x00, 'y', 0x00, 's', 0x00, 'm', 0x00, 'o', 0x00, 'O', 0x00, 'C', 0x00, 'T', 0x00, 'S', 0x00, 'I', \ 0x00, 'M', 0x00, #endif // // Enable string descriptor of iSerialNum // usb_cdcd_acm_iserialnum_en #ifndef CONF_USB_CDCD_ACM_ISERIALNUM_EN #define CONF_USB_CDCD_ACM_ISERIALNUM_EN 0 #endif #ifndef CONF_USB_CDCD_ACM_ISERIALNUM #define CONF_USB_CDCD_ACM_ISERIALNUM \ (CONF_USB_CDCD_ACM_ISERIALNUM_EN \ * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN + CONF_USB_CDCD_ACM_ISERIALNUM_EN)) #endif // Unicode string of iSerialNum // usb_cdcd_acm_iserialnum_str #ifndef CONF_USB_CDCD_ACM_ISERIALNUM_STR #define CONF_USB_CDCD_ACM_ISERIALNUM_STR "123456789ABCDEF" #endif #ifndef CONF_USB_CDCD_ACM_ISERIALNUM_STR_DESC #define CONF_USB_CDCD_ACM_ISERIALNUM_STR_DESC #endif // // bNumConfigurations <0x01-0xFF> // usb_cdcd_acm_bnumconfig #ifndef CONF_USB_CDCD_ACM_BNUMCONFIG #define CONF_USB_CDCD_ACM_BNUMCONFIG 0x1 #endif // // CDC ACM Configuration Descriptor // bConfigurationValue <0x01-0xFF> // usb_cdcd_acm_bconfigval #ifndef CONF_USB_CDCD_ACM_BCONFIGVAL #define CONF_USB_CDCD_ACM_BCONFIGVAL 0x1 #endif // Enable string descriptor of iConfig // usb_cdcd_acm_iconfig_en #ifndef CONF_USB_CDCD_ACM_ICONFIG_EN #define CONF_USB_CDCD_ACM_ICONFIG_EN 0 #endif #ifndef CONF_USB_CDCD_ACM_ICONFIG #define CONF_USB_CDCD_ACM_ICONFIG \ (CONF_USB_CDCD_ACM_ICONFIG_EN \ * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN + CONF_USB_CDCD_ACM_ISERIALNUM_EN \ + CONF_USB_CDCD_ACM_ICONFIG_EN)) #endif // Unicode string of iConfig // usb_cdcd_acm_iconfig_str #ifndef CONF_USB_CDCD_ACM_ICONFIG_STR #define CONF_USB_CDCD_ACM_ICONFIG_STR "" #endif #ifndef CONF_USB_CDCD_ACM_ICONFIG_STR_DESC #define CONF_USB_CDCD_ACM_ICONFIG_STR_DESC #endif // // bmAttributes // <0x80=> Bus power supply, not support for remote wakeup // <0xA0=> Bus power supply, support for remote wakeup // <0xC0=> Self powered, not support for remote wakeup // <0xE0=> Self powered, support for remote wakeup // usb_cdcd_acm_bmattri #ifndef CONF_USB_CDCD_ACM_BMATTRI #define CONF_USB_CDCD_ACM_BMATTRI 0x80 #endif // bMaxPower <0x00-0xFF> // usb_cdcd_acm_bmaxpower #ifndef CONF_USB_CDCD_ACM_BMAXPOWER #define CONF_USB_CDCD_ACM_BMAXPOWER 0x32 #endif // // CDC ACM Communication Interface Descriptor // bInterfaceNumber <0x00-0xFF> // usb_cdcd_acm_comm_bifcnum #ifndef CONF_USB_CDCD_ACM_COMM_BIFCNUM #define CONF_USB_CDCD_ACM_COMM_BIFCNUM 0x1 #endif // bAlternateSetting <0x00-0xFF> // usb_cdcd_acm_comm_baltset #ifndef CONF_USB_CDCD_ACM_COMM_BALTSET #define CONF_USB_CDCD_ACM_COMM_BALTSET 0x0 #endif // iInterface <0x00-0xFF> // usb_cdcd_acm_comm_iifc #ifndef CONF_USB_CDCD_ACM_COMM_IIFC #define CONF_USB_CDCD_ACM_COMM_IIFC 0x0 #endif // Interrupt IN Endpoint Address // <0x81=> EndpointAddress = 0x81 // <0x82=> EndpointAddress = 0x82 // <0x83=> EndpointAddress = 0x83 // <0x84=> EndpointAddress = 0x84 // <0x85=> EndpointAddress = 0x85 // <0x86=> EndpointAddress = 0x86 // <0x87=> EndpointAddress = 0x87 // usb_cdcd_acm_epaddr #ifndef CONF_USB_CDCD_ACM_COMM_INT_EPADDR #define CONF_USB_CDCD_ACM_COMM_INT_EPADDR 0x82 #endif // Interrupt IN Endpoint wMaxPacketSize // <0x0008=> 8 bytes // <0x0010=> 16 bytes // <0x0020=> 32 bytes // <0x0040=> 64 bytes // usb_cdcd_acm_comm_int_maxpksz #ifndef CONF_USB_CDCD_ACM_COMM_INT_MAXPKSZ #define CONF_USB_CDCD_ACM_COMM_INT_MAXPKSZ 0x40 #endif // Interrupt IN Endpoint Interval <0x00-0xFF> // usb_cdcd_acm_comm_int_interval #ifndef CONF_USB_CDCD_ACM_COMM_INT_INTERVAL #define CONF_USB_CDCD_ACM_COMM_INT_INTERVAL 0xa #endif // // CDC ACM Data Interface Descriptor // bInterfaceNumber <0x00-0xFF> // usb_cdcd_acm_data_bifcnum #ifndef CONF_USB_CDCD_ACM_DATA_BIFCNUM #define CONF_USB_CDCD_ACM_DATA_BIFCNUM 0x2 #endif // bAlternateSetting <0x00-0xFF> // usb_cdcd_acm_data_baltset #ifndef CONF_USB_CDCD_ACM_DATA_BALTSET #define CONF_USB_CDCD_ACM_DATA_BALTSET 0x0 #endif // iInterface <0x00-0xFF> // usb_cdcd_acm_data_iifc #ifndef CONF_USB_CDCD_ACM_DATA_IIFC #define CONF_USB_CDCD_ACM_DATA_IIFC 0x0 #endif // BULK IN Endpoint Address // <0x81=> EndpointAddress = 0x81 // <0x82=> EndpointAddress = 0x82 // <0x83=> EndpointAddress = 0x83 // <0x84=> EndpointAddress = 0x84 // <0x85=> EndpointAddress = 0x85 // <0x86=> EndpointAddress = 0x86 // <0x87=> EndpointAddress = 0x87 // usb_cdcd_acm_data_bulkin_epaddr #ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_EPADDR #define CONF_USB_CDCD_ACM_DATA_BULKIN_EPADDR 0x81 #endif // BULK IN Endpoint wMaxPacketSize // <0x0008=> 8 bytes // <0x0010=> 16 bytes // <0x0020=> 32 bytes // <0x0040=> 64 bytes // usb_cdcd_acm_data_builin_maxpksz #ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ #define CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ 0x40 #endif // BULK IN Endpoint wMaxPacketSize for High Speed // <0x0008=> 8 bytes // <0x0010=> 16 bytes // <0x0020=> 32 bytes // <0x0040=> 64 bytes // <0x0080=> 128 bytes // <0x0100=> 256 bytes // <0x0200=> 512 bytes // usb_cdcd_acm_data_builin_maxpksz_hs #ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ_HS #define CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ_HS 0x200 #endif // BULK OUT Endpoint Address // <0x01=> EndpointAddress = 0x01 // <0x02=> EndpointAddress = 0x02 // <0x03=> EndpointAddress = 0x03 // <0x04=> EndpointAddress = 0x04 // <0x05=> EndpointAddress = 0x05 // <0x06=> EndpointAddress = 0x06 // <0x07=> EndpointAddress = 0x07 // usb_cdcd_acm_data_bulkout_epaddr #ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_EPADDR #define CONF_USB_CDCD_ACM_DATA_BULKOUT_EPADDR 0x1 #endif // BULK OUT Endpoint wMaxPacketSize // <0x0008=> 8 bytes // <0x0010=> 16 bytes // <0x0020=> 32 bytes // <0x0040=> 64 bytes // usb_cdcd_acm_data_buckout_maxpksz #ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ #define CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ 0x40 #endif // BULK OUT Endpoint wMaxPacketSize for High Speed // <0x0008=> 8 bytes // <0x0010=> 16 bytes // <0x0020=> 32 bytes // <0x0040=> 64 bytes // <0x0080=> 128 bytes // <0x0100=> 256 bytes // <0x0200=> 512 bytes // usb_cdcd_acm_data_buckout_maxpksz_hs #ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ_HS #define CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ_HS 0x200 #endif // // <<< end of configuration section >>> #endif // USBD_CONFIG_H