The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
emilmont
Date:
Fri Feb 14 14:36:43 2014 +0000
Revision:
77:869cf507173a
Child:
81:7d30d6019079
Release 77 of the mbed library

Main changes:
* Add target NUCLEO_F030R8
* Add target NUCLEO_F401RE
* Add target NUCLEO_F103RB
* Add target NUCLEO_L152RE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 77:869cf507173a 1 /**
emilmont 77:869cf507173a 2 ******************************************************************************
emilmont 77:869cf507173a 3 * @file stm32l1xx_dbgmcu.h
emilmont 77:869cf507173a 4 * @author MCD Application Team
emilmont 77:869cf507173a 5 * @version V1.3.0
emilmont 77:869cf507173a 6 * @date 31-January-2014
emilmont 77:869cf507173a 7 * @brief This file contains all the functions prototypes for the DBGMCU
emilmont 77:869cf507173a 8 * firmware library.
emilmont 77:869cf507173a 9 ******************************************************************************
emilmont 77:869cf507173a 10 * @attention
emilmont 77:869cf507173a 11 *
emilmont 77:869cf507173a 12 * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
emilmont 77:869cf507173a 13 *
emilmont 77:869cf507173a 14 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
emilmont 77:869cf507173a 15 * You may not use this file except in compliance with the License.
emilmont 77:869cf507173a 16 * You may obtain a copy of the License at:
emilmont 77:869cf507173a 17 *
emilmont 77:869cf507173a 18 * http://www.st.com/software_license_agreement_liberty_v2
emilmont 77:869cf507173a 19 *
emilmont 77:869cf507173a 20 * Unless required by applicable law or agreed to in writing, software
emilmont 77:869cf507173a 21 * distributed under the License is distributed on an "AS IS" BASIS,
emilmont 77:869cf507173a 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
emilmont 77:869cf507173a 23 * See the License for the specific language governing permissions and
emilmont 77:869cf507173a 24 * limitations under the License.
emilmont 77:869cf507173a 25 *
emilmont 77:869cf507173a 26 ******************************************************************************
emilmont 77:869cf507173a 27 */
emilmont 77:869cf507173a 28
emilmont 77:869cf507173a 29 /* Define to prevent recursive inclusion -------------------------------------*/
emilmont 77:869cf507173a 30 #ifndef __STM32L1xx_DBGMCU_H
emilmont 77:869cf507173a 31 #define __STM32L1xx_DBGMCU_H
emilmont 77:869cf507173a 32
emilmont 77:869cf507173a 33 #ifdef __cplusplus
emilmont 77:869cf507173a 34 extern "C" {
emilmont 77:869cf507173a 35 #endif
emilmont 77:869cf507173a 36
emilmont 77:869cf507173a 37 /* Includes ------------------------------------------------------------------*/
emilmont 77:869cf507173a 38 #include "stm32l1xx.h"
emilmont 77:869cf507173a 39
emilmont 77:869cf507173a 40 /** @addtogroup STM32L1xx_StdPeriph_Driver
emilmont 77:869cf507173a 41 * @{
emilmont 77:869cf507173a 42 */
emilmont 77:869cf507173a 43
emilmont 77:869cf507173a 44 /** @addtogroup DBGMCU
emilmont 77:869cf507173a 45 * @{
emilmont 77:869cf507173a 46 */
emilmont 77:869cf507173a 47
emilmont 77:869cf507173a 48 /* Exported types ------------------------------------------------------------*/
emilmont 77:869cf507173a 49 /* Exported constants --------------------------------------------------------*/
emilmont 77:869cf507173a 50
emilmont 77:869cf507173a 51 /** @defgroup DBGMCU_Exported_Constants
emilmont 77:869cf507173a 52 * @{
emilmont 77:869cf507173a 53 */
emilmont 77:869cf507173a 54
emilmont 77:869cf507173a 55 #define DBGMCU_SLEEP ((uint32_t)0x00000001)
emilmont 77:869cf507173a 56 #define DBGMCU_STOP ((uint32_t)0x00000002)
emilmont 77:869cf507173a 57 #define DBGMCU_STANDBY ((uint32_t)0x00000004)
emilmont 77:869cf507173a 58 #define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFF8) == 0x00) && ((PERIPH) != 0x00))
emilmont 77:869cf507173a 59
emilmont 77:869cf507173a 60 #define DBGMCU_TIM2_STOP ((uint32_t)0x00000001)
emilmont 77:869cf507173a 61 #define DBGMCU_TIM3_STOP ((uint32_t)0x00000002)
emilmont 77:869cf507173a 62 #define DBGMCU_TIM4_STOP ((uint32_t)0x00000004)
emilmont 77:869cf507173a 63 #define DBGMCU_TIM5_STOP ((uint32_t)0x00000008)
emilmont 77:869cf507173a 64 #define DBGMCU_TIM6_STOP ((uint32_t)0x00000010)
emilmont 77:869cf507173a 65 #define DBGMCU_TIM7_STOP ((uint32_t)0x00000020)
emilmont 77:869cf507173a 66 #define DBGMCU_RTC_STOP ((uint32_t)0x00000400)
emilmont 77:869cf507173a 67 #define DBGMCU_WWDG_STOP ((uint32_t)0x00000800)
emilmont 77:869cf507173a 68 #define DBGMCU_IWDG_STOP ((uint32_t)0x00001000)
emilmont 77:869cf507173a 69 #define DBGMCU_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00200000)
emilmont 77:869cf507173a 70 #define DBGMCU_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00400000)
emilmont 77:869cf507173a 71 #define IS_DBGMCU_APB1PERIPH(PERIPH) ((((PERIPH) & 0xFF9FE3C0) == 0x00) && ((PERIPH) != 0x00))
emilmont 77:869cf507173a 72
emilmont 77:869cf507173a 73 #define DBGMCU_TIM9_STOP ((uint32_t)0x00000004)
emilmont 77:869cf507173a 74 #define DBGMCU_TIM10_STOP ((uint32_t)0x00000008)
emilmont 77:869cf507173a 75 #define DBGMCU_TIM11_STOP ((uint32_t)0x00000010)
emilmont 77:869cf507173a 76 #define IS_DBGMCU_APB2PERIPH(PERIPH) ((((PERIPH) & 0xFFFFFFE3) == 0x00) && ((PERIPH) != 0x00))
emilmont 77:869cf507173a 77
emilmont 77:869cf507173a 78 /**
emilmont 77:869cf507173a 79 * @}
emilmont 77:869cf507173a 80 */
emilmont 77:869cf507173a 81
emilmont 77:869cf507173a 82 /* Exported macro ------------------------------------------------------------*/
emilmont 77:869cf507173a 83 /* Exported functions ------------------------------------------------------- */
emilmont 77:869cf507173a 84
emilmont 77:869cf507173a 85 uint32_t DBGMCU_GetREVID(void);
emilmont 77:869cf507173a 86 uint32_t DBGMCU_GetDEVID(void);
emilmont 77:869cf507173a 87 void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState);
emilmont 77:869cf507173a 88 void DBGMCU_APB1PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState);
emilmont 77:869cf507173a 89 void DBGMCU_APB2PeriphConfig(uint32_t DBGMCU_Periph, FunctionalState NewState);
emilmont 77:869cf507173a 90
emilmont 77:869cf507173a 91 #ifdef __cplusplus
emilmont 77:869cf507173a 92 }
emilmont 77:869cf507173a 93 #endif
emilmont 77:869cf507173a 94
emilmont 77:869cf507173a 95 #endif /* __STM32L1xx_DBGMCU_H */
emilmont 77:869cf507173a 96
emilmont 77:869cf507173a 97 /**
emilmont 77:869cf507173a 98 * @}
emilmont 77:869cf507173a 99 */
emilmont 77:869cf507173a 100
emilmont 77:869cf507173a 101 /**
emilmont 77:869cf507173a 102 * @}
emilmont 77:869cf507173a 103 */
emilmont 77:869cf507173a 104
emilmont 77:869cf507173a 105 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/