text: /**
    ******************************************************************************
    * @file    subghz.c
    * @brief   This file provides code for the configuration
    *          of the SUBGHZ instances.
    ******************************************************************************
    * @attention
    *
    * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
    * All rights reserved.</center></h2>
    *
    * This software component is licensed by ST under Ultimate Liberty license
    * SLA0044, the "License"; You may not use this file except in compliance with
    * the License. You may obtain a copy of the License at:
    *                             www.st.com/SLA0044
    *
    ******************************************************************************
    */
  
  /* Includes ------------------------------------------------------------------*/
  #include "subghz.h"
  /* USER CODE BEGIN 0 */
  
  /* USER CODE END 0 */
  
  SUBGHZ_HandleTypeDef hsubghz;
  
  /* SUBGHZ init function */
  void MX_SUBGHZ_Init(void)
  {
  
    /* USER CODE BEGIN SUBGHZ_Init 0 */
  
    /* USER CODE END SUBGHZ_Init 0 */
  
    /* USER CODE BEGIN SUBGHZ_Init 1 */
  
    /* USER CODE END SUBGHZ_Init 1 */
    hsubghz.Init.BaudratePrescaler = SUBGHZSPI_BAUDRATEPRESCALER_4;
    if (HAL_SUBGHZ_Init(&hsubghz) != HAL_OK)
    {
      Error_Handler();
    }
    /* USER CODE BEGIN SUBGHZ_Init 2 */
  
    /* USER CODE END SUBGHZ_Init 2 */
  
  }
  
  void HAL_SUBGHZ_MspInit(SUBGHZ_HandleTypeDef* subghzHandle)
  {
  
    /* USER CODE BEGIN SUBGHZ_MspInit 0 */
  
    /* USER CODE END SUBGHZ_MspInit 0 */
      /* SUBGHZ clock enable */
      __HAL_RCC_SUBGHZSPI_CLK_ENABLE();
  
      /* SUBGHZ interrupt Init */
      HAL_NVIC_SetPriority(SUBGHZ_Radio_IRQn, 0, 0);
      HAL_NVIC_EnableIRQ(SUBGHZ_Radio_IRQn);
    /* USER CODE BEGIN SUBGHZ_MspInit 1 */
  
    /* USER CODE END SUBGHZ_MspInit 1 */
  }
  
  void HAL_SUBGHZ_MspDeInit(SUBGHZ_HandleTypeDef* subghzHandle)
  {
  
    /* USER CODE BEGIN SUBGHZ_MspDeInit 0 */
  
    /* USER CODE END SUBGHZ_MspDeInit 0 */
      /* Peripheral clock disable */
      __HAL_RCC_SUBGHZSPI_CLK_DISABLE();
  
      /* SUBGHZ interrupt Deinit */
      HAL_NVIC_DisableIRQ(SUBGHZ_Radio_IRQn);
    /* USER CODE BEGIN SUBGHZ_MspDeInit 1 */
  
    /* USER CODE END SUBGHZ_MspDeInit 1 */
  }
  
  /* USER CODE BEGIN 1 */
  
  /* USER CODE END 1 */
  
  /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
  