72 lines
2.7 KiB
C
72 lines
2.7 KiB
C
/**
|
|
* @file cw32f030_debug.h
|
|
* @author your name (you@domain.com)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2021-05-13
|
|
*
|
|
* @copyright Copyright (c) 2021
|
|
*
|
|
*/
|
|
|
|
/*******************************************************************************
|
|
*
|
|
* 代码许可和免责信息
|
|
* 武汉力源半导体有限公司授予您使用所有编程代码示例的非专属的版权许可,您可以由此
|
|
* 生成根据您的特定需要而定制的相似功能。根据不能被排除的任何法定保证,武汉力源半
|
|
* 导体有限公司及其程序开发商和供应商对程序或技术支持(如果有)不提供任何明示或暗
|
|
* 含的保证或条件,包括但不限于暗含的有关适销性、适用于某种特定用途和非侵权的保证
|
|
* 或条件。
|
|
* 无论何种情形,武汉力源半导体有限公司及其程序开发商或供应商均不对下列各项负责,
|
|
* 即使被告知其发生的可能性时,也是如此:数据的丢失或损坏;直接的、特别的、附带的
|
|
* 或间接的损害,或任何后果性经济损害;或利润、业务、收入、商誉或预期可节省金额的
|
|
* 损失。
|
|
* 某些司法辖区不允许对直接的、附带的或后果性的损害有任何的排除或限制,因此某些或
|
|
* 全部上述排除或限制可能并不适用于您。
|
|
*
|
|
*******************************************************************************/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __CW32F03x_DEBUG_H__
|
|
#define __CW32F03x_DEBUG_H__
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* Include files */
|
|
/*****************************************************************************/
|
|
|
|
#include "base_types.h"
|
|
#include "cw32f030.h"
|
|
|
|
/*****************************************************************************/
|
|
/* Global pre-processor symbols/macros ('#define') */
|
|
/*****************************************************************************/
|
|
//============================================================
|
|
void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState);
|
|
|
|
|
|
#define DBGMCU_ATIM_STOP ((uint32_t)0x00000001)
|
|
#define DBGMCU_GTIM1_STOP ((uint32_t)0x00000002)
|
|
#define DBGMCU_GTIM2_STOP ((uint32_t)0x00000004)
|
|
#define DBGMCU_GTIM3_STOP ((uint32_t)0x00000008)
|
|
#define DBGMCU_GTIM4_STOP ((uint32_t)0x00000010)
|
|
#define DBGMCU_BTIM123_STOP ((uint32_t)0x00000020)
|
|
#define DBGMCU_AWT_STOP ((uint32_t)0x00000040)
|
|
#define DBGMCU_RTC_STOP ((uint32_t)0x00000100)
|
|
#define DBGMCU_IWDT_STOP ((uint32_t)0x00000200)
|
|
#define DBGMCU_WWDT_STOP ((uint32_t)0x00000400)
|
|
#define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFF880) == 0x00) && ((PERIPH) != 0x00))
|
|
|
|
|
|
//============================================================
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|