summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/src/main.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-19 14:59:31 +0700
committerhathach <[email protected]>2022-03-19 14:59:31 +0700
commit821be65b034bd69210834ae7400527149cb66e43 (patch)
tree1951846a6305bdc87dbabc93f6f730e104067af2 /examples/host/bare_api/src/main.c
parenta4b976f095ae36ab90cfc5394211598626ff895e (diff)
rename usbh_edpt_open() to tuh_edpt_open()
Diffstat (limited to 'examples/host/bare_api/src/main.c')
-rw-r--r--examples/host/bare_api/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/host/bare_api/src/main.c b/examples/host/bare_api/src/main.c
index 3f3d1d488..fa50c7af3 100644
--- a/examples/host/bare_api/src/main.c
+++ b/examples/host/bare_api/src/main.c
@@ -234,7 +234,7 @@ void open_hid_interface(uint8_t daddr, tusb_desc_interface_t const *desc_itf, ui
if(tu_edpt_dir(desc_ep->bEndpointAddress) == TUSB_DIR_IN)
{
// skip if failed to open endpoint
- if ( ! usbh_edpt_open(daddr, desc_ep) ) return;
+ if ( ! tuh_edpt_open(daddr, desc_ep) ) return;
uint8_t* buf = get_hid_buf(daddr);
if (!buf) return; // out of memory