apm32f10x_dbgmcu.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.1
  7. *
  8. * @date 2021-03-23
  9. *
  10. */
  11. #ifndef __APM32F10X_DBGMCU_H
  12. #define __APM32F10X_DBGMCU_H
  13. #include "apm32f10x.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /** @addtogroup Peripherals_Library Standard Peripheral Library
  18. @{
  19. */
  20. /** @addtogroup DBGMCU_Driver DBGMCU Driver
  21. @{
  22. */
  23. /** @addtogroup DBGMCU_Enumerations Enumerations
  24. @{
  25. */
  26. enum
  27. {
  28. DBGMCU_SLEEP = ((uint32_t)0x00000001),
  29. DBGMCU_STOP = ((uint32_t)0x00000002),
  30. DBGMCU_STANDBY = ((uint32_t)0x00000004),
  31. DBGMCU_IWDT_STOP = ((uint32_t)0x00000100),
  32. DBGMCU_WWDT_STOP = ((uint32_t)0x00000200),
  33. DBGMCU_TMR1_STOP = ((uint32_t)0x00000400),
  34. DBGMCU_TMR2_STOP = ((uint32_t)0x00000800),
  35. DBGMCU_TMR3_STOP = ((uint32_t)0x00001000),
  36. DBGMCU_TMR4_STOP = ((uint32_t)0x00002000),
  37. DBGMCU_CAN1_STOP = ((uint32_t)0x00004000),
  38. DBGMCU_I2C1_SMBUS_TIMEOUT = ((uint32_t)0x00008000),
  39. DBGMCU_I2C2_SMBUS_TIMEOUT = ((uint32_t)0x00010000),
  40. DBGMCU_TMR8_STOP = ((uint32_t)0x00020000),
  41. DBGMCU_TMR5_STOP = ((uint32_t)0x00040000),
  42. DBGMCU_TMR6_STOP = ((uint32_t)0x00080000),
  43. DBGMCU_TMR7_STOP = ((uint32_t)0x00100000),
  44. DBGMCU_CAN2_STOP = ((uint32_t)0x00200000),
  45. DBGMCU_TMR15_STOP = ((uint32_t)0x00400000),
  46. DBGMCU_TMR16_STOP = ((uint32_t)0x00800000),
  47. DBGMCU_TMR17_STOP = ((uint32_t)0x01000000),
  48. DBGMCU_TMR12_STOP = ((uint32_t)0x02000000),
  49. DBGMCU_TMR13_STOP = ((uint32_t)0x04000000),
  50. DBGMCU_TMR14_STOP = ((uint32_t)0x08000000),
  51. DBGMCU_TMR9_STOP = ((uint32_t)0x10000000),
  52. DBGMCU_TMR10_STOP = ((uint32_t)0x20000000),
  53. DBGMCU_TMR11_STOP = ((uint32_t)0x40000000),
  54. };
  55. /**@} end of group DBGMCU_Enumerations*/
  56. /** @addtogroup DBGMCU_Fuctions Fuctions
  57. @{
  58. */
  59. uint32_t DBGMCU_ReadDEVID(void);
  60. uint32_t DBGMCU_ReadREVID(void);
  61. void DBGMCU_Enable(uint32_t periph);
  62. void DBGMCU_Disable(uint32_t periph);
  63. /**@} end of group DBGMCU_Fuctions*/
  64. /**@} end of group DBGMCU_Driver */
  65. /**@} end of group Peripherals_Library*/
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif /* __APM32F10X_DBGMCU_H */