mirror of
https://github.com/hathach/tinyusb.git
synced 2026-02-04 13:25:33 +00:00
Use role TUSB_ROLE_HOST in host stack initialization
This commit is contained in:
@ -40,7 +40,7 @@ Minimal Example
|
|||||||
|
|
||||||
// init host stack on roothub port 1 for fullspeed host
|
// init host stack on roothub port 1 for fullspeed host
|
||||||
tusb_rhport_init_t host_init = {
|
tusb_rhport_init_t host_init = {
|
||||||
.role = TUSB_ROLE_DEVICE,
|
.role = TUSB_ROLE_HOST,
|
||||||
.speed = TUSB_SPEED_FULL
|
.speed = TUSB_SPEED_FULL
|
||||||
};
|
};
|
||||||
tusb_init(1, &host_init);
|
tusb_init(1, &host_init);
|
||||||
|
|||||||
Reference in New Issue
Block a user