MG32F157 Standard Peripherals Firmware Library
Macros | Functions
mg32f157_dbgmcu.h File Reference

This file contains all the functions prototypes for the DBGMCU firmware library. More...

#include "mg32f157.h"

Go to the source code of this file.

Macros

#define DBGMCU_SLEEP   ((uint32_t)0x00000001)
 
#define DBGMCU_STOP   ((uint32_t)0x00000002)
 
#define DBGMCU_STANDBY   ((uint32_t)0x00000004)
 
#define DBGMCU_IWDG_STOP   ((uint32_t)0x00000100)
 
#define DBGMCU_WWDG_STOP   ((uint32_t)0x00000200)
 
#define DBGMCU_TIM1_STOP   ((uint32_t)0x00000400)
 
#define DBGMCU_TIM2_STOP   ((uint32_t)0x00000800)
 
#define DBGMCU_TIM3_STOP   ((uint32_t)0x00001000)
 
#define DBGMCU_TIM4_STOP   ((uint32_t)0x00002000)
 
#define DBGMCU_CAN1_STOP   ((uint32_t)0x00004000)
 
#define DBGMCU_I2C1_SMBUS_TIMEOUT   ((uint32_t)0x00008000)
 
#define DBGMCU_I2C2_SMBUS_TIMEOUT   ((uint32_t)0x00010000)
 
#define DBGMCU_TIM8_STOP   ((uint32_t)0x00020000)
 
#define DBGMCU_TIM5_STOP   ((uint32_t)0x00040000)
 
#define DBGMCU_TIM6_STOP   ((uint32_t)0x00080000)
 
#define DBGMCU_TIM7_STOP   ((uint32_t)0x00100000)
 
#define DBGMCU_CAN2_STOP   ((uint32_t)0x00200000)
 
#define IS_DBGMCU_PERIPH(PERIPH)   ((((PERIPH) & 0x800000F8) == 0x00) && ((PERIPH) != 0x00))
 

Functions

uint32_t DBGMCU_GetREVID (void)
 Returns the device revision identifier. More...
 
uint32_t DBGMCU_GetDEVID (void)
 Returns the device identifier. More...
 
void DBGMCU_Config (uint32_t DBGMCU_Periph, FunctionalState NewState)
 Configures the specified peripheral and low power mode behavior when the MCU under Debug mode. More...
 

Detailed Description

This file contains all the functions prototypes for the DBGMCU firmware library.

Author
MegawinTech Application Team
Version
V0.0.4
Date
16-June-2023