update version to v2.1.5

This commit is contained in:
Artery-MCU
2024-08-27 09:56:16 +08:00
parent 95481a671d
commit 716f545aa1
322 changed files with 695 additions and 1745 deletions

View File

@@ -334,7 +334,7 @@ void usbh_hch_out_handler(usbh_core_type *uhost, uint8_t chn)
}
else if(uhost->hch[chn].state == HCH_STALL)
{
uhost->hch[chn].urb_sts = URB_STALL;
uhost->urb_state[chn] = URB_STALL;
}
else if(uhost->hch[chn].state == HCH_XACTERR ||
uhost->hch[chn].state == HCH_DATATGLERR)

View File

@@ -290,7 +290,7 @@ static usb_sts_type set_linecoding(usbh_core_type *uhost, cdc_line_coding_type *
uhost->ctrl.setup.wLength = LINE_CODING_STRUCTURE_SIZE;
uhost->ctrl.setup.wIndex = 0;
status = usbh_ctrl_request(uhost, linecoding->array, LINE_CODING_STRUCTURE_SIZE);
usbh_ctrl_request(uhost, linecoding->array, LINE_CODING_STRUCTURE_SIZE);
}
else
{
@@ -438,7 +438,7 @@ void cdc_start_transmission(usbh_core_type *uhost, uint8_t *data, uint32_t len)
* @param uhost: to the structure of usbh_core_type
* @retval status: usb_sts_type status
*/
__weak void cdc_transmit_complete(usbh_core_type *uhost)
__WEAK void cdc_transmit_complete(usbh_core_type *uhost)
{
}
@@ -512,7 +512,7 @@ void cdc_start_reception(usbh_core_type *uhost, uint8_t *data, uint32_t len)
* @param uhost: to the structure of usbh_core_type
* @retval status: usb_sts_type status
*/
__weak void cdc_receive_complete(usbh_core_type *uhost)
__WEAK void cdc_receive_complete(usbh_core_type *uhost)
{
}

View File

@@ -259,8 +259,8 @@ extern usbh_class_handler_type uhost_cdc_class_handler;
extern usbh_cdc_type usbh_cdc;
void cdc_start_transmission(usbh_core_type *phost, uint8_t *data, uint32_t len);
void cdc_start_reception(usbh_core_type *uhost, uint8_t *data, uint32_t len);
__weak void cdc_transmit_complete(usbh_core_type *uhost);
__weak void cdc_receive_complete(usbh_core_type *uhost);
void cdc_transmit_complete(usbh_core_type *uhost);
void cdc_receive_complete(usbh_core_type *uhost);
/**
* @}
*/