/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }

Fork of mbed by mbed official

Committer:
emilmont
Date:
Fri Feb 14 14:36:43 2014 +0000
Revision:
77:869cf507173a
Parent:
76:824293ae5e43
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
bogdanm 73:1efda918f0ba 1 /**
bogdanm 73:1efda918f0ba 2 ******************************************************************************
bogdanm 73:1efda918f0ba 3 * @file stm32f10x_exti.h
bogdanm 73:1efda918f0ba 4 * @author MCD Application Team
emilmont 77:869cf507173a 5 * @version V3.6.1
emilmont 77:869cf507173a 6 * @date 05-March-2012
bogdanm 73:1efda918f0ba 7 * @brief This file contains all the functions prototypes for the EXTI firmware
bogdanm 73:1efda918f0ba 8 * library.
bogdanm 76:824293ae5e43 9 *******************************************************************************
bogdanm 76:824293ae5e43 10 * Copyright (c) 2014, STMicroelectronics
bogdanm 76:824293ae5e43 11 * All rights reserved.
bogdanm 76:824293ae5e43 12 *
bogdanm 76:824293ae5e43 13 * Redistribution and use in source and binary forms, with or without
bogdanm 76:824293ae5e43 14 * modification, are permitted provided that the following conditions are met:
bogdanm 76:824293ae5e43 15 *
bogdanm 76:824293ae5e43 16 * 1. Redistributions of source code must retain the above copyright notice,
bogdanm 76:824293ae5e43 17 * this list of conditions and the following disclaimer.
bogdanm 76:824293ae5e43 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
bogdanm 76:824293ae5e43 19 * this list of conditions and the following disclaimer in the documentation
bogdanm 76:824293ae5e43 20 * and/or other materials provided with the distribution.
bogdanm 76:824293ae5e43 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bogdanm 76:824293ae5e43 22 * may be used to endorse or promote products derived from this software
bogdanm 76:824293ae5e43 23 * without specific prior written permission.
bogdanm 76:824293ae5e43 24 *
bogdanm 76:824293ae5e43 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 76:824293ae5e43 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 76:824293ae5e43 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bogdanm 76:824293ae5e43 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bogdanm 76:824293ae5e43 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bogdanm 76:824293ae5e43 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bogdanm 76:824293ae5e43 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bogdanm 76:824293ae5e43 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bogdanm 76:824293ae5e43 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bogdanm 76:824293ae5e43 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bogdanm 76:824293ae5e43 35 *******************************************************************************
bogdanm 76:824293ae5e43 36 */
bogdanm 73:1efda918f0ba 37
bogdanm 73:1efda918f0ba 38 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 73:1efda918f0ba 39 #ifndef __STM32F10x_EXTI_H
bogdanm 73:1efda918f0ba 40 #define __STM32F10x_EXTI_H
bogdanm 73:1efda918f0ba 41
bogdanm 73:1efda918f0ba 42 #ifdef __cplusplus
bogdanm 73:1efda918f0ba 43 extern "C" {
bogdanm 73:1efda918f0ba 44 #endif
bogdanm 73:1efda918f0ba 45
bogdanm 73:1efda918f0ba 46 /* Includes ------------------------------------------------------------------*/
bogdanm 73:1efda918f0ba 47 #include "stm32f10x.h"
bogdanm 73:1efda918f0ba 48
bogdanm 73:1efda918f0ba 49 /** @addtogroup STM32F10x_StdPeriph_Driver
bogdanm 73:1efda918f0ba 50 * @{
bogdanm 73:1efda918f0ba 51 */
bogdanm 73:1efda918f0ba 52
bogdanm 73:1efda918f0ba 53 /** @addtogroup EXTI
bogdanm 73:1efda918f0ba 54 * @{
bogdanm 73:1efda918f0ba 55 */
bogdanm 73:1efda918f0ba 56
bogdanm 73:1efda918f0ba 57 /** @defgroup EXTI_Exported_Types
bogdanm 73:1efda918f0ba 58 * @{
bogdanm 73:1efda918f0ba 59 */
bogdanm 73:1efda918f0ba 60
bogdanm 73:1efda918f0ba 61 /**
bogdanm 73:1efda918f0ba 62 * @brief EXTI mode enumeration
bogdanm 73:1efda918f0ba 63 */
bogdanm 73:1efda918f0ba 64
bogdanm 73:1efda918f0ba 65 typedef enum
bogdanm 73:1efda918f0ba 66 {
bogdanm 73:1efda918f0ba 67 EXTI_Mode_Interrupt = 0x00,
bogdanm 73:1efda918f0ba 68 EXTI_Mode_Event = 0x04
bogdanm 73:1efda918f0ba 69 }EXTIMode_TypeDef;
bogdanm 73:1efda918f0ba 70
bogdanm 73:1efda918f0ba 71 #define IS_EXTI_MODE(MODE) (((MODE) == EXTI_Mode_Interrupt) || ((MODE) == EXTI_Mode_Event))
bogdanm 73:1efda918f0ba 72
bogdanm 73:1efda918f0ba 73 /**
bogdanm 73:1efda918f0ba 74 * @brief EXTI Trigger enumeration
bogdanm 73:1efda918f0ba 75 */
bogdanm 73:1efda918f0ba 76
bogdanm 73:1efda918f0ba 77 typedef enum
bogdanm 73:1efda918f0ba 78 {
bogdanm 73:1efda918f0ba 79 EXTI_Trigger_Rising = 0x08,
bogdanm 73:1efda918f0ba 80 EXTI_Trigger_Falling = 0x0C,
bogdanm 73:1efda918f0ba 81 EXTI_Trigger_Rising_Falling = 0x10
bogdanm 73:1efda918f0ba 82 }EXTITrigger_TypeDef;
bogdanm 73:1efda918f0ba 83
bogdanm 73:1efda918f0ba 84 #define IS_EXTI_TRIGGER(TRIGGER) (((TRIGGER) == EXTI_Trigger_Rising) || \
bogdanm 73:1efda918f0ba 85 ((TRIGGER) == EXTI_Trigger_Falling) || \
bogdanm 73:1efda918f0ba 86 ((TRIGGER) == EXTI_Trigger_Rising_Falling))
bogdanm 73:1efda918f0ba 87 /**
bogdanm 73:1efda918f0ba 88 * @brief EXTI Init Structure definition
bogdanm 73:1efda918f0ba 89 */
bogdanm 73:1efda918f0ba 90
bogdanm 73:1efda918f0ba 91 typedef struct
bogdanm 73:1efda918f0ba 92 {
bogdanm 73:1efda918f0ba 93 uint32_t EXTI_Line; /*!< Specifies the EXTI lines to be enabled or disabled.
bogdanm 73:1efda918f0ba 94 This parameter can be any combination of @ref EXTI_Lines */
bogdanm 73:1efda918f0ba 95
bogdanm 73:1efda918f0ba 96 EXTIMode_TypeDef EXTI_Mode; /*!< Specifies the mode for the EXTI lines.
bogdanm 73:1efda918f0ba 97 This parameter can be a value of @ref EXTIMode_TypeDef */
bogdanm 73:1efda918f0ba 98
bogdanm 73:1efda918f0ba 99 EXTITrigger_TypeDef EXTI_Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines.
emilmont 77:869cf507173a 100 This parameter can be a value of @ref EXTITrigger_TypeDef */
bogdanm 73:1efda918f0ba 101
bogdanm 73:1efda918f0ba 102 FunctionalState EXTI_LineCmd; /*!< Specifies the new state of the selected EXTI lines.
bogdanm 73:1efda918f0ba 103 This parameter can be set either to ENABLE or DISABLE */
bogdanm 73:1efda918f0ba 104 }EXTI_InitTypeDef;
bogdanm 73:1efda918f0ba 105
bogdanm 73:1efda918f0ba 106 /**
bogdanm 73:1efda918f0ba 107 * @}
bogdanm 73:1efda918f0ba 108 */
bogdanm 73:1efda918f0ba 109
bogdanm 73:1efda918f0ba 110 /** @defgroup EXTI_Exported_Constants
bogdanm 73:1efda918f0ba 111 * @{
bogdanm 73:1efda918f0ba 112 */
bogdanm 73:1efda918f0ba 113
bogdanm 73:1efda918f0ba 114 /** @defgroup EXTI_Lines
bogdanm 73:1efda918f0ba 115 * @{
bogdanm 73:1efda918f0ba 116 */
bogdanm 73:1efda918f0ba 117
bogdanm 73:1efda918f0ba 118 #define EXTI_Line0 ((uint32_t)0x00001) /*!< External interrupt line 0 */
bogdanm 73:1efda918f0ba 119 #define EXTI_Line1 ((uint32_t)0x00002) /*!< External interrupt line 1 */
bogdanm 73:1efda918f0ba 120 #define EXTI_Line2 ((uint32_t)0x00004) /*!< External interrupt line 2 */
bogdanm 73:1efda918f0ba 121 #define EXTI_Line3 ((uint32_t)0x00008) /*!< External interrupt line 3 */
bogdanm 73:1efda918f0ba 122 #define EXTI_Line4 ((uint32_t)0x00010) /*!< External interrupt line 4 */
bogdanm 73:1efda918f0ba 123 #define EXTI_Line5 ((uint32_t)0x00020) /*!< External interrupt line 5 */
bogdanm 73:1efda918f0ba 124 #define EXTI_Line6 ((uint32_t)0x00040) /*!< External interrupt line 6 */
bogdanm 73:1efda918f0ba 125 #define EXTI_Line7 ((uint32_t)0x00080) /*!< External interrupt line 7 */
bogdanm 73:1efda918f0ba 126 #define EXTI_Line8 ((uint32_t)0x00100) /*!< External interrupt line 8 */
bogdanm 73:1efda918f0ba 127 #define EXTI_Line9 ((uint32_t)0x00200) /*!< External interrupt line 9 */
bogdanm 73:1efda918f0ba 128 #define EXTI_Line10 ((uint32_t)0x00400) /*!< External interrupt line 10 */
bogdanm 73:1efda918f0ba 129 #define EXTI_Line11 ((uint32_t)0x00800) /*!< External interrupt line 11 */
bogdanm 73:1efda918f0ba 130 #define EXTI_Line12 ((uint32_t)0x01000) /*!< External interrupt line 12 */
bogdanm 73:1efda918f0ba 131 #define EXTI_Line13 ((uint32_t)0x02000) /*!< External interrupt line 13 */
bogdanm 73:1efda918f0ba 132 #define EXTI_Line14 ((uint32_t)0x04000) /*!< External interrupt line 14 */
bogdanm 73:1efda918f0ba 133 #define EXTI_Line15 ((uint32_t)0x08000) /*!< External interrupt line 15 */
bogdanm 73:1efda918f0ba 134 #define EXTI_Line16 ((uint32_t)0x10000) /*!< External interrupt line 16 Connected to the PVD Output */
bogdanm 73:1efda918f0ba 135 #define EXTI_Line17 ((uint32_t)0x20000) /*!< External interrupt line 17 Connected to the RTC Alarm event */
bogdanm 73:1efda918f0ba 136 #define EXTI_Line18 ((uint32_t)0x40000) /*!< External interrupt line 18 Connected to the USB Device/USB OTG FS
bogdanm 73:1efda918f0ba 137 Wakeup from suspend event */
bogdanm 73:1efda918f0ba 138 #define EXTI_Line19 ((uint32_t)0x80000) /*!< External interrupt line 19 Connected to the Ethernet Wakeup event */
bogdanm 73:1efda918f0ba 139
bogdanm 73:1efda918f0ba 140 #define IS_EXTI_LINE(LINE) ((((LINE) & (uint32_t)0xFFF00000) == 0x00) && ((LINE) != (uint16_t)0x00))
bogdanm 73:1efda918f0ba 141 #define IS_GET_EXTI_LINE(LINE) (((LINE) == EXTI_Line0) || ((LINE) == EXTI_Line1) || \
bogdanm 73:1efda918f0ba 142 ((LINE) == EXTI_Line2) || ((LINE) == EXTI_Line3) || \
bogdanm 73:1efda918f0ba 143 ((LINE) == EXTI_Line4) || ((LINE) == EXTI_Line5) || \
bogdanm 73:1efda918f0ba 144 ((LINE) == EXTI_Line6) || ((LINE) == EXTI_Line7) || \
bogdanm 73:1efda918f0ba 145 ((LINE) == EXTI_Line8) || ((LINE) == EXTI_Line9) || \
bogdanm 73:1efda918f0ba 146 ((LINE) == EXTI_Line10) || ((LINE) == EXTI_Line11) || \
bogdanm 73:1efda918f0ba 147 ((LINE) == EXTI_Line12) || ((LINE) == EXTI_Line13) || \
bogdanm 73:1efda918f0ba 148 ((LINE) == EXTI_Line14) || ((LINE) == EXTI_Line15) || \
bogdanm 73:1efda918f0ba 149 ((LINE) == EXTI_Line16) || ((LINE) == EXTI_Line17) || \
bogdanm 73:1efda918f0ba 150 ((LINE) == EXTI_Line18) || ((LINE) == EXTI_Line19))
bogdanm 73:1efda918f0ba 151
bogdanm 73:1efda918f0ba 152
bogdanm 73:1efda918f0ba 153 /**
bogdanm 73:1efda918f0ba 154 * @}
bogdanm 73:1efda918f0ba 155 */
bogdanm 73:1efda918f0ba 156
bogdanm 73:1efda918f0ba 157 /**
bogdanm 73:1efda918f0ba 158 * @}
bogdanm 73:1efda918f0ba 159 */
bogdanm 73:1efda918f0ba 160
bogdanm 73:1efda918f0ba 161 /** @defgroup EXTI_Exported_Macros
bogdanm 73:1efda918f0ba 162 * @{
bogdanm 73:1efda918f0ba 163 */
bogdanm 73:1efda918f0ba 164
bogdanm 73:1efda918f0ba 165 /**
bogdanm 73:1efda918f0ba 166 * @}
bogdanm 73:1efda918f0ba 167 */
bogdanm 73:1efda918f0ba 168
bogdanm 73:1efda918f0ba 169 /** @defgroup EXTI_Exported_Functions
bogdanm 73:1efda918f0ba 170 * @{
bogdanm 73:1efda918f0ba 171 */
bogdanm 73:1efda918f0ba 172
bogdanm 73:1efda918f0ba 173 void EXTI_DeInit(void);
bogdanm 73:1efda918f0ba 174 void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct);
bogdanm 73:1efda918f0ba 175 void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct);
bogdanm 73:1efda918f0ba 176 void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line);
bogdanm 73:1efda918f0ba 177 FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line);
bogdanm 73:1efda918f0ba 178 void EXTI_ClearFlag(uint32_t EXTI_Line);
bogdanm 73:1efda918f0ba 179 ITStatus EXTI_GetITStatus(uint32_t EXTI_Line);
bogdanm 73:1efda918f0ba 180 void EXTI_ClearITPendingBit(uint32_t EXTI_Line);
bogdanm 73:1efda918f0ba 181
bogdanm 73:1efda918f0ba 182 #ifdef __cplusplus
bogdanm 73:1efda918f0ba 183 }
bogdanm 73:1efda918f0ba 184 #endif
bogdanm 73:1efda918f0ba 185
bogdanm 73:1efda918f0ba 186 #endif /* __STM32F10x_EXTI_H */
bogdanm 73:1efda918f0ba 187 /**
bogdanm 73:1efda918f0ba 188 * @}
bogdanm 73:1efda918f0ba 189 */
bogdanm 73:1efda918f0ba 190
bogdanm 73:1efda918f0ba 191 /**
bogdanm 73:1efda918f0ba 192 * @}
bogdanm 73:1efda918f0ba 193 */
bogdanm 73:1efda918f0ba 194
bogdanm 73:1efda918f0ba 195 /**
bogdanm 73:1efda918f0ba 196 * @}
bogdanm 73:1efda918f0ba 197 */
bogdanm 73:1efda918f0ba 198
emilmont 77:869cf507173a 199 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/