Use role TUSB_ROLE_HOST in host stack initialization

This commit is contained in:
LeZerb
2025-12-11 09:05:06 +01:00
committed by GitHub
parent b05ec753f8
commit 308bb956bf

View File

@ -40,7 +40,7 @@ Minimal Example
// init host stack on roothub port 1 for fullspeed host
tusb_rhport_init_t host_init = {
.role = TUSB_ROLE_DEVICE,
.role = TUSB_ROLE_HOST,
.speed = TUSB_SPEED_FULL
};
tusb_init(1, &host_init);