Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
stm32f30x_dbgmcu.h
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f30x_dbgmcu.h 00004 * @author MCD Application Team 00005 * @version V1.2.3 00006 * @date 10-July-2015 00007 * @brief This file contains all the functions prototypes for the DBGMCU firmware library. 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT 2015 STMicroelectronics</center></h2> 00012 * 00013 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00014 * You may not use this file except in compliance with the License. 00015 * You may obtain a copy of the License at: 00016 * 00017 * http://www.st.com/software_license_agreement_liberty_v2 00018 * 00019 * Unless required by applicable law or agreed to in writing, software 00020 * distributed under the License is distributed on an "AS IS" BASIS, 00021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00022 * See the License for the specific language governing permissions and 00023 * limitations under the License. 00024 * 00025 ****************************************************************************** 00026 */ 00027 00028 /* Define to prevent recursive inclusion -------------------------------------*/ 00029 #ifndef __STM32F30x_DBGMCU_H 00030 #define __STM32F30x_DBGMCU_H 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 /* Includes ------------------------------------------------------------------*/ 00037 #include "stm32f30x.h" 00038 00039 /** @addtogroup STM32F30x_StdPeriph_Driver 00040 * @{ 00041 */ 00042 00043 /** @addtogroup DBGMCU 00044 * @{ 00045 */ 00046 00047 /* Exported types ------------------------------------------------------------*/ 00048 /* Exported constants --------------------------------------------------------*/ 00049 00050 /** @defgroup DBGMCU_Exported_Constants 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 IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFF8) == 0x00) && ((PERIPH) != 0x00)) 00057 00058 #define DBGMCU_TIM2_STOP ((uint32_t)0x00000001) 00059 #define DBGMCU_TIM3_STOP ((uint32_t)0x00000002) 00060 #define DBGMCU_TIM4_STOP ((uint32_t)0x00000004) 00061 #define DBGMCU_TIM6_STOP ((uint32_t)0x00000010) 00062 #define DBGMCU_TIM7_STOP ((uint32_t)0x00000020) 00063 #define DBGMCU_RTC_STOP ((uint32_t)0x00000400) 00064 #define DBGMCU_WWDG_STOP ((uint32_t)0x00000800) 00065 #define DBGMCU_IWDG_STOP ((uint32_t)0x00001000) 00066 #define DBGMCU_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00200000) 00067 #define DBGMCU_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00400000) 00068 #define DBGMCU_CAN1_STOP ((uint32_t)0x02000000) 00069 #define DBGMCU_I2C3_SMBUS_TIMEOUT ((uint32_t)0x40000000) 00070 00071 #define IS_DBGMCU_APB1PERIPH(PERIPH) ((((PERIPH) & 0xBD9FE3C8) == 0x00) && ((PERIPH) != 0x00)) 00072 00073 #define DBGMCU_TIM1_STOP ((uint32_t)0x00000001) 00074 #define DBGMCU_TIM8_STOP ((uint32_t)0x00000002) 00075 #define DBGMCU_TIM15_STOP ((uint32_t)0x00000004) 00076 #define DBGMCU_TIM16_STOP ((uint32_t)0x00000008) 00077 #define DBGMCU_TIM17_STOP ((uint32_t)0x00000010) 00078 #define DBGMCU_TIM20_STOP ((uint32_t)0x00000020) 00079 #define IS_DBGMCU_APB2PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFC0) == 0x00) && ((PERIPH) != 0x00)) 00080 00081 /** 00082 * @} 00083 */ 00084 00085 /* Exported macro ------------------------------------------------------------*/ 00086 /* Exported functions --------------------------------------------------------*/ 00087 /* Device and Revision ID management functions ********************************/ 00088 uint32_t DBGMCU_GetREVID(void); 00089 uint32_t DBGMCU_GetDEVID(void); 00090 00091 /* Peripherals Configuration functions ****************************************/ 00092 void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState); 00093 void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); 00094 void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState); 00095 00096 #ifdef __cplusplus 00097 } 00098 #endif 00099 00100 #endif /* __STM32F30x_DBGMCU_H */ 00101 00102 /** 00103 * @} 00104 */ 00105 00106 /** 00107 * @} 00108 */ 00109 00110 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 17:34:44 by
