apm32f10x_dbgmcu.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*!
  2. * @file apm32f10x_dbgmcu.h
  3. *
  4. * @brief This file contains all the functions prototypes for the DBUGMCU firmware library
  5. *
  6. * @version V1.0.4
  7. *
  8. * @date 2022-12-01
  9. *
  10. * @attention
  11. *
  12. * Copyright (C) 2020-2022 Geehy Semiconductor
  13. *
  14. * You may not use this file except in compliance with the
  15. * GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE).
  16. *
  17. * The program is only for reference, which is distributed in the hope
  18. * that it will be useful and instructional for customers to develop
  19. * their software. Unless required by applicable law or agreed to in
  20. * writing, the program is distributed on an "AS IS" BASIS, WITHOUT
  21. * ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions
  23. * and limitations under the License.
  24. */
  25. /* Define to prevent recursive inclusion */
  26. #ifndef __APM32F10X_DBGMCU_H
  27. #define __APM32F10X_DBGMCU_H
  28. /* Includes */
  29. #include "apm32f10x.h"
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. /** @addtogroup APM32F10x_StdPeriphDriver
  34. @{
  35. */
  36. /** @addtogroup DBGMCU_Driver DBGMCU Driver
  37. @{
  38. */
  39. /** @defgroup DBGMCU_Enumerations Enumerations
  40. @{
  41. */
  42. /**
  43. * @brief DBGMCU_STOP description
  44. */
  45. enum
  46. {
  47. DBGMCU_SLEEP = ((uint32_t)0x00000001),
  48. DBGMCU_STOP = ((uint32_t)0x00000002),
  49. DBGMCU_STANDBY = ((uint32_t)0x00000004),
  50. DBGMCU_IWDT_STOP = ((uint32_t)0x00000100),
  51. DBGMCU_WWDT_STOP = ((uint32_t)0x00000200),
  52. DBGMCU_TMR1_STOP = ((uint32_t)0x00000400),
  53. DBGMCU_TMR2_STOP = ((uint32_t)0x00000800),
  54. DBGMCU_TMR3_STOP = ((uint32_t)0x00001000),
  55. DBGMCU_TMR4_STOP = ((uint32_t)0x00002000),
  56. DBGMCU_CAN1_STOP = ((uint32_t)0x00004000),
  57. DBGMCU_I2C1_SMBUS_TIMEOUT = ((uint32_t)0x00008000),
  58. DBGMCU_I2C2_SMBUS_TIMEOUT = ((uint32_t)0x00010000),
  59. DBGMCU_TMR8_STOP = ((uint32_t)0x00020000),
  60. DBGMCU_TMR5_STOP = ((uint32_t)0x00040000),
  61. DBGMCU_TMR6_STOP = ((uint32_t)0x00080000),
  62. DBGMCU_TMR7_STOP = ((uint32_t)0x00100000),
  63. DBGMCU_CAN2_STOP = ((uint32_t)0x00200000),
  64. DBGMCU_TMR15_STOP = ((uint32_t)0x00400000),
  65. DBGMCU_TMR16_STOP = ((uint32_t)0x00800000),
  66. DBGMCU_TMR17_STOP = ((uint32_t)0x01000000),
  67. DBGMCU_TMR12_STOP = ((uint32_t)0x02000000),
  68. DBGMCU_TMR13_STOP = ((uint32_t)0x04000000),
  69. DBGMCU_TMR14_STOP = ((uint32_t)0x08000000),
  70. DBGMCU_TMR9_STOP = ((uint32_t)0x10000000),
  71. DBGMCU_TMR10_STOP = ((uint32_t)0x20000000),
  72. DBGMCU_TMR11_STOP = ((uint32_t)0x40000000),
  73. };
  74. /**@} end of group DBGMCU_Enumerations*/
  75. /** @defgroup DBGMCU_Functions Functions
  76. @{
  77. */
  78. uint32_t DBGMCU_ReadDEVID(void);
  79. uint32_t DBGMCU_ReadREVID(void);
  80. void DBGMCU_Enable(uint32_t periph);
  81. void DBGMCU_Disable(uint32_t periph);
  82. /**@} end of group DBGMCU_Functions*/
  83. /**@} end of group DBGMCU_Driver */
  84. /**@} end of group APM32F10x_StdPeriphDriver */
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88. #endif /* __APM32F10X_DBGMCU_H */