enable uvc for samd and nrf
This commit is contained in:
parent
536c8233b5
commit
70fd45a713
2 changed files with 17 additions and 3 deletions
|
|
@ -33,10 +33,7 @@ extern "C" {
|
|||
// COMMON CONFIGURATION
|
||||
//--------------------------------------------------------------------
|
||||
#define CFG_TUSB_MCU OPT_MCU_NRF5X
|
||||
|
||||
#define CFG_TUSB_OS OPT_OS_FREERTOS
|
||||
#define CFG_TUSB_MEM_SECTION
|
||||
#define CFG_TUSB_MEM_ALIGN __attribute__((aligned(4)))
|
||||
|
||||
#ifndef CFG_TUSB_DEBUG
|
||||
#define CFG_TUSB_DEBUG 0
|
||||
|
|
@ -44,6 +41,10 @@ extern "C" {
|
|||
|
||||
// For selectively disable device log (when > CFG_TUSB_DEBUG)
|
||||
// #define CFG_TUD_LOG_LEVEL 3
|
||||
// #define CFG_TUH_LOG_LEVEL 3
|
||||
|
||||
#define CFG_TUSB_MEM_SECTION
|
||||
#define CFG_TUSB_MEM_ALIGN __attribute__((aligned(4)))
|
||||
|
||||
#ifdef USE_TINYUSB
|
||||
// Enable device stack
|
||||
|
|
@ -70,6 +71,11 @@ extern "C" {
|
|||
#define CFG_TUD_HID 2
|
||||
#define CFG_TUD_MIDI 1
|
||||
#define CFG_TUD_VENDOR 1
|
||||
#define CFG_TUD_VIDEO 1 // number of video control interfaces
|
||||
#define CFG_TUD_VIDEO_STREAMING 1 // number of video streaming interfaces
|
||||
|
||||
// video streaming endpoint buffer size
|
||||
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 256
|
||||
|
||||
// CDC FIFO size of TX and RX
|
||||
#define CFG_TUD_CDC_RX_BUFSIZE 256
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@ extern "C" {
|
|||
#define CFG_TUSB_MCU OPT_MCU_SAMD21
|
||||
#endif
|
||||
|
||||
#ifndef CFG_TUSB_OS
|
||||
#define CFG_TUSB_OS OPT_OS_NONE
|
||||
#endif
|
||||
|
||||
#ifndef CFG_TUSB_DEBUG
|
||||
#define CFG_TUSB_DEBUG 0
|
||||
|
|
@ -46,6 +48,7 @@ extern "C" {
|
|||
|
||||
// For selectively disable device log (when > CFG_TUSB_DEBUG)
|
||||
// #define CFG_TUD_LOG_LEVEL 3
|
||||
// #define CFG_TUH_LOG_LEVEL 3
|
||||
|
||||
#define CFG_TUSB_MEM_SECTION
|
||||
#define CFG_TUSB_MEM_ALIGN TU_ATTR_ALIGNED(4)
|
||||
|
|
@ -69,6 +72,11 @@ extern "C" {
|
|||
#define CFG_TUD_HID 2
|
||||
#define CFG_TUD_MIDI 1
|
||||
#define CFG_TUD_VENDOR 1
|
||||
#define CFG_TUD_VIDEO 1 // number of video control interfaces
|
||||
#define CFG_TUD_VIDEO_STREAMING 1 // number of video streaming interfaces
|
||||
|
||||
// video streaming endpoint buffer size
|
||||
#define CFG_TUD_VIDEO_STREAMING_EP_BUFSIZE 256
|
||||
|
||||
// CDC FIFO size of TX and RX
|
||||
#define CFG_TUD_CDC_RX_BUFSIZE 256
|
||||
|
|
|
|||
Loading…
Reference in a new issue