sxkbd

Firmware for RP2040-based corne split keyboard
git clone https://git.sinitax.com/sinitax/sxkbd
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

tusb_config.h (1085B)


      1 #pragma once
      2 
      3 #ifdef __cplusplus
      4 extern "C" {
      5 #endif
      6 
      7 #ifndef BOARD_TUD_RHPORT
      8 #define BOARD_TUD_RHPORT 0
      9 #endif
     10 
     11 #ifndef BOARD_TUD_MAX_SPEED
     12 #define BOARD_TUD_MAX_SPEED OPT_MODE_DEFAULT_SPEED
     13 #endif
     14 
     15 #ifndef CFG_TUSB_MCU
     16 #error CFG_TUSB_MCU must be defined
     17 #endif
     18 
     19 #ifndef CFG_TUSB_OS
     20 #define CFG_TUSB_OS OPT_OS_NONE
     21 #endif
     22 
     23 #ifndef CFG_TUSB_DEBUG
     24 #define CFG_TUSB_DEBUG 0
     25 #endif
     26 
     27 #define CFG_TUD_ENABLED 1
     28 
     29 #define CFG_TUD_MAX_SPEED BOARD_TUD_MAX_SPEED
     30 
     31 #ifndef CFG_TUSB_MEM_SECTION
     32 #define CFG_TUSB_MEM_SECTION
     33 #endif
     34 
     35 #ifndef CFG_TUSB_MEM_ALIGN
     36 #define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
     37 #endif
     38 
     39 #ifndef CFG_TUD_ENDPOINT0_SIZE
     40 #define CFG_TUD_ENDPOINT0_SIZE 64
     41 #endif
     42 
     43 #define CFG_TUD_CDC               1
     44 #define CFG_TUD_MSC               0
     45 #define CFG_TUD_HID               2
     46 #define CFG_TUD_MIDI              0
     47 #define CFG_TUD_VENDOR            0
     48 
     49 #define CFG_TUD_CDC_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
     50 #define CFG_TUD_CDC_RX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
     51 #define CFG_TUD_CDC_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
     52 
     53 #ifdef __cplusplus
     54 }
     55 #endif