uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
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));
138
assert_param
(
IS_FUNCTIONAL_STATE
(NewState));
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****/
arch
arm
stm32f10x
Drivers
source
stm32f10x_dbgmcu.c
Generated on Fri Nov 15 2013 05:00:17 for uc-sdk by
1.8.4