proof of concpet that device pio-usb work with host pio-usb
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user