stm32l1xx_hal_cryp_ex.c 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /**
  2. ******************************************************************************
  3. * @file stm32l1xx_hal_cryp_ex.c
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date 5-September-2014
  7. * @brief CRYPEx HAL module driver.
  8. *
  9. * This file provides firmware functions to manage the following
  10. * functionalities of the Cryptography (CRYP) extension peripheral:
  11. * + Computation completed callback.
  12. *
  13. ******************************************************************************
  14. * @attention
  15. *
  16. * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
  17. *
  18. * Redistribution and use in source and binary forms, with or without modification,
  19. * are permitted provided that the following conditions are met:
  20. * 1. Redistributions of source code must retain the above copyright notice,
  21. * this list of conditions and the following disclaimer.
  22. * 2. Redistributions in binary form must reproduce the above copyright notice,
  23. * this list of conditions and the following disclaimer in the documentation
  24. * and/or other materials provided with the distribution.
  25. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  26. * may be used to endorse or promote products derived from this software
  27. * without specific prior written permission.
  28. *
  29. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  30. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  31. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  32. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  33. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  34. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  35. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  36. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  37. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  38. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. ******************************************************************************
  41. */
  42. /* Includes ------------------------------------------------------------------*/
  43. #include "stm32l1xx_hal.h"
  44. #ifdef HAL_CRYP_MODULE_ENABLED
  45. /** @addtogroup STM32L1xx_HAL_Driver
  46. * @{
  47. */
  48. /** @defgroup CRYPEx CRYPEx
  49. * @brief CRYP HAL Extended module driver.
  50. * @{
  51. */
  52. #if defined(STM32L162xC) || defined(STM32L162xCA) || defined(STM32L162xD) || defined(STM32L162xE)
  53. /* Private typedef -----------------------------------------------------------*/
  54. /* Private define ------------------------------------------------------------*/
  55. /* Private macro -------------------------------------------------------------*/
  56. /* Private variables ---------------------------------------------------------*/
  57. /* Private function prototypes -----------------------------------------------*/
  58. /* Private functions ---------------------------------------------------------*/
  59. /** @defgroup CRYPEx_Exported_Functions CRYPEx Exported Functions
  60. * @{
  61. */
  62. /** @defgroup CRYPEx_Exported_Functions_Group1 Extended features functions
  63. * @brief Extended features functions.
  64. *
  65. @verbatim
  66. ===============================================================================
  67. ##### Extended features functions #####
  68. ===============================================================================
  69. [..] This section provides callback functions:
  70. (+) Computation completed.
  71. @endverbatim
  72. * @{
  73. */
  74. /**
  75. * @brief Computation completed callbacks.
  76. * @param hcryp: pointer to a CRYP_HandleTypeDef structure that contains
  77. * the configuration information for CRYP module
  78. * @retval None
  79. */
  80. __weak void HAL_CRYPEx_ComputationCpltCallback(CRYP_HandleTypeDef *hcryp)
  81. {
  82. /* NOTE : This function Should not be modified, when the callback is needed,
  83. the HAL_CRYP_ComputationCpltCallback could be implemented in the user file
  84. */
  85. }
  86. /**
  87. * @}
  88. */
  89. /**
  90. * @}
  91. */
  92. #endif /* STM32L162xC || STM32L162xCA || STM32L162xD || STM32L162xE*/
  93. /**
  94. * @}
  95. */
  96. /**
  97. * @}
  98. */
  99. #endif /* HAL_CRYP_MODULE_ENABLED */
  100. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/