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_eth.c |
3 | * @file stm32f1xx_hal_eth.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 ETH HAL module driver. |
7 | * @brief ETH 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 Ethernet (ETH) peripheral: |
9 | * functionalities of the Ethernet (ETH) peripheral: |
10 | * + Initialization and de-initialization functions |
10 | * + Initialization and de-initialization functions |
11 | * + IO operation functions |
11 | * + IO operation functions |
Line 69... | Line 69... | ||
69 | 69 | ||
70 | @endverbatim |
70 | @endverbatim |
71 | ****************************************************************************** |
71 | ****************************************************************************** |
72 | * @attention |
72 | * @attention |
73 | * |
73 | * |
74 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
74 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
75 | * |
75 | * |
76 | * Redistribution and use in source and binary forms, with or without modification, |
76 | * Redistribution and use in source and binary forms, with or without modification, |
77 | * are permitted provided that the following conditions are met: |
77 | * are permitted provided that the following conditions are met: |
78 | * 1. Redistributions of source code must retain the above copyright notice, |
78 | * 1. Redistributions of source code must retain the above copyright notice, |
79 | * this list of conditions and the following disclaimer. |
79 | * this list of conditions and the following disclaimer. |
Line 580... | Line 580... | ||
580 | * the configuration information for ETHERNET module |
580 | * the configuration information for ETHERNET module |
581 | * @retval None |
581 | * @retval None |
582 | */ |
582 | */ |
583 | __weak void HAL_ETH_MspInit(ETH_HandleTypeDef *heth) |
583 | __weak void HAL_ETH_MspInit(ETH_HandleTypeDef *heth) |
584 | { |
584 | { |
- | 585 | /* Prevent unused argument(s) compilation warning */ |
|
- | 586 | UNUSED(heth); |
|
585 | /* NOTE : This function Should not be modified, when the callback is needed, |
587 | /* NOTE : This function Should not be modified, when the callback is needed, |
586 | the HAL_ETH_MspInit could be implemented in the user file |
588 | the HAL_ETH_MspInit could be implemented in the user file |
587 | */ |
589 | */ |
588 | } |
590 | } |
589 | 591 | ||
Line 593... | Line 595... | ||
593 | * the configuration information for ETHERNET module |
595 | * the configuration information for ETHERNET module |
594 | * @retval None |
596 | * @retval None |
595 | */ |
597 | */ |
596 | __weak void HAL_ETH_MspDeInit(ETH_HandleTypeDef *heth) |
598 | __weak void HAL_ETH_MspDeInit(ETH_HandleTypeDef *heth) |
597 | { |
599 | { |
- | 600 | /* Prevent unused argument(s) compilation warning */ |
|
- | 601 | UNUSED(heth); |
|
598 | /* NOTE : This function Should not be modified, when the callback is needed, |
602 | /* NOTE : This function Should not be modified, when the callback is needed, |
599 | the HAL_ETH_MspDeInit could be implemented in the user file |
603 | the HAL_ETH_MspDeInit could be implemented in the user file |
600 | */ |
604 | */ |
601 | } |
605 | } |
602 | 606 | ||
Line 972... | Line 976... | ||
972 | * the configuration information for ETHERNET module |
976 | * the configuration information for ETHERNET module |
973 | * @retval None |
977 | * @retval None |
974 | */ |
978 | */ |
975 | __weak void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *heth) |
979 | __weak void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *heth) |
976 | { |
980 | { |
- | 981 | /* Prevent unused argument(s) compilation warning */ |
|
- | 982 | UNUSED(heth); |
|
977 | /* NOTE : This function Should not be modified, when the callback is needed, |
983 | /* NOTE : This function Should not be modified, when the callback is needed, |
978 | the HAL_ETH_TxCpltCallback could be implemented in the user file |
984 | the HAL_ETH_TxCpltCallback could be implemented in the user file |
979 | */ |
985 | */ |
980 | } |
986 | } |
981 | 987 | ||
Line 985... | Line 991... | ||
985 | * the configuration information for ETHERNET module |
991 | * the configuration information for ETHERNET module |
986 | * @retval None |
992 | * @retval None |
987 | */ |
993 | */ |
988 | __weak void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *heth) |
994 | __weak void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *heth) |
989 | { |
995 | { |
- | 996 | /* Prevent unused argument(s) compilation warning */ |
|
- | 997 | UNUSED(heth); |
|
990 | /* NOTE : This function Should not be modified, when the callback is needed, |
998 | /* NOTE : This function Should not be modified, when the callback is needed, |
991 | the HAL_ETH_TxCpltCallback could be implemented in the user file |
999 | the HAL_ETH_TxCpltCallback could be implemented in the user file |
992 | */ |
1000 | */ |
993 | } |
1001 | } |
994 | 1002 | ||
Line 998... | Line 1006... | ||
998 | * the configuration information for ETHERNET module |
1006 | * the configuration information for ETHERNET module |
999 | * @retval None |
1007 | * @retval None |
1000 | */ |
1008 | */ |
1001 | __weak void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *heth) |
1009 | __weak void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *heth) |
1002 | { |
1010 | { |
- | 1011 | /* Prevent unused argument(s) compilation warning */ |
|
- | 1012 | UNUSED(heth); |
|
1003 | /* NOTE : This function Should not be modified, when the callback is needed, |
1013 | /* NOTE : This function Should not be modified, when the callback is needed, |
1004 | the HAL_ETH_TxCpltCallback could be implemented in the user file |
1014 | the HAL_ETH_TxCpltCallback could be implemented in the user file |
1005 | */ |
1015 | */ |
1006 | } |
1016 | } |
1007 | 1017 |