stm32f10x_dbgmcu.c
Go to the documentation of this file.
1 
22 /* Includes ------------------------------------------------------------------*/
23 #include "stm32f10x_dbgmcu.h"
24 
46 #define IDCODE_DEVID_MASK ((uint32_t)0x00000FFF)
47 
84 uint32_t DBGMCU_GetREVID(void)
85 {
86  return(DBGMCU->IDCODE >> 16);
87 }
88 
94 uint32_t DBGMCU_GetDEVID(void)
95 {
96  return(DBGMCU->IDCODE & IDCODE_DEVID_MASK);
97 }
98 
134 void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState)
135 {
136  /* Check the parameters */
137  assert_param(IS_DBGMCU_PERIPH(DBGMCU_Periph));
139 
140  if (NewState != DISABLE)
141  {
142  DBGMCU->CR |= DBGMCU_Periph;
143  }
144  else
145  {
146  DBGMCU->CR &= ~DBGMCU_Periph;
147  }
148 }
149 
162 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
uint32_t DBGMCU_GetDEVID(void)
Returns the device identifier.
FunctionalState
Definition: stm32f4xx.h:708
#define IDCODE_DEVID_MASK
void assert_param(int val)
#define IS_DBGMCU_PERIPH(PERIPH)
#define IS_FUNCTIONAL_STATE(STATE)
Definition: stm32f4xx.h:709
void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState)
Configures the specified peripheral and low power mode behavior when the MCU under Debug mode...
#define DBGMCU
Definition: stm32f4xx.h:2167
uint32_t DBGMCU_GetREVID(void)
Returns the device revision identifier.
This file contains all the functions prototypes for the DBGMCU firmware library.


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:25