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_cec.c |
3 | * @file stm32f1xx_hal_cec.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 CEC HAL module driver. |
7 | * @brief CEC 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 High Definition Multimedia Interface |
9 | * functionalities of the High Definition Multimedia Interface |
10 | * Consumer Electronics Control Peripheral (CEC). |
10 | * Consumer Electronics Control Peripheral (CEC). |
11 | * + Initialization and de-initialization functions |
11 | * + Initialization and de-initialization functions |
Line 38... | Line 38... | ||
38 | 38 | ||
39 | @endverbatim |
39 | @endverbatim |
40 | ****************************************************************************** |
40 | ****************************************************************************** |
41 | * @attention |
41 | * @attention |
42 | * |
42 | * |
43 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
43 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
44 | * |
44 | * |
45 | * Redistribution and use in source and binary forms, with or without modification, |
45 | * Redistribution and use in source and binary forms, with or without modification, |
46 | * are permitted provided that the following conditions are met: |
46 | * are permitted provided that the following conditions are met: |
47 | * 1. Redistributions of source code must retain the above copyright notice, |
47 | * 1. Redistributions of source code must retain the above copyright notice, |
48 | * this list of conditions and the following disclaimer. |
48 | * this list of conditions and the following disclaimer. |
Line 233... | Line 233... | ||
233 | * @param hcec: CEC handle |
233 | * @param hcec: CEC handle |
234 | * @retval None |
234 | * @retval None |
235 | */ |
235 | */ |
236 | __weak void HAL_CEC_MspInit(CEC_HandleTypeDef *hcec) |
236 | __weak void HAL_CEC_MspInit(CEC_HandleTypeDef *hcec) |
237 | { |
237 | { |
- | 238 | /* Prevent unused argument(s) compilation warning */ |
|
- | 239 | UNUSED(hcec); |
|
238 | /* NOTE : This function should not be modified, when the callback is needed, |
240 | /* NOTE : This function should not be modified, when the callback is needed, |
239 | the HAL_CEC_MspInit can be implemented in the user file |
241 | the HAL_CEC_MspInit can be implemented in the user file |
240 | */ |
242 | */ |
241 | } |
243 | } |
242 | 244 | ||
Line 245... | Line 247... | ||
245 | * @param hcec: CEC handle |
247 | * @param hcec: CEC handle |
246 | * @retval None |
248 | * @retval None |
247 | */ |
249 | */ |
248 | __weak void HAL_CEC_MspDeInit(CEC_HandleTypeDef *hcec) |
250 | __weak void HAL_CEC_MspDeInit(CEC_HandleTypeDef *hcec) |
249 | { |
251 | { |
- | 252 | /* Prevent unused argument(s) compilation warning */ |
|
- | 253 | UNUSED(hcec); |
|
250 | /* NOTE : This function should not be modified, when the callback is needed, |
254 | /* NOTE : This function should not be modified, when the callback is needed, |
251 | the HAL_CEC_MspDeInit can be implemented in the user file |
255 | the HAL_CEC_MspDeInit can be implemented in the user file |
252 | */ |
256 | */ |
253 | } |
257 | } |
254 | 258 | ||
Line 797... | Line 801... | ||
797 | * @param hcec: CEC handle |
801 | * @param hcec: CEC handle |
798 | * @retval None |
802 | * @retval None |
799 | */ |
803 | */ |
800 | __weak void HAL_CEC_TxCpltCallback(CEC_HandleTypeDef *hcec) |
804 | __weak void HAL_CEC_TxCpltCallback(CEC_HandleTypeDef *hcec) |
801 | { |
805 | { |
- | 806 | /* Prevent unused argument(s) compilation warning */ |
|
- | 807 | UNUSED(hcec); |
|
802 | /* NOTE : This function should not be modified, when the callback is needed, |
808 | /* NOTE : This function should not be modified, when the callback is needed, |
803 | the HAL_CEC_TxCpltCallback can be implemented in the user file |
809 | the HAL_CEC_TxCpltCallback can be implemented in the user file |
804 | */ |
810 | */ |
805 | } |
811 | } |
806 | 812 | ||
Line 809... | Line 815... | ||
809 | * @param hcec: CEC handle |
815 | * @param hcec: CEC handle |
810 | * @retval None |
816 | * @retval None |
811 | */ |
817 | */ |
812 | __weak void HAL_CEC_RxCpltCallback(CEC_HandleTypeDef *hcec) |
818 | __weak void HAL_CEC_RxCpltCallback(CEC_HandleTypeDef *hcec) |
813 | { |
819 | { |
- | 820 | /* Prevent unused argument(s) compilation warning */ |
|
- | 821 | UNUSED(hcec); |
|
814 | /* NOTE : This function should not be modified, when the callback is needed, |
822 | /* NOTE : This function should not be modified, when the callback is needed, |
815 | the HAL_CEC_RxCpltCallback can be implemented in the user file |
823 | the HAL_CEC_RxCpltCallback can be implemented in the user file |
816 | */ |
824 | */ |
817 | } |
825 | } |
818 | 826 | ||
Line 821... | Line 829... | ||
821 | * @param hcec: CEC handle |
829 | * @param hcec: CEC handle |
822 | * @retval None |
830 | * @retval None |
823 | */ |
831 | */ |
824 | __weak void HAL_CEC_ErrorCallback(CEC_HandleTypeDef *hcec) |
832 | __weak void HAL_CEC_ErrorCallback(CEC_HandleTypeDef *hcec) |
825 | { |
833 | { |
- | 834 | /* Prevent unused argument(s) compilation warning */ |
|
- | 835 | UNUSED(hcec); |
|
826 | /* NOTE : This function should not be modified, when the callback is needed, |
836 | /* NOTE : This function should not be modified, when the callback is needed, |
827 | the HAL_CEC_ErrorCallback can be implemented in the user file |
837 | the HAL_CEC_ErrorCallback can be implemented in the user file |
828 | */ |
838 | */ |
829 | } |
839 | } |
830 | 840 |