1
0

apm32f10x_dbgmcu.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.2
  7. *
  8. * @date 2022-01-05
  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 usefull 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. #ifndef __APM32F10X_DBGMCU_H
  26. #define __APM32F10X_DBGMCU_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #include "apm32f10x.h"
  31. /** @addtogroup Peripherals_Library Standard Peripheral Library
  32. @{
  33. */
  34. /** @addtogroup DBGMCU_Driver DBGMCU Driver
  35. @{
  36. */
  37. /** @addtogroup DBGMCU_Enumerations Enumerations
  38. @{
  39. */
  40. enum
  41. {
  42. DBGMCU_SLEEP = ((uint32_t)0x00000001),
  43. DBGMCU_STOP = ((uint32_t)0x00000002),
  44. DBGMCU_STANDBY = ((uint32_t)0x00000004),
  45. DBGMCU_IWDT_STOP = ((uint32_t)0x00000100),
  46. DBGMCU_WWDT_STOP = ((uint32_t)0x00000200),
  47. DBGMCU_TMR1_STOP = ((uint32_t)0x00000400),
  48. DBGMCU_TMR2_STOP = ((uint32_t)0x00000800),
  49. DBGMCU_TMR3_STOP = ((uint32_t)0x00001000),
  50. DBGMCU_TMR4_STOP = ((uint32_t)0x00002000),
  51. DBGMCU_CAN1_STOP = ((uint32_t)0x00004000),
  52. DBGMCU_I2C1_SMBUS_TIMEOUT = ((uint32_t)0x00008000),
  53. DBGMCU_I2C2_SMBUS_TIMEOUT = ((uint32_t)0x00010000),
  54. DBGMCU_TMR8_STOP = ((uint32_t)0x00020000),
  55. DBGMCU_TMR5_STOP = ((uint32_t)0x00040000),
  56. DBGMCU_TMR6_STOP = ((uint32_t)0x00080000),
  57. DBGMCU_TMR7_STOP = ((uint32_t)0x00100000),
  58. DBGMCU_CAN2_STOP = ((uint32_t)0x00200000),
  59. DBGMCU_TMR15_STOP = ((uint32_t)0x00400000),
  60. DBGMCU_TMR16_STOP = ((uint32_t)0x00800000),
  61. DBGMCU_TMR17_STOP = ((uint32_t)0x01000000),
  62. DBGMCU_TMR12_STOP = ((uint32_t)0x02000000),
  63. DBGMCU_TMR13_STOP = ((uint32_t)0x04000000),
  64. DBGMCU_TMR14_STOP = ((uint32_t)0x08000000),
  65. DBGMCU_TMR9_STOP = ((uint32_t)0x10000000),
  66. DBGMCU_TMR10_STOP = ((uint32_t)0x20000000),
  67. DBGMCU_TMR11_STOP = ((uint32_t)0x40000000),
  68. };
  69. /**@} end of group DBGMCU_Enumerations*/
  70. /** @addtogroup DBGMCU_Fuctions Fuctions
  71. @{
  72. */
  73. uint32_t DBGMCU_ReadDEVID(void);
  74. uint32_t DBGMCU_ReadREVID(void);
  75. void DBGMCU_Enable(uint32_t periph);
  76. void DBGMCU_Disable(uint32_t periph);
  77. /**@} end of group DBGMCU_Fuctions*/
  78. /**@} end of group DBGMCU_Driver*/
  79. /**@} end of group Peripherals_Library*/
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif /* __APM32F10X_DBGMCU_H */