]> mj.ucw.cz Git - home-hw.git/blobdiff - Inc/usb.h
Communicating with the host
[home-hw.git] / Inc / usb.h
index 114a5378ea81f4e7e2361dfbc60f4f666778ab59..6d5eaf417ba6d195e67a399026bf53d1384200d9 100644 (file)
--- a/Inc/usb.h
+++ b/Inc/usb.h
@@ -211,7 +211,7 @@ static inline int usb_ep_is_stalled(struct usb *usb, byte ep_addr)
   return ((ep_addr & 0x80) ? usb->hpcd->IN_ep : usb->hpcd->OUT_ep) [ep_addr & 0x7f].is_stall;
 }
 
-static inline HAL_StatusTypeDef usb_ep_transmit(struct usb *usb, byte ep_addr, const byte *buf, u32 size)
+static inline HAL_StatusTypeDef usb_ep_send(struct usb *usb, byte ep_addr, const byte *buf, u32 size)
 {
   return HAL_PCD_EP_Transmit(usb->hpcd, ep_addr, (byte *) buf, size);
 }