42 #define IDCODE_DEVID_MASK ((uint32_t)0x00000FFF)
60 return(DBGMCU->IDCODE >> 16);
70 return(DBGMCU->IDCODE & IDCODE_DEVID_MASK);
87 assert_param(IS_DBGMCU_PERIPH(DBGMCU_Periph));
88 assert_param(IS_FUNCTIONAL_STATE(NewState));
89 if (NewState != DISABLE)
91 DBGMCU->CR |= DBGMCU_Periph;
95 DBGMCU->CR &= ~DBGMCU_Periph;
126 assert_param(IS_DBGMCU_APB1PERIPH(DBGMCU_Periph));
127 assert_param(IS_FUNCTIONAL_STATE(NewState));
129 if (NewState != DISABLE)
131 DBGMCU->APB1FZ |= DBGMCU_Periph;
135 DBGMCU->APB1FZ &= ~DBGMCU_Periph;
155 assert_param(IS_DBGMCU_APB2PERIPH(DBGMCU_Periph));
156 assert_param(IS_FUNCTIONAL_STATE(NewState));
158 if (NewState != DISABLE)
160 DBGMCU->APB2FZ |= DBGMCU_Periph;
164 DBGMCU->APB2FZ &= ~DBGMCU_Periph;
uint32_t DBGMCU_GetREVID(void)
Returns the device revision identifier.
This file contains all the functions prototypes for the DBGMCU firmware library.
uint32_t DBGMCU_GetDEVID(void)
Returns the device identifier.
void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState)
Configures APB1 peripheral behavior when the MCU is in Debug mode.
void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState)
Configures APB2 peripheral behavior when the MCU is in Debug mode.
void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState)
Configures low power mode behavior when the MCU is in Debug mode.