stm32f10x_dbgmcu.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32f10x_dbgmcu.h
00004   * @author  MCD Application Team
00005   * @version V3.4.0
00006   * @date    10/15/2010
00007   * @brief   This file contains all the functions prototypes for the DBGMCU 
00008   *          firmware library.
00009   ******************************************************************************
00010   * @copy
00011   *
00012   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00013   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
00014   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
00015   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
00016   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
00017   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00018   *
00019   * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
00020   */ 
00021 
00022 /* Define to prevent recursive inclusion -------------------------------------*/
00023 #ifndef __STM32F10x_DBGMCU_H
00024 #define __STM32F10x_DBGMCU_H
00025 
00026 #ifdef __cplusplus
00027  extern "C" {
00028 #endif
00029 
00030 /* Includes ------------------------------------------------------------------*/
00031 #include "stm32f10x.h"
00032 
00033 /** @addtogroup STM32F10x_StdPeriph_Driver
00034   * @{
00035   */
00036 
00037 /** @addtogroup DBGMCU
00038   * @{
00039   */
00040 
00041 /** @defgroup DBGMCU_Exported_Types
00042   * @{
00043   */
00044 
00045 /**
00046   * @}
00047   */
00048 
00049 /** @defgroup DBGMCU_Exported_Constants
00050   * @{
00051   */
00052 
00053 #define DBGMCU_SLEEP                 ((uint32_t)0x00000001)
00054 #define DBGMCU_STOP                  ((uint32_t)0x00000002)
00055 #define DBGMCU_STANDBY               ((uint32_t)0x00000004)
00056 #define DBGMCU_IWDG_STOP             ((uint32_t)0x00000100)
00057 #define DBGMCU_WWDG_STOP             ((uint32_t)0x00000200)
00058 #define DBGMCU_TIM1_STOP             ((uint32_t)0x00000400)
00059 #define DBGMCU_TIM2_STOP             ((uint32_t)0x00000800)
00060 #define DBGMCU_TIM3_STOP             ((uint32_t)0x00001000)
00061 #define DBGMCU_TIM4_STOP             ((uint32_t)0x00002000)
00062 #define DBGMCU_CAN1_STOP             ((uint32_t)0x00004000)
00063 #define DBGMCU_I2C1_SMBUS_TIMEOUT    ((uint32_t)0x00008000)
00064 #define DBGMCU_I2C2_SMBUS_TIMEOUT    ((uint32_t)0x00010000)
00065 #define DBGMCU_TIM8_STOP             ((uint32_t)0x00020000)
00066 #define DBGMCU_TIM5_STOP             ((uint32_t)0x00040000)
00067 #define DBGMCU_TIM6_STOP             ((uint32_t)0x00080000)
00068 #define DBGMCU_TIM7_STOP             ((uint32_t)0x00100000)
00069 #define DBGMCU_CAN2_STOP             ((uint32_t)0x00200000)
00070 #define DBGMCU_TIM15_STOP            ((uint32_t)0x00400000)
00071 #define DBGMCU_TIM16_STOP            ((uint32_t)0x00800000)
00072 #define DBGMCU_TIM17_STOP            ((uint32_t)0x01000000)
00073 #define DBGMCU_TIM12_STOP            ((uint32_t)0x02000000)
00074 #define DBGMCU_TIM13_STOP            ((uint32_t)0x04000000)
00075 #define DBGMCU_TIM14_STOP            ((uint32_t)0x08000000)
00076 #define DBGMCU_TIM9_STOP             ((uint32_t)0x10000000)
00077 #define DBGMCU_TIM10_STOP            ((uint32_t)0x20000000)
00078 #define DBGMCU_TIM11_STOP            ((uint32_t)0x40000000)
00079                                               
00080 #define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0x800000F8) == 0x00) && ((PERIPH) != 0x00))
00081 /**
00082   * @}
00083   */ 
00084 
00085 /** @defgroup DBGMCU_Exported_Macros
00086   * @{
00087   */
00088 
00089 /**
00090   * @}
00091   */
00092 
00093 /** @defgroup DBGMCU_Exported_Functions
00094   * @{
00095   */
00096 
00097 uint32_t DBGMCU_GetREVID(void);
00098 uint32_t DBGMCU_GetDEVID(void);
00099 void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState);
00100 
00101 #ifdef __cplusplus
00102 }
00103 #endif
00104 
00105 #endif /* __STM32F10x_DBGMCU_H */
00106 /**
00107   * @}
00108   */
00109 
00110 /**
00111   * @}
00112   */
00113 
00114 /**
00115   * @}
00116   */
00117 
00118 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32