pka.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /**
  2. ******************************************************************************
  3. * @file pka.c
  4. * @brief This file provides code for the configuration
  5. * of the PKA instances.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. /* Includes ------------------------------------------------------------------*/
  20. #include "pka.h"
  21. /* USER CODE BEGIN 0 */
  22. /* USER CODE END 0 */
  23. PKA_HandleTypeDef hpka;
  24. /* PKA init function */
  25. void MX_PKA_Init(void)
  26. {
  27. /* USER CODE BEGIN PKA_Init 0 */
  28. /* USER CODE END PKA_Init 0 */
  29. /* USER CODE BEGIN PKA_Init 1 */
  30. /* USER CODE END PKA_Init 1 */
  31. hpka.Instance = PKA;
  32. if (HAL_PKA_Init(&hpka) != HAL_OK)
  33. {
  34. Error_Handler();
  35. }
  36. /* USER CODE BEGIN PKA_Init 2 */
  37. /* USER CODE END PKA_Init 2 */
  38. }
  39. void HAL_PKA_MspInit(PKA_HandleTypeDef* pkaHandle)
  40. {
  41. if(pkaHandle->Instance==PKA)
  42. {
  43. /* USER CODE BEGIN PKA_MspInit 0 */
  44. /* USER CODE END PKA_MspInit 0 */
  45. /* PKA clock enable */
  46. __HAL_RCC_PKA_CLK_ENABLE();
  47. /* USER CODE BEGIN PKA_MspInit 1 */
  48. /* USER CODE END PKA_MspInit 1 */
  49. }
  50. }
  51. void HAL_PKA_MspDeInit(PKA_HandleTypeDef* pkaHandle)
  52. {
  53. if(pkaHandle->Instance==PKA)
  54. {
  55. /* USER CODE BEGIN PKA_MspDeInit 0 */
  56. /* USER CODE END PKA_MspDeInit 0 */
  57. /* Peripheral clock disable */
  58. __HAL_RCC_PKA_CLK_DISABLE();
  59. /* USER CODE BEGIN PKA_MspDeInit 1 */
  60. /* USER CODE END PKA_MspDeInit 1 */
  61. }
  62. }
  63. /* USER CODE BEGIN 1 */
  64. /* USER CODE END 1 */
  65. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/