mirror of
https://github.com/xiaotianbc/AT32_BSPV1_Clion_Template.git
synced 2026-05-21 01:12:16 +00:00
init
This commit is contained in:
162
StdPeriph_Driver/inc/at32f4xx_dbgmcu.h
Normal file
162
StdPeriph_Driver/inc/at32f4xx_dbgmcu.h
Normal file
@@ -0,0 +1,162 @@
|
||||
/**
|
||||
**************************************************************************
|
||||
* File : at32f4xx_dbgmcu.h
|
||||
* Version: V1.3.0
|
||||
* Date : 2021-03-18
|
||||
* Brief : at32f4xx MCUDBG header file
|
||||
**************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __AT32F4XX_MCUDBG_H
|
||||
#define __AT32F4XX_MCUDBG_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "at32f4xx.h"
|
||||
|
||||
/** @addtogroup at32f4xx_StdPeriph_Driver
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup MCUDBG
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup MCUDBG_Exported_Types
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup MCUDBG_Exported_Constants
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define MCUDBG_SLEEP ((uint32_t)0x00000001)
|
||||
#define MCUDBG_STOP ((uint32_t)0x00000002)
|
||||
#define MCUDBG_STANDBY ((uint32_t)0x00000004)
|
||||
#define MCUDBG_IWDG_STOP ((uint32_t)0x00000100)
|
||||
#define MCUDBG_WWDG_STOP ((uint32_t)0x00000200)
|
||||
#define MCUDBG_TMR1_STOP ((uint32_t)0x00000400)
|
||||
#define MCUDBG_TMR3_STOP ((uint32_t)0x00001000)
|
||||
#define MCUDBG_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00008000)
|
||||
#define MCUDBG_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00010000)
|
||||
|
||||
#if defined (AT32F403xx)
|
||||
#define MCUDBG_TMR2_STOP ((uint32_t)0x00000800)
|
||||
#define MCUDBG_TMR4_STOP ((uint32_t)0x00002000)
|
||||
#define MCUDBG_CAN1_STOP ((uint32_t)0x00004000)
|
||||
#define MCUDBG_TMR8_STOP ((uint32_t)0x00020000)
|
||||
#define MCUDBG_TMR5_STOP ((uint32_t)0x00040000)
|
||||
#define MCUDBG_TMR6_STOP ((uint32_t)0x00080000)
|
||||
#define MCUDBG_TMR7_STOP ((uint32_t)0x00100000)
|
||||
#define MCUDBG_TMR15_STOP ((uint32_t)0x00400000)
|
||||
#define MCUDBG_TMR12_STOP ((uint32_t)0x02000000)
|
||||
#define MCUDBG_TMR13_STOP ((uint32_t)0x04000000)
|
||||
#define MCUDBG_TMR14_STOP ((uint32_t)0x08000000)
|
||||
#define MCUDBG_TMR9_STOP ((uint32_t)0x10000000)
|
||||
#define MCUDBG_TMR10_STOP ((uint32_t)0x20000000)
|
||||
#define MCUDBG_TMR11_STOP ((uint32_t)0x40000000)
|
||||
#define MCUDBG_I2C3_SMBUS_TIMEOUT ((uint32_t)0x80000000)
|
||||
#define IS_MCUDBG_PERIPH(PERIPH) ((((PERIPH) & 0x01A000F8) == 0x00) && ((PERIPH) != 0x00))
|
||||
#endif
|
||||
|
||||
#if defined (AT32F413xx)
|
||||
#define MCUDBG_TMR2_STOP ((uint32_t)0x00000800)
|
||||
#define MCUDBG_TMR4_STOP ((uint32_t)0x00002000)
|
||||
#define MCUDBG_CAN1_STOP ((uint32_t)0x00004000)
|
||||
#define MCUDBG_TMR8_STOP ((uint32_t)0x00020000)
|
||||
#define MCUDBG_TMR5_STOP ((uint32_t)0x00040000)
|
||||
#define MCUDBG_CAN2_STOP ((uint32_t)0x00200000)
|
||||
#define MCUDBG_TMR9_STOP ((uint32_t)0x10000000)
|
||||
#define MCUDBG_TMR10_STOP ((uint32_t)0x20000000)
|
||||
#define MCUDBG_TMR11_STOP ((uint32_t)0x40000000)
|
||||
#define IS_MCUDBG_PERIPH(PERIPH) ((((PERIPH) & 0x8FD800F8) == 0x00) && ((PERIPH) != 0x00))
|
||||
#endif
|
||||
|
||||
#if defined (AT32F415xx)
|
||||
#define MCUDBG_TMR2_STOP ((uint32_t)0x00000800)
|
||||
#define MCUDBG_TMR4_STOP ((uint32_t)0x00002000)
|
||||
#define MCUDBG_CAN1_STOP ((uint32_t)0x00004000)
|
||||
#define MCUDBG_TMR5_STOP ((uint32_t)0x00040000)
|
||||
#define MCUDBG_TMR9_STOP ((uint32_t)0x10000000)
|
||||
#define MCUDBG_TMR10_STOP ((uint32_t)0x20000000)
|
||||
#define MCUDBG_TMR11_STOP ((uint32_t)0x40000000)
|
||||
#define IS_MCUDBG_PERIPH(PERIPH) ((((PERIPH) & 0x8FFE00F8) == 0x00) && ((PERIPH) != 0x00))
|
||||
#endif
|
||||
|
||||
#if defined (AT32F403Axx) || defined (AT32F407xx)
|
||||
#define MCUDBG_TMR2_STOP ((uint32_t)0x00000800)
|
||||
#define MCUDBG_TMR4_STOP ((uint32_t)0x00002000)
|
||||
#define MCUDBG_CAN1_STOP ((uint32_t)0x00004000)
|
||||
#define MCUDBG_TMR8_STOP ((uint32_t)0x00020000)
|
||||
#define MCUDBG_TMR5_STOP ((uint32_t)0x00040000)
|
||||
#define MCUDBG_TMR6_STOP ((uint32_t)0x00080000)
|
||||
#define MCUDBG_TMR7_STOP ((uint32_t)0x00100000)
|
||||
#define MCUDBG_CAN2_STOP ((uint32_t)0x00200000)
|
||||
#define MCUDBG_TMR12_STOP ((uint32_t)0x02000000)
|
||||
#define MCUDBG_TMR13_STOP ((uint32_t)0x04000000)
|
||||
#define MCUDBG_TMR14_STOP ((uint32_t)0x08000000)
|
||||
#define MCUDBG_TMR9_STOP ((uint32_t)0x10000000)
|
||||
#define MCUDBG_TMR10_STOP ((uint32_t)0x20000000)
|
||||
#define MCUDBG_TMR11_STOP ((uint32_t)0x40000000)
|
||||
#define MCUDBG_I2C3_SMBUS_TIMEOUT ((uint32_t)0x80000000)
|
||||
#define IS_MCUDBG_PERIPH(PERIPH) ((((PERIPH) & 0x01C000F8) == 0x00) && ((PERIPH) != 0x00))
|
||||
#endif
|
||||
|
||||
#if defined (AT32F421xx)
|
||||
#define MCUDBG_ERTC_STOP ((uint32_t)0x00004000)
|
||||
#define MCUDBG_TMR6_STOP ((uint32_t)0x00080000)
|
||||
#define MCUDBG_ERTC_512_STOP ((uint32_t)0x00200000)
|
||||
#define MCUDBG_TMR15_STOP ((uint32_t)0x00400000)
|
||||
#define MCUDBG_TMR16_STOP ((uint32_t)0x00800000)
|
||||
#define MCUDBG_TMR17_STOP ((uint32_t)0x01000000)
|
||||
#define MCUDBG_TMR14_STOP ((uint32_t)0x08000000)
|
||||
#define IS_MCUDBG_PERIPH(PERIPH) ((((PERIPH) & 0xF61628F8) == 0x00) && ((PERIPH) != 0x00))
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup MCUDBG_Exported_Macros
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/** @defgroup MCUDBG_Exported_Functions
|
||||
* @{
|
||||
*/
|
||||
|
||||
uint32_t MCUDBG_GetRevID(void);
|
||||
uint32_t MCUDBG_GetDevID(void);
|
||||
void MCUDBG_PeriphDebugModeConfig(uint32_t MCUDBG_Periph, FunctionalState NewState);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __AT32F4XX_MCUDBG_H */
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user