stm32-code/stm32f072_usb_custom_hid/User/Inc/usb_config.h

24 lines
638 B
C

#ifndef CHERRYUSB_CONFIG_H
#define CHERRYUSB_CONFIG_H
#define CONFIG_USB_PRINTF(...) printf(__VA_ARGS__)
#define CONFIG_USB_DBG_LEVEL USB_DBG_INFO
#define CONFIG_USB_PRINTF_COLOR_ENABLE
#define CONFIG_USB_ALIGN_SIZE 4
#define USB_NOCACHE_RAM_SECTION
/* ================ USB Device Port Configuration ================*/
#define CONFIG_USBDEV_MAX_BUS 1
#define CONFIG_USBDEV_EP_NUM 8
/* ================= USB Device Stack Configuration ================ */
#define CONFIG_USBDEV_REQUEST_BUFFER_LEN 256
/* ---------------- FSDEV Configuration ---------------- */
#define CONFIG_USBDEV_FSDEV_PMA_ACCESS 1
#endif