1 /*! 2 * @file apm32e10x_dbgmcu.h 3 * 4 * @brief This file contains all the functions prototypes for the DBUGMCU firmware library 5 * 6 * @version V1.0.2 7 * 8 * @date 2022-12-31 9 * 10 * @attention 11 * 12 * Copyright (C) 2021-2023 Geehy Semiconductor 13 * 14 * You may not use this file except in compliance with the 15 * GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE). 16 * 17 * The program is only for reference, which is distributed in the hope 18 * that it will be useful and instructional for customers to develop 19 * their software. Unless required by applicable law or agreed to in 20 * writing, the program is distributed on an "AS IS" BASIS, WITHOUT 21 * ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied. 22 * See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions 23 * and limitations under the License. 24 */ 25 26 /* Define to prevent recursive inclusion */ 27 #ifndef __APM32E10X_DBGMCU_H 28 #define __APM32E10X_DBGMCU_H 29 30 /* Includes */ 31 #include "apm32e10x.h" 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 /** @addtogroup APM32E10x_StdPeriphDriver 38 @{ 39 */ 40 41 /** @addtogroup DBGMCU_Driver 42 @{ 43 */ 44 45 /** @defgroup DBGMCU_Enumerations Enumerations 46 @{ 47 */ 48 49 /** 50 * @brief DBGMCU_STOP description 51 */ 52 typedef enum 53 { 54 DBGMCU_SLEEP = ((uint32_t)0x00000001), 55 DBGMCU_STOP = ((uint32_t)0x00000002), 56 DBGMCU_STANDBY = ((uint32_t)0x00000004), 57 DBGMCU_IWDT_STOP = ((uint32_t)0x00000100), 58 DBGMCU_WWDT_STOP = ((uint32_t)0x00000200), 59 DBGMCU_TMR1_STOP = ((uint32_t)0x00000400), 60 DBGMCU_TMR2_STOP = ((uint32_t)0x00000800), 61 DBGMCU_TMR3_STOP = ((uint32_t)0x00001000), 62 DBGMCU_TMR4_STOP = ((uint32_t)0x00002000), 63 DBGMCU_CAN1_STOP = ((uint32_t)0x00004000), 64 DBGMCU_I2C1_SMBUS_TIMEOUT = ((uint32_t)0x00008000), 65 DBGMCU_I2C2_SMBUS_TIMEOUT = ((uint32_t)0x00010000), 66 DBGMCU_TMR8_STOP = ((uint32_t)0x00020000), 67 DBGMCU_TMR5_STOP = ((uint32_t)0x00040000), 68 DBGMCU_TMR6_STOP = ((uint32_t)0x00080000), 69 DBGMCU_TMR7_STOP = ((uint32_t)0x00100000), 70 DBGMCU_CAN2_STOP = ((uint32_t)0x00200000), 71 DBGMCU_TMR15_STOP = ((uint32_t)0x00400000), 72 DBGMCU_TMR16_STOP = ((uint32_t)0x00800000), 73 DBGMCU_TMR17_STOP = ((uint32_t)0x01000000), 74 DBGMCU_TMR12_STOP = ((uint32_t)0x02000000), 75 DBGMCU_TMR13_STOP = ((uint32_t)0x04000000), 76 DBGMCU_TMR14_STOP = ((uint32_t)0x08000000), 77 DBGMCU_TMR9_STOP = ((uint32_t)0x10000000), 78 DBGMCU_TMR10_STOP = ((uint32_t)0x20000000), 79 DBGMCU_TMR11_STOP = ((uint32_t)0x40000000), 80 } DBGMCU_STOP_T; 81 82 /**@} end of group DBGMCU_Enumerations */ 83 84 85 /** @defgroup DBGMCU_Functions Functions 86 @{ 87 */ 88 89 uint32_t DBGMCU_ReadDEVID(void); 90 uint32_t DBGMCU_ReadREVID(void); 91 void DBGMCU_Enable(uint32_t periph); 92 void DBGMCU_Disable(uint32_t periph); 93 94 /**@} end of group DBGMCU_Functions */ 95 /**@} end of group DBGMCU_Driver */ 96 /**@} end of group APM32E10x_StdPeriphDriver */ 97 98 #ifdef __cplusplus 99 } 100 #endif 101 102 #endif /* __APM32E10X_DBGMCU_H */ 103