2 ******************************************************************************
\r
3 * @file stm32l1xx_dbgmcu.h
\r
4 * @author MCD Application Team
\r
6 * @date 05-March-2012
\r
7 * @brief This file contains all the functions prototypes for the DBGMCU
\r
9 ******************************************************************************
\r
12 * <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
\r
14 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
\r
15 * You may not use this file except in compliance with the License.
\r
16 * You may obtain a copy of the License at:
\r
18 * http://www.st.com/software_license_agreement_liberty_v2
\r
20 * Unless required by applicable law or agreed to in writing, software
\r
21 * distributed under the License is distributed on an "AS IS" BASIS,
\r
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
23 * See the License for the specific language governing permissions and
\r
24 * limitations under the License.
\r
26 ******************************************************************************
\r
29 /* Define to prevent recursive inclusion -------------------------------------*/
\r
30 #ifndef __STM32L1xx_DBGMCU_H
\r
31 #define __STM32L1xx_DBGMCU_H
\r
37 /* Includes ------------------------------------------------------------------*/
\r
38 #include "stm32l1xx.h"
\r
40 /** @addtogroup STM32L1xx_StdPeriph_Driver
\r
44 /** @addtogroup DBGMCU
\r
48 /* Exported types ------------------------------------------------------------*/
\r
49 /* Exported constants --------------------------------------------------------*/
\r
51 /** @defgroup DBGMCU_Exported_Constants
\r
55 #define DBGMCU_SLEEP ((uint32_t)0x00000001)
\r
56 #define DBGMCU_STOP ((uint32_t)0x00000002)
\r
57 #define DBGMCU_STANDBY ((uint32_t)0x00000004)
\r
58 #define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFF8) == 0x00) && ((PERIPH) != 0x00))
\r
60 #define DBGMCU_TIM2_STOP ((uint32_t)0x00000001)
\r
61 #define DBGMCU_TIM3_STOP ((uint32_t)0x00000002)
\r
62 #define DBGMCU_TIM4_STOP ((uint32_t)0x00000004)
\r
63 #define DBGMCU_TIM5_STOP ((uint32_t)0x00000008)
\r
64 #define DBGMCU_TIM6_STOP ((uint32_t)0x00000010)
\r
65 #define DBGMCU_TIM7_STOP ((uint32_t)0x00000020)
\r
66 #define DBGMCU_RTC_STOP ((uint32_t)0x00000400)
\r
67 #define DBGMCU_WWDG_STOP ((uint32_t)0x00000800)
\r
68 #define DBGMCU_IWDG_STOP ((uint32_t)0x00001000)
\r
69 #define DBGMCU_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00200000)
\r
70 #define DBGMCU_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00400000)
\r
71 #define IS_DBGMCU_APB1PERIPH(PERIPH) ((((PERIPH) & 0xFF9FE3C0) == 0x00) && ((PERIPH) != 0x00))
\r
73 #define DBGMCU_TIM9_STOP ((uint32_t)0x00000004)
\r
74 #define DBGMCU_TIM10_STOP ((uint32_t)0x00000008)
\r
75 #define DBGMCU_TIM11_STOP ((uint32_t)0x00000010)
\r
76 #define IS_DBGMCU_APB2PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFE3) == 0x00) && ((PERIPH) != 0x00))
\r
82 /* Exported macro ------------------------------------------------------------*/
\r
83 /* Exported functions ------------------------------------------------------- */
\r
85 uint32_t DBGMCU_GetREVID(void);
\r
86 uint32_t DBGMCU_GetDEVID(void);
\r
87 void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState);
\r
88 void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState);
\r
89 void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState);
\r
95 #endif /* __STM32L1xx_DBGMCU_H */
\r
105 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
\r