mirror of
https://github.com/aprochazka/ProfilometerProbe.git
synced 2025-06-30 17:47:20 +02:00
add TinyUSB
This commit is contained in:
1
Firmware/Core/Inc/main.h
Executable file → Normal file
1
Firmware/Core/Inc/main.h
Executable file → Normal file
@ -37,6 +37,7 @@ extern "C"
|
||||
#include <string.h>
|
||||
#include "stdbool.h"
|
||||
#include "tusb.h"
|
||||
#include "Cam.h"
|
||||
|
||||
// #include "portable/st/synopsys/dcd_synopsys.c"
|
||||
// #include "portable/st/synopsys/synopsys_common.h"
|
||||
|
@ -51,9 +51,9 @@ extern "C"
|
||||
|
||||
#define CFG_TUSB_MCU OPT_MCU_STM32L4
|
||||
#define CFG_TUSB_OS OPT_OS_NONE
|
||||
#define BOARD_DEVICE_RHPORT_SPEED OPT_MODE_FULL_SPEED
|
||||
#define BOARD_DEVICE_RHPORT_NUM 0
|
||||
#define CFG_TUSB_RHPORT_MODE (OPT_MODE_DEVICE | OPT_MODE_FULL_SPEED)
|
||||
#define BOARD_DEVICE_RHPORT_SPEED OPT_MODE_HIGH_SPEED
|
||||
#define BOARD_DEVICE_RHPORT_NUM 1
|
||||
#define CFG_TUSB_RHPORT_MODE (OPT_MODE_DEVICE | OPT_MODE_HIGH_SPEED)
|
||||
|
||||
// defined by compiler flags for flexibility
|
||||
#ifndef CFG_TUSB_MCU
|
||||
|
Reference in New Issue
Block a user