训练营PLSR题目
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

115 lines
3.7 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_hal_sai_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of SAI Extension HAL module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. /* Define to prevent recursive inclusion -------------------------------------*/
  19. #ifndef __STM32F4xx_HAL_SAI_EX_H
  20. #define __STM32F4xx_HAL_SAI_EX_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. /* Includes ------------------------------------------------------------------*/
  25. #include "stm32f4xx_hal_def.h"
  26. /** @addtogroup STM32F4xx_HAL_Driver
  27. * @{
  28. */
  29. /** @addtogroup SAIEx
  30. * @{
  31. */
  32. #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \
  33. defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F413xx) || \
  34. defined(STM32F423xx)
  35. /* Exported types ------------------------------------------------------------*/
  36. /* Exported constants --------------------------------------------------------*/
  37. /** @defgroup SAI_Clock_Source SAI Clock Source
  38. * @{
  39. */
  40. #if defined(STM32F413xx) || defined(STM32F423xx)
  41. #define SAI_CLKSOURCE_PLLI2S 0x00000000U
  42. #define SAI_CLKSOURCE_EXT 0x00100000U
  43. #define SAI_CLKSOURCE_PLLR 0x00200000U
  44. #define SAI_CLKSOURCE_HS 0x00300000U
  45. #else
  46. #define SAI_CLKSOURCE_PLLSAI 0x00000000U
  47. #define SAI_CLKSOURCE_PLLI2S 0x00100000U
  48. #define SAI_CLKSOURCE_EXT 0x00200000U
  49. #define SAI_CLKSOURCE_NA 0x00400000U /*!< No applicable for STM32F446xx */
  50. #endif
  51. /**
  52. * @}
  53. */
  54. /* Exported functions --------------------------------------------------------*/
  55. /** @addtogroup SAIEx_Exported_Functions
  56. * @{
  57. */
  58. /** @addtogroup SAIEx_Exported_Functions_Group1
  59. * @{
  60. */
  61. /* Extended features functions ************************************************/
  62. void SAI_BlockSynchroConfig(SAI_HandleTypeDef *hsai);
  63. uint32_t SAI_GetInputClock(SAI_HandleTypeDef *hsai);
  64. /**
  65. * @}
  66. */
  67. /**
  68. * @}
  69. */
  70. /* Private types -------------------------------------------------------------*/
  71. /* Private variables ---------------------------------------------------------*/
  72. /* Private constants ---------------------------------------------------------*/
  73. /* Private macros ------------------------------------------------------------*/
  74. #if defined(STM32F413xx) || defined(STM32F423xx)
  75. #define IS_SAI_CLK_SOURCE(SOURCE) (((SOURCE) == SAI_CLKSOURCE_PLLI2S) ||\
  76. ((SOURCE) == SAI_CLKSOURCE_EXT)||\
  77. ((SOURCE) == SAI_CLKSOURCE_PLLR)||\
  78. ((SOURCE) == SAI_CLKSOURCE_HS))
  79. #else
  80. #define IS_SAI_CLK_SOURCE(SOURCE) (((SOURCE) == SAI_CLKSOURCE_PLLSAI) ||\
  81. ((SOURCE) == SAI_CLKSOURCE_EXT)||\
  82. ((SOURCE) == SAI_CLKSOURCE_PLLI2S)||\
  83. ((SOURCE) == SAI_CLKSOURCE_NA))
  84. #endif
  85. /* Private functions ---------------------------------------------------------*/
  86. #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx || STM32F413xx || STM32F423xx */
  87. /**
  88. * @}
  89. */
  90. /**
  91. * @}
  92. */
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96. #endif /* __STM32F4xx_HAL_SAI_EX_H */