stm32l1xx_hal_cryp_ex.c 4.4 KB

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