Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 5 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /** |
1 | /** |
2 | ****************************************************************************** |
2 | ****************************************************************************** |
3 | * @file stm32f1xx_hal_hcd.c |
3 | * @file stm32f1xx_hal_hcd.c |
4 | * @author MCD Application Team |
4 | * @author MCD Application Team |
5 | * @version V1.0.1 |
5 | * @version V1.0.4 |
6 | * @date 31-July-2015 |
6 | * @date 29-April-2016 |
7 | * @brief HCD HAL module driver. |
7 | * @brief HCD HAL module driver. |
8 | * This file provides firmware functions to manage the following |
8 | * This file provides firmware functions to manage the following |
9 | * functionalities of the USB Peripheral Controller: |
9 | * functionalities of the USB Peripheral Controller: |
10 | * + Initialization and de-initialization functions |
10 | * + Initialization and de-initialization functions |
11 | * + IO operation functions |
11 | * + IO operation functions |
Line 40... | Line 40... | ||
40 | 40 | ||
41 | @endverbatim |
41 | @endverbatim |
42 | ****************************************************************************** |
42 | ****************************************************************************** |
43 | * @attention |
43 | * @attention |
44 | * |
44 | * |
45 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
45 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
46 | * |
46 | * |
47 | * Redistribution and use in source and binary forms, with or without modification, |
47 | * Redistribution and use in source and binary forms, with or without modification, |
48 | * are permitted provided that the following conditions are met: |
48 | * are permitted provided that the following conditions are met: |
49 | * 1. Redistributions of source code must retain the above copyright notice, |
49 | * 1. Redistributions of source code must retain the above copyright notice, |
50 | * this list of conditions and the following disclaimer. |
50 | * this list of conditions and the following disclaimer. |
Line 265... | Line 265... | ||
265 | * @param hhcd: HCD handle |
265 | * @param hhcd: HCD handle |
266 | * @retval None |
266 | * @retval None |
267 | */ |
267 | */ |
268 | __weak void HAL_HCD_MspInit(HCD_HandleTypeDef *hhcd) |
268 | __weak void HAL_HCD_MspInit(HCD_HandleTypeDef *hhcd) |
269 | { |
269 | { |
- | 270 | /* Prevent unused argument(s) compilation warning */ |
|
- | 271 | UNUSED(hhcd); |
|
270 | /* NOTE : This function Should not be modified, when the callback is needed, |
272 | /* NOTE : This function Should not be modified, when the callback is needed, |
271 | the HAL_HCD_MspInit could be implemented in the user file |
273 | the HAL_HCD_MspInit could be implemented in the user file |
272 | */ |
274 | */ |
273 | } |
275 | } |
274 | 276 | ||
Line 277... | Line 279... | ||
277 | * @param hhcd: HCD handle |
279 | * @param hhcd: HCD handle |
278 | * @retval None |
280 | * @retval None |
279 | */ |
281 | */ |
280 | __weak void HAL_HCD_MspDeInit(HCD_HandleTypeDef *hhcd) |
282 | __weak void HAL_HCD_MspDeInit(HCD_HandleTypeDef *hhcd) |
281 | { |
283 | { |
- | 284 | /* Prevent unused argument(s) compilation warning */ |
|
- | 285 | UNUSED(hhcd); |
|
282 | /* NOTE : This function Should not be modified, when the callback is needed, |
286 | /* NOTE : This function Should not be modified, when the callback is needed, |
283 | the HAL_HCD_MspDeInit could be implemented in the user file |
287 | the HAL_HCD_MspDeInit could be implemented in the user file |
284 | */ |
288 | */ |
285 | } |
289 | } |
286 | 290 | ||
Line 555... | Line 559... | ||
555 | * @param hhcd: HCD handle |
559 | * @param hhcd: HCD handle |
556 | * @retval None |
560 | * @retval None |
557 | */ |
561 | */ |
558 | __weak void HAL_HCD_SOF_Callback(HCD_HandleTypeDef *hhcd) |
562 | __weak void HAL_HCD_SOF_Callback(HCD_HandleTypeDef *hhcd) |
559 | { |
563 | { |
- | 564 | /* Prevent unused argument(s) compilation warning */ |
|
- | 565 | UNUSED(hhcd); |
|
560 | /* NOTE : This function Should not be modified, when the callback is needed, |
566 | /* NOTE : This function Should not be modified, when the callback is needed, |
561 | the HAL_HCD_SOF_Callback could be implemented in the user file |
567 | the HAL_HCD_SOF_Callback could be implemented in the user file |
562 | */ |
568 | */ |
563 | } |
569 | } |
564 | 570 | ||
Line 567... | Line 573... | ||
567 | * @param hhcd: HCD handle |
573 | * @param hhcd: HCD handle |
568 | * @retval None |
574 | * @retval None |
569 | */ |
575 | */ |
570 | __weak void HAL_HCD_Connect_Callback(HCD_HandleTypeDef *hhcd) |
576 | __weak void HAL_HCD_Connect_Callback(HCD_HandleTypeDef *hhcd) |
571 | { |
577 | { |
- | 578 | /* Prevent unused argument(s) compilation warning */ |
|
- | 579 | UNUSED(hhcd); |
|
572 | /* NOTE : This function Should not be modified, when the callback is needed, |
580 | /* NOTE : This function Should not be modified, when the callback is needed, |
573 | the HAL_HCD_Connect_Callback could be implemented in the user file |
581 | the HAL_HCD_Connect_Callback could be implemented in the user file |
574 | */ |
582 | */ |
575 | } |
583 | } |
576 | 584 | ||
Line 579... | Line 587... | ||
579 | * @param hhcd: HCD handle |
587 | * @param hhcd: HCD handle |
580 | * @retval None |
588 | * @retval None |
581 | */ |
589 | */ |
582 | __weak void HAL_HCD_Disconnect_Callback(HCD_HandleTypeDef *hhcd) |
590 | __weak void HAL_HCD_Disconnect_Callback(HCD_HandleTypeDef *hhcd) |
583 | { |
591 | { |
- | 592 | /* Prevent unused argument(s) compilation warning */ |
|
- | 593 | UNUSED(hhcd); |
|
584 | /* NOTE : This function Should not be modified, when the callback is needed, |
594 | /* NOTE : This function Should not be modified, when the callback is needed, |
585 | the HAL_HCD_Disconnect_Callback could be implemented in the user file |
595 | the HAL_HCD_Disconnect_Callback could be implemented in the user file |
586 | */ |
596 | */ |
587 | } |
597 | } |
588 | 598 | ||
Line 601... | Line 611... | ||
601 | * URB_STALL/ |
611 | * URB_STALL/ |
602 | * @retval None |
612 | * @retval None |
603 | */ |
613 | */ |
604 | __weak void HAL_HCD_HC_NotifyURBChange_Callback(HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state) |
614 | __weak void HAL_HCD_HC_NotifyURBChange_Callback(HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state) |
605 | { |
615 | { |
- | 616 | /* Prevent unused argument(s) compilation warning */ |
|
- | 617 | UNUSED(hhcd); |
|
- | 618 | UNUSED(chnum); |
|
- | 619 | UNUSED(urb_state); |
|
606 | /* NOTE : This function Should not be modified, when the callback is needed, |
620 | /* NOTE : This function Should not be modified, when the callback is needed, |
607 | the HAL_HCD_HC_NotifyURBChange_Callback could be implemented in the user file |
621 | the HAL_HCD_HC_NotifyURBChange_Callback could be implemented in the user file |
608 | */ |
622 | */ |
609 | } |
623 | } |
610 | 624 |