123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef _TUSB_CONFIG_H_
- #define _TUSB_CONFIG_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef BOARD_TUD_RHPORT
- #define BOARD_TUD_RHPORT 0
- #endif
- #ifndef BOARD_TUD_MAX_SPEED
- #define BOARD_TUD_MAX_SPEED OPT_MODE_DEFAULT_SPEED
- #endif
- #ifndef CFG_TUSB_MCU
- #error CFG_TUSB_MCU must be defined
- #endif
- #ifndef CFG_TUSB_OS
- #define CFG_TUSB_OS OPT_OS_NONE
- #endif
- #ifndef CFG_TUSB_DEBUG
- #define CFG_TUSB_DEBUG 0
- #endif
- #define CFG_TUD_ENABLED 1
- #define CFG_TUD_MAX_SPEED BOARD_TUD_MAX_SPEED
- #ifndef CFG_TUSB_MEM_SECTION
- #define CFG_TUSB_MEM_SECTION
- #endif
- #ifndef CFG_TUSB_MEM_ALIGN
- #define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
- #endif
- #ifndef CFG_TUD_ENDPOINT0_SIZE
- #define CFG_TUD_ENDPOINT0_SIZE 64
- #endif
- #define CFG_TUD_HID 1
- #define CFG_TUD_CDC 0
- #define CFG_TUD_MSC 0
- #define CFG_TUD_MIDI 0
- #define CFG_TUD_VENDOR 0
- #define CFG_TUD_HID_EP_BUFSIZE 16
- #ifdef __cplusplus
- }
- #endif
- #endif
|