tae32f53xx_ll.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /**
  2. ******************************************************************************
  3. * @file tae32f53xx_ll.h
  4. * @author MCD Application Team
  5. * @brief This file contains all the functions prototypes for the LL
  6. * module driver.
  7. *
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; Copyright (c) 2020 Tai-Action.
  12. * All rights reserved.</center></h2>
  13. *
  14. * This software is licensed by Tai-Action under BSD 3-Clause license,
  15. * the "License"; You may not use this file except in compliance with the
  16. * License. You may obtain a copy of the License at:
  17. * opensource.org/licenses/BSD-3-Clause
  18. *
  19. ******************************************************************************
  20. */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef _TAE32F53XX_LL_H_
  23. #define _TAE32F53XX_LL_H_
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif /* __cplusplus */
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "tae32f53xx_ll_conf.h"
  29. /** @addtogroup TAE32F53xx_LL_Driver
  30. * @{
  31. */
  32. /** @addtogroup TAE32F53xx_LL
  33. * @{
  34. */
  35. /* Exported constants --------------------------------------------------------*/
  36. /** @defgroup TAE32F53xx_LL_Exported_Constants TAE32F53xx LL Exported Constants
  37. * @brief TAE32F53xx LL Exported Constants
  38. * @{
  39. */
  40. /**
  41. * @brief TAE32F53xx LL Driver version number V1.2.0
  42. */
  43. #define __TAE32F53xx_LL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
  44. #define __TAE32F53xx_LL_VERSION_SUB1 (0x02U) /*!< [23:16] sub1 version */
  45. #define __TAE32F53xx_LL_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
  46. #define __TAE32F53xx_LL_VERSION_RC (0x00U) /*!< [7:0] release candidate */
  47. #define __TAE32F53xx_LL_VERSION ((__TAE32F53xx_LL_VERSION_MAIN << 24) |\
  48. (__TAE32F53xx_LL_VERSION_SUB1 << 16) |\
  49. (__TAE32F53xx_LL_VERSION_SUB2 << 8 ) |\
  50. (__TAE32F53xx_LL_VERSION_RC))
  51. /**
  52. * @brief TAE32F53xx SDK Stage String definition
  53. * @note Value range: "Alpha" "Beta" "RC" "Trial" "Release"
  54. */
  55. #define SDK_STAGE_STR "Release"
  56. /**
  57. * @}
  58. */
  59. /* Exported types ------------------------------------------------------------*/
  60. /** @defgroup TAE32F53xx_LL_Exported_Types TAE32F53xx LL Exported Types
  61. * @brief TAE32F53xx LL Exported Types
  62. * @{
  63. */
  64. /**
  65. * LL Tick Freq Enum Type Definition
  66. */
  67. typedef enum {
  68. LL_TICK_FREQ_10HZ = 100U, /*!< Tick Frequency 10Hz */
  69. LL_TICK_FREQ_100HZ = 10U, /*!< Tick Frequency 100Hz */
  70. LL_TICK_FREQ_1KHZ = 1U, /*!< Tick Frequency 1KHz */
  71. LL_TICK_FREQ_DEFAULT = LL_TICK_FREQ_1KHZ, /*!< Tick Frequency default */
  72. } LL_TickFreqETypeDef;
  73. /**
  74. * @}
  75. */
  76. /* Exported macro ------------------------------------------------------------*/
  77. /* Exported functions --------------------------------------------------------*/
  78. /** @addtogroup TAE32F53xx_LL_Exported_Functions
  79. * @{
  80. */
  81. /** @addtogroup TAE32F53xx_LL_Exported_Functions_Group1
  82. * @{
  83. */
  84. LL_StatusETypeDef LL_Init(void);
  85. LL_StatusETypeDef LL_DeInit(void);
  86. void LL_MspInit(void);
  87. void LL_MspDeInit(void);
  88. LL_StatusETypeDef LL_InitTick(uint32_t TickPriority);
  89. /**
  90. * @}
  91. */
  92. /** @addtogroup TAE32F53xx_LL_Exported_Functions_Group2
  93. * @{
  94. */
  95. void LL_IncTick(void);
  96. uint32_t LL_GetTick(void);
  97. uint32_t LL_GetTickPrio(void);
  98. LL_StatusETypeDef LL_SetTickFreq(LL_TickFreqETypeDef Freq);
  99. LL_TickFreqETypeDef LL_GetTickFreq(void);
  100. void LL_SuspendTick(void);
  101. void LL_ResumeTick(void);
  102. void LL_Delay(uint32_t Delay);
  103. uint32_t LL_GetHalVersion(void);
  104. void LL_GetUID(uint32_t *UID[4]);
  105. /**
  106. * @}
  107. */
  108. /** @addtogroup TAE32F53xx_LL_Exported_Functions_Group3
  109. * @{
  110. */
  111. void LL_ShowInfo(void);
  112. void delay_ms(uint32_t ms);
  113. void printf_array(void *ptr, uint32_t len);
  114. /**
  115. * @}
  116. */
  117. /**
  118. * @}
  119. */
  120. /* Private types -------------------------------------------------------------*/
  121. /* Private variables ---------------------------------------------------------*/
  122. /* Private constants ---------------------------------------------------------*/
  123. /* Private macros ------------------------------------------------------------*/
  124. /* Private functions ---------------------------------------------------------*/
  125. /**
  126. * @}
  127. */
  128. /**
  129. * @}
  130. */
  131. #ifdef __cplusplus
  132. }
  133. #endif /* __cplusplus */
  134. #endif /* _TAE32F53XX_LL_H_ */
  135. /************************* (C) COPYRIGHT Tai-Action *****END OF FILE***********/