1 |
582 |
jeremybenn |
/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
|
2 |
|
|
* File Name : stm32f10x_dbgmcu.h
|
3 |
|
|
* Author : MCD Application Team
|
4 |
|
|
* Version : V2.0.1
|
5 |
|
|
* Date : 06/13/2008
|
6 |
|
|
* Description : This file contains all the functions prototypes for the
|
7 |
|
|
* DBGMCU firmware library.
|
8 |
|
|
********************************************************************************
|
9 |
|
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
10 |
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
|
11 |
|
|
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
|
12 |
|
|
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
|
13 |
|
|
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
|
14 |
|
|
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
15 |
|
|
*******************************************************************************/
|
16 |
|
|
|
17 |
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
18 |
|
|
#ifndef __STM32F10x_DBGMCU_H
|
19 |
|
|
#define __STM32F10x_DBGMCU_H
|
20 |
|
|
|
21 |
|
|
/* Includes ------------------------------------------------------------------*/
|
22 |
|
|
#include "stm32f10x_map.h"
|
23 |
|
|
|
24 |
|
|
/* Exported types ------------------------------------------------------------*/
|
25 |
|
|
/* Exported constants --------------------------------------------------------*/
|
26 |
|
|
#define DBGMCU_SLEEP ((u32)0x00000001)
|
27 |
|
|
#define DBGMCU_STOP ((u32)0x00000002)
|
28 |
|
|
#define DBGMCU_STANDBY ((u32)0x00000004)
|
29 |
|
|
#define DBGMCU_IWDG_STOP ((u32)0x00000100)
|
30 |
|
|
#define DBGMCU_WWDG_STOP ((u32)0x00000200)
|
31 |
|
|
#define DBGMCU_TIM1_STOP ((u32)0x00000400)
|
32 |
|
|
#define DBGMCU_TIM2_STOP ((u32)0x00000800)
|
33 |
|
|
#define DBGMCU_TIM3_STOP ((u32)0x00001000)
|
34 |
|
|
#define DBGMCU_TIM4_STOP ((u32)0x00002000)
|
35 |
|
|
#define DBGMCU_CAN_STOP ((u32)0x00004000)
|
36 |
|
|
#define DBGMCU_I2C1_SMBUS_TIMEOUT ((u32)0x00008000)
|
37 |
|
|
#define DBGMCU_I2C2_SMBUS_TIMEOUT ((u32)0x00010000)
|
38 |
|
|
#define DBGMCU_TIM5_STOP ((u32)0x00020000)
|
39 |
|
|
#define DBGMCU_TIM6_STOP ((u32)0x00040000)
|
40 |
|
|
#define DBGMCU_TIM7_STOP ((u32)0x00080000)
|
41 |
|
|
#define DBGMCU_TIM8_STOP ((u32)0x00100000)
|
42 |
|
|
|
43 |
|
|
#define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFE000F8) == 0x00) && ((PERIPH) != 0x00))
|
44 |
|
|
|
45 |
|
|
/* Exported macro ------------------------------------------------------------*/
|
46 |
|
|
/* Exported functions ------------------------------------------------------- */
|
47 |
|
|
u32 DBGMCU_GetREVID(void);
|
48 |
|
|
u32 DBGMCU_GetDEVID(void);
|
49 |
|
|
void DBGMCU_Config(u32 DBGMCU_Periph, FunctionalState NewState);
|
50 |
|
|
|
51 |
|
|
#endif /* __STM32F10x_DBGMCU_H */
|
52 |
|
|
|
53 |
|
|
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/
|
54 |
|
|
|
55 |
|
|
|