1
0

ft32f0xx_debug.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /**
  2. ******************************************************************************
  3. * @file ft32f0xx_debug.h
  4. * @author FMD AE
  5. * @brief This file contains all the functions prototypes for the DBGMCU firmware
  6. * library.
  7. * @version V1.0.0
  8. * @data 2021-07-01
  9. ******************************************************************************
  10. */
  11. /* Define to prevent recursive inclusion -------------------------------------*/
  12. #ifndef __FT32F0XX_DBGMCU_H
  13. #define __FT32F0XX_DBGMCU_H
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /* Includes ------------------------------------------------------------------*/
  18. #include "ft32f0xx.h"
  19. /** @addtogroup DBGMCU
  20. * @{
  21. */
  22. /* Exported types ------------------------------------------------------------*/
  23. /* Exported constants --------------------------------------------------------*/
  24. /** @defgroup DBGMCU_Exported_Constants
  25. * @{
  26. */
  27. #define DBGMCU_STOP DBGMCU_CR_DBG_STOP
  28. #define DBGMCU_STANDBY DBGMCU_CR_DBG_STANDBY
  29. #define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFF9) == 0x00) && ((PERIPH) != 0x00))
  30. #define DBGMCU_TIM2_STOP DBGMCU_APB1_FZ_DBG_TIM2_STOP
  31. #define DBGMCU_TIM3_STOP DBGMCU_APB1_FZ_DBG_TIM3_STOP
  32. #define DBGMCU_TIM6_STOP DBGMCU_APB1_FZ_DBG_TIM6_STOP
  33. #define DBGMCU_TIM7_STOP DBGMCU_APB1_FZ_DBG_TIM7_STOP
  34. #define DBGMCU_TIM14_STOP DBGMCU_APB1_FZ_DBG_TIM14_STOP
  35. #define DBGMCU_RTC_STOP DBGMCU_APB1_FZ_DBG_RTC_STOP
  36. #define DBGMCU_WWDG_STOP DBGMCU_APB1_FZ_DBG_WWDG_STOP
  37. #define DBGMCU_IWDG_STOP DBGMCU_APB1_FZ_DBG_IWDG_STOP
  38. #define DBGMCU_I2C1_SMBUS_TIMEOUT DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT
  39. #define DBGMCU_CAN1_STOP DBGMCU_APB1_FZ_DBG_CAN1_STOP
  40. #define IS_DBGMCU_APB1PERIPH(PERIPH) ((((PERIPH) & 0xFDDFE2CC) == 0x00) && ((PERIPH) != 0x00))
  41. #define DBGMCU_TIM1_STOP DBGMCU_APB2_FZ_DBG_TIM1_STOP
  42. #define DBGMCU_TIM15_STOP DBGMCU_APB2_FZ_DBG_TIM15_STOP
  43. #define DBGMCU_TIM16_STOP DBGMCU_APB2_FZ_DBG_TIM16_STOP
  44. #define DBGMCU_TIM17_STOP DBGMCU_APB2_FZ_DBG_TIM17_STOP
  45. #define IS_DBGMCU_APB2PERIPH(PERIPH) ((((PERIPH) & 0xFFF8F7FF) == 0x00) && ((PERIPH) != 0x00))
  46. /**
  47. * @}
  48. */
  49. /* Exported macro ------------------------------------------------------------*/
  50. /* Exported functions ------------------------------------------------------- */
  51. /* Device and Revision ID management functions ********************************/
  52. uint32_t DBGMCU_GetREVID(void);
  53. uint32_t DBGMCU_GetDEVID(void);
  54. /* Peripherals Configuration functions ****************************************/
  55. void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState);
  56. void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState);
  57. void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState);
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif /* __FT32F0XX_DBGMCU_H */
  62. /**
  63. * @}
  64. */
  65. /**
  66. * @}
  67. */
  68. /************************ (C) COPYRIGHT FMD *****END OF FILE****/