clean up
This commit is contained in:
parent
87d89cf5cb
commit
8144be262b
|
@ -81,7 +81,7 @@
|
||||||
// #define CFG_TUD_DESC_PID 0x0001
|
// #define CFG_TUD_DESC_PID 0x0001
|
||||||
|
|
||||||
//------------- CLASS -------------//
|
//------------- CLASS -------------//
|
||||||
#define CFG_TUD_CDC 0
|
#define CFG_TUD_CDC 1
|
||||||
#define CFG_TUD_MSC 1
|
#define CFG_TUD_MSC 1
|
||||||
|
|
||||||
#define CFG_TUD_HID 0
|
#define CFG_TUD_HID 0
|
||||||
|
|
|
@ -39,6 +39,8 @@
|
||||||
#ifndef _TUSB_CONFIG_H_
|
#ifndef _TUSB_CONFIG_H_
|
||||||
#define _TUSB_CONFIG_H_
|
#define _TUSB_CONFIG_H_
|
||||||
|
|
||||||
|
#include "bsp/board.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -82,9 +84,9 @@
|
||||||
#define CFG_TUD_CDC 1
|
#define CFG_TUD_CDC 1
|
||||||
#define CFG_TUD_MSC 1
|
#define CFG_TUD_MSC 1
|
||||||
|
|
||||||
#define CFG_TUD_HID 1
|
#define CFG_TUD_HID 0
|
||||||
#define CFG_TUD_HID_KEYBOARD 1
|
#define CFG_TUD_HID_KEYBOARD 0
|
||||||
#define CFG_TUD_HID_MOUSE 1
|
#define CFG_TUD_HID_MOUSE 0
|
||||||
|
|
||||||
/* Use Boot Protocol for Keyboard, Mouse. Enable this will create separated HID interface
|
/* Use Boot Protocol for Keyboard, Mouse. Enable this will create separated HID interface
|
||||||
* require more IN endpoints. If disabled, they they are all packed into a single
|
* require more IN endpoints. If disabled, they they are all packed into a single
|
||||||
|
@ -112,7 +114,7 @@
|
||||||
#define CFG_TUD_MSC_BUFSIZE 512
|
#define CFG_TUD_MSC_BUFSIZE 512
|
||||||
|
|
||||||
// Number of Blocks
|
// Number of Blocks
|
||||||
#define CFG_TUD_MSC_BLOCK_NUM 16
|
#define CFG_TUD_MSC_BLOCK_NUM BOARD_MSC_FLASH_SIZE/CFG_TUD_MSC_BLOCK_SZ
|
||||||
|
|
||||||
// Block size
|
// Block size
|
||||||
#define CFG_TUD_MSC_BLOCK_SZ 512
|
#define CFG_TUD_MSC_BLOCK_SZ 512
|
||||||
|
|
Loading…
Reference in New Issue