proof of concpet that device pio-usb work with host pio-usb

This commit is contained in:
hathach
2022-04-08 13:36:05 +07:00
parent d97c154695
commit d5d4909c20
6 changed files with 27 additions and 21 deletions

View File

@@ -31,6 +31,8 @@
#include "tusb.h"
#include "usb_descriptors.h"
#include "pio_usb.h"
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF PROTYPES
//--------------------------------------------------------------------+
@@ -59,6 +61,8 @@ int main(void)
while (1)
{
pio_usb_device_task();
tud_task(); // tinyusb device task
led_blinking_task();

View File

@@ -39,6 +39,9 @@
#error CFG_TUSB_MCU must be defined
#endif
// Use raspberry pio-usb for device
#define CFG_TUD_RPI_PIO_USB 1
// RHPort number used for device can be defined by board.mk, default to port 0
#ifndef BOARD_DEVICE_RHPORT_NUM
#define BOARD_DEVICE_RHPORT_NUM 0

View File

@@ -39,6 +39,7 @@
#error CFG_TUSB_MCU must be defined
#endif
// Use raspberry pio-usb for host
#define CFG_TUH_RPI_PIO_USB 1
//#define CFG_TUSB_RPI_PIO_INC_PATH 1