28 lines
622 B
C
28 lines
622 B
C
#ifndef USBD_CONF_H
|
|
#define USBD_CONF_H
|
|
|
|
/* Match Betaflight's usbd_conf.h exactly */
|
|
#include "stm32f7xx_hal.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#define USBD_MAX_NUM_INTERFACES 3
|
|
#define USBD_MAX_NUM_CONFIGURATION 1
|
|
#define USBD_MAX_STR_DESC_SIZ 0x100
|
|
#define USBD_SUPPORT_USER_STRING 0
|
|
#define USBD_SELF_POWERED 1
|
|
#define USBD_DEBUG_LEVEL 0
|
|
#define USE_USB_FS
|
|
|
|
#define USBD_malloc malloc
|
|
#define USBD_free free
|
|
#define USBD_memset memset
|
|
#define USBD_memcpy memcpy
|
|
|
|
#define USBD_UsrLog(...)
|
|
#define USBD_ErrLog(...)
|
|
#define USBD_DbgLog(...)
|
|
|
|
#endif
|