diff options
| author | Mengsk <[email protected]> | 2022-12-29 12:14:52 +0100 |
|---|---|---|
| committer | Mengsk <[email protected]> | 2022-12-29 12:14:52 +0100 |
| commit | 8327090171246d0928195c49f4f15ce8b569a39b (patch) | |
| tree | 40b3f6d218e06bff8ec485ec1b8bfa897ce8467c /examples/host/hid_controller/src | |
| parent | d584b07e2c8068a51c89421be2ddc116f4fc9d3e (diff) | |
| parent | 549bee94add9d8f1c346bfa0fa6b25481db3f191 (diff) | |
Merge branch 'master' of https://github.com/hathach/tinyusb into stm32_fsdev
Diffstat (limited to 'examples/host/hid_controller/src')
| -rw-r--r-- | examples/host/hid_controller/src/hid_app.c | 1 | ||||
| -rw-r--r-- | examples/host/hid_controller/src/tusb_config.h | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/examples/host/hid_controller/src/hid_app.c b/examples/host/hid_controller/src/hid_app.c index 582e01959..75c91400e 100644 --- a/examples/host/hid_controller/src/hid_app.c +++ b/examples/host/hid_controller/src/hid_app.c @@ -162,7 +162,6 @@ void tuh_hid_mount_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* desc_re void tuh_hid_umount_cb(uint8_t dev_addr, uint8_t instance) { printf("HID device address = %d, instance = %d is unmounted\r\n", dev_addr, instance); - } // check if different than 2 diff --git a/examples/host/hid_controller/src/tusb_config.h b/examples/host/hid_controller/src/tusb_config.h index 475b9ca8f..e6d6f873d 100644 --- a/examples/host/hid_controller/src/tusb_config.h +++ b/examples/host/hid_controller/src/tusb_config.h @@ -34,6 +34,12 @@ // Board Specific Configuration //--------------------------------------------------------------------+ + #if CFG_TUSB_MCU == OPT_MCU_RP2040 +// change to 1 if using pico-pio-usb as host controller for raspberry rp2040 +#define CFG_TUH_RPI_PIO_USB 0 +#define BOARD_TUH_RHPORT CFG_TUH_RPI_PIO_USB +#endif + // RHPort number used for host can be defined by board.mk, default to port 0 #ifndef BOARD_TUH_RHPORT #define BOARD_TUH_RHPORT 0 |
