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 12 /* Define to prevent recursive inclusion -------------------------------------*/ 13 #ifndef __FT32F0XX_DBGMCU_H 14 #define __FT32F0XX_DBGMCU_H 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 /* Includes ------------------------------------------------------------------*/ 21 #include "ft32f0xx.h" 22 23 24 /** @addtogroup DBGMCU 25 * @{ 26 */ 27 /* Exported types ------------------------------------------------------------*/ 28 /* Exported constants --------------------------------------------------------*/ 29 30 31 /** @defgroup DBGMCU_Exported_Constants 32 * @{ 33 */ 34 35 #define DBGMCU_STOP DBGMCU_CR_DBG_STOP 36 #define DBGMCU_STANDBY DBGMCU_CR_DBG_STANDBY 37 #define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFF9) == 0x00) && ((PERIPH) != 0x00)) 38 39 #define DBGMCU_TIM2_STOP DBGMCU_APB1_FZ_DBG_TIM2_STOP 40 #define DBGMCU_TIM3_STOP DBGMCU_APB1_FZ_DBG_TIM3_STOP 41 #define DBGMCU_TIM6_STOP DBGMCU_APB1_FZ_DBG_TIM6_STOP 42 #define DBGMCU_TIM7_STOP DBGMCU_APB1_FZ_DBG_TIM7_STOP 43 #define DBGMCU_TIM14_STOP DBGMCU_APB1_FZ_DBG_TIM14_STOP 44 #define DBGMCU_RTC_STOP DBGMCU_APB1_FZ_DBG_RTC_STOP 45 #define DBGMCU_WWDG_STOP DBGMCU_APB1_FZ_DBG_WWDG_STOP 46 #define DBGMCU_IWDG_STOP DBGMCU_APB1_FZ_DBG_IWDG_STOP 47 #define DBGMCU_I2C1_SMBUS_TIMEOUT DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT 48 #define DBGMCU_CAN1_STOP DBGMCU_APB1_FZ_DBG_CAN1_STOP 49 #define IS_DBGMCU_APB1PERIPH(PERIPH) ((((PERIPH) & 0xFDDFE2CC) == 0x00) && ((PERIPH) != 0x00)) 50 51 #define DBGMCU_TIM1_STOP DBGMCU_APB2_FZ_DBG_TIM1_STOP 52 #define DBGMCU_TIM15_STOP DBGMCU_APB2_FZ_DBG_TIM15_STOP 53 #define DBGMCU_TIM16_STOP DBGMCU_APB2_FZ_DBG_TIM16_STOP 54 #define DBGMCU_TIM17_STOP DBGMCU_APB2_FZ_DBG_TIM17_STOP 55 #define IS_DBGMCU_APB2PERIPH(PERIPH) ((((PERIPH) & 0xFFF8F7FF) == 0x00) && ((PERIPH) != 0x00)) 56 57 /** 58 * @} 59 */ 60 61 /* Exported macro ------------------------------------------------------------*/ 62 /* Exported functions ------------------------------------------------------- */ 63 64 /* Device and Revision ID management functions ********************************/ 65 uint32_t DBGMCU_GetREVID(void); 66 uint32_t DBGMCU_GetDEVID(void); 67 68 /* Peripherals Configuration functions ****************************************/ 69 void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState); 70 void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); 71 void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); 72 73 #ifdef __cplusplus 74 } 75 #endif 76 77 #endif /* __FT32F0XX_DBGMCU_H */ 78 79 /** 80 * @} 81 */ 82 83 /** 84 * @} 85 */ 86 87 /************************ (C) COPYRIGHT FMD *****END OF FILE****/ 88