mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

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

Committer:
mbed_official
Date:
Thu Jul 02 16:30:08 2015 +0100
Revision:
581:39197bcd20f2
Parent:
489:119543c9f674
Synchronized with git revision ae2d3cdffe70184eb8736d94f76c45c93f4b7724

Full URL: https://github.com/mbedmicro/mbed/commit/ae2d3cdffe70184eb8736d94f76c45c93f4b7724/

Make it possible to build the core mbed library with yotta

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 489:119543c9f674 1 /**
mbed_official 489:119543c9f674 2 ******************************************************************************
mbed_official 489:119543c9f674 3 * @file stm32f1xx_hal_tim_ex.h
mbed_official 489:119543c9f674 4 * @author MCD Application Team
mbed_official 489:119543c9f674 5 * @version V1.0.0
mbed_official 489:119543c9f674 6 * @date 15-December-2014
mbed_official 489:119543c9f674 7 * @brief Header file of TIM HAL Extension module.
mbed_official 489:119543c9f674 8 ******************************************************************************
mbed_official 489:119543c9f674 9 * @attention
mbed_official 489:119543c9f674 10 *
mbed_official 489:119543c9f674 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
mbed_official 489:119543c9f674 12 *
mbed_official 489:119543c9f674 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 489:119543c9f674 14 * are permitted provided that the following conditions are met:
mbed_official 489:119543c9f674 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 489:119543c9f674 16 * this list of conditions and the following disclaimer.
mbed_official 489:119543c9f674 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 489:119543c9f674 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 489:119543c9f674 19 * and/or other materials provided with the distribution.
mbed_official 489:119543c9f674 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 489:119543c9f674 21 * may be used to endorse or promote products derived from this software
mbed_official 489:119543c9f674 22 * without specific prior written permission.
mbed_official 489:119543c9f674 23 *
mbed_official 489:119543c9f674 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 489:119543c9f674 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 489:119543c9f674 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 489:119543c9f674 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 489:119543c9f674 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 489:119543c9f674 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 489:119543c9f674 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 489:119543c9f674 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 489:119543c9f674 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 489:119543c9f674 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 489:119543c9f674 34 *
mbed_official 489:119543c9f674 35 ******************************************************************************
mbed_official 489:119543c9f674 36 */
mbed_official 489:119543c9f674 37
mbed_official 489:119543c9f674 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 489:119543c9f674 39 #ifndef __STM32F1xx_HAL_TIM_EX_H
mbed_official 489:119543c9f674 40 #define __STM32F1xx_HAL_TIM_EX_H
mbed_official 489:119543c9f674 41
mbed_official 489:119543c9f674 42 #ifdef __cplusplus
mbed_official 489:119543c9f674 43 extern "C" {
mbed_official 489:119543c9f674 44 #endif
mbed_official 489:119543c9f674 45
mbed_official 489:119543c9f674 46 /* Includes ------------------------------------------------------------------*/
mbed_official 489:119543c9f674 47 #include "stm32f1xx_hal_def.h"
mbed_official 489:119543c9f674 48
mbed_official 489:119543c9f674 49 /** @addtogroup STM32F1xx_HAL_Driver
mbed_official 489:119543c9f674 50 * @{
mbed_official 489:119543c9f674 51 */
mbed_official 489:119543c9f674 52
mbed_official 489:119543c9f674 53 /** @addtogroup TIMEx
mbed_official 489:119543c9f674 54 * @{
mbed_official 489:119543c9f674 55 */
mbed_official 489:119543c9f674 56
mbed_official 489:119543c9f674 57 /* Exported types ------------------------------------------------------------*/
mbed_official 489:119543c9f674 58 /** @defgroup TIMEx_Exported_Types TIMEx Exported Types
mbed_official 489:119543c9f674 59 * @{
mbed_official 489:119543c9f674 60 */
mbed_official 489:119543c9f674 61
mbed_official 489:119543c9f674 62 #if defined (STM32F100xB) || defined (STM32F100xE) || \
mbed_official 489:119543c9f674 63 defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \
mbed_official 489:119543c9f674 64 defined (STM32F105xC) || defined (STM32F107xC)
mbed_official 489:119543c9f674 65
mbed_official 489:119543c9f674 66 /**
mbed_official 489:119543c9f674 67 * @brief TIM Hall sensor Configuration Structure definition
mbed_official 489:119543c9f674 68 */
mbed_official 489:119543c9f674 69
mbed_official 489:119543c9f674 70 typedef struct
mbed_official 489:119543c9f674 71 {
mbed_official 489:119543c9f674 72
mbed_official 489:119543c9f674 73 uint32_t IC1Polarity; /*!< Specifies the active edge of the input signal.
mbed_official 489:119543c9f674 74 This parameter can be a value of @ref TIM_Input_Capture_Polarity */
mbed_official 489:119543c9f674 75
mbed_official 489:119543c9f674 76 uint32_t IC1Prescaler; /*!< Specifies the Input Capture Prescaler.
mbed_official 489:119543c9f674 77 This parameter can be a value of @ref TIM_Input_Capture_Prescaler */
mbed_official 489:119543c9f674 78
mbed_official 489:119543c9f674 79 uint32_t IC1Filter; /*!< Specifies the input capture filter.
mbed_official 489:119543c9f674 80 This parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF */
mbed_official 489:119543c9f674 81 uint32_t Commutation_Delay; /*!< Specifies the pulse value to be loaded into the Capture Compare Register.
mbed_official 489:119543c9f674 82 This parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF */
mbed_official 489:119543c9f674 83 } TIM_HallSensor_InitTypeDef;
mbed_official 489:119543c9f674 84
mbed_official 489:119543c9f674 85 /**
mbed_official 489:119543c9f674 86 * @brief TIM Break and Dead time configuration Structure definition
mbed_official 489:119543c9f674 87 */
mbed_official 489:119543c9f674 88 typedef struct
mbed_official 489:119543c9f674 89 {
mbed_official 489:119543c9f674 90 uint32_t OffStateRunMode; /*!< TIM off state in run mode
mbed_official 489:119543c9f674 91 This parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state */
mbed_official 489:119543c9f674 92 uint32_t OffStateIDLEMode; /*!< TIM off state in IDLE mode
mbed_official 489:119543c9f674 93 This parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state */
mbed_official 489:119543c9f674 94 uint32_t LockLevel; /*!< TIM Lock level
mbed_official 489:119543c9f674 95 This parameter can be a value of @ref TIM_Lock_level */
mbed_official 489:119543c9f674 96 uint32_t DeadTime; /*!< TIM dead Time
mbed_official 489:119543c9f674 97 This parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF */
mbed_official 489:119543c9f674 98 uint32_t BreakState; /*!< TIM Break State
mbed_official 489:119543c9f674 99 This parameter can be a value of @ref TIM_Break_Input_enable_disable */
mbed_official 489:119543c9f674 100 uint32_t BreakPolarity; /*!< TIM Break input polarity
mbed_official 489:119543c9f674 101 This parameter can be a value of @ref TIM_Break_Polarity */
mbed_official 489:119543c9f674 102 uint32_t AutomaticOutput; /*!< TIM Automatic Output Enable state
mbed_official 489:119543c9f674 103 This parameter can be a value of @ref TIM_AOE_Bit_Set_Reset */
mbed_official 489:119543c9f674 104 } TIM_BreakDeadTimeConfigTypeDef;
mbed_official 489:119543c9f674 105
mbed_official 489:119543c9f674 106 #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */
mbed_official 489:119543c9f674 107 /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */
mbed_official 489:119543c9f674 108 /* defined(STM32F105xC) || defined(STM32F107xC) */
mbed_official 489:119543c9f674 109
mbed_official 489:119543c9f674 110 /**
mbed_official 489:119543c9f674 111 * @brief TIM Master configuration Structure definition
mbed_official 489:119543c9f674 112 */
mbed_official 489:119543c9f674 113 typedef struct {
mbed_official 489:119543c9f674 114 uint32_t MasterOutputTrigger; /*!< Trigger output (TRGO) selection
mbed_official 489:119543c9f674 115 This parameter can be a value of @ref TIM_Master_Mode_Selection */
mbed_official 489:119543c9f674 116 uint32_t MasterSlaveMode; /*!< Master/slave mode selection
mbed_official 489:119543c9f674 117 This parameter can be a value of @ref TIM_Master_Slave_Mode */
mbed_official 489:119543c9f674 118 }TIM_MasterConfigTypeDef;
mbed_official 489:119543c9f674 119
mbed_official 489:119543c9f674 120 /**
mbed_official 489:119543c9f674 121 * @}
mbed_official 489:119543c9f674 122 */
mbed_official 489:119543c9f674 123
mbed_official 489:119543c9f674 124 /* Exported constants --------------------------------------------------------*/
mbed_official 489:119543c9f674 125 #if defined (STM32F100xB) || defined (STM32F100xE) || \
mbed_official 489:119543c9f674 126 defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \
mbed_official 489:119543c9f674 127 defined (STM32F105xC) || defined (STM32F107xC)
mbed_official 489:119543c9f674 128 /** @defgroup TIMEx_Exported_Constants TIMEx Exported Constants
mbed_official 489:119543c9f674 129 * @{
mbed_official 489:119543c9f674 130 */
mbed_official 489:119543c9f674 131
mbed_official 489:119543c9f674 132 /** @defgroup TIMEx_Clock_Filter TIMEx Clock Filter
mbed_official 489:119543c9f674 133 * @{
mbed_official 489:119543c9f674 134 */
mbed_official 489:119543c9f674 135 #define IS_TIM_DEADTIME(DEADTIME) ((DEADTIME) <= 0xFF) /*!< BreakDead Time */
mbed_official 489:119543c9f674 136 /**
mbed_official 489:119543c9f674 137 * @}
mbed_official 489:119543c9f674 138 */
mbed_official 489:119543c9f674 139
mbed_official 489:119543c9f674 140 /**
mbed_official 489:119543c9f674 141 * @}
mbed_official 489:119543c9f674 142 */
mbed_official 489:119543c9f674 143 #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */
mbed_official 489:119543c9f674 144 /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */
mbed_official 489:119543c9f674 145 /* defined(STM32F105xC) || defined(STM32F107xC) */
mbed_official 489:119543c9f674 146
mbed_official 489:119543c9f674 147 /* Exported macro ------------------------------------------------------------*/
mbed_official 489:119543c9f674 148
mbed_official 489:119543c9f674 149 /* Exported functions --------------------------------------------------------*/
mbed_official 489:119543c9f674 150 /** @addtogroup TIMEx_Exported_Functions
mbed_official 489:119543c9f674 151 * @{
mbed_official 489:119543c9f674 152 */
mbed_official 489:119543c9f674 153
mbed_official 489:119543c9f674 154 #if defined (STM32F100xB) || defined (STM32F100xE) || \
mbed_official 489:119543c9f674 155 defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \
mbed_official 489:119543c9f674 156 defined (STM32F105xC) || defined (STM32F107xC)
mbed_official 489:119543c9f674 157
mbed_official 489:119543c9f674 158 /** @addtogroup TIMEx_Exported_Functions_Group1
mbed_official 489:119543c9f674 159 * @{
mbed_official 489:119543c9f674 160 */
mbed_official 489:119543c9f674 161 /* Timer Hall Sensor functions **********************************************/
mbed_official 489:119543c9f674 162 HAL_StatusTypeDef HAL_TIMEx_HallSensor_Init(TIM_HandleTypeDef *htim, TIM_HallSensor_InitTypeDef* sConfig);
mbed_official 489:119543c9f674 163 HAL_StatusTypeDef HAL_TIMEx_HallSensor_DeInit(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 164
mbed_official 489:119543c9f674 165 void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 166 void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 167
mbed_official 489:119543c9f674 168 /* Blocking mode: Polling */
mbed_official 489:119543c9f674 169 HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 170 HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 171 /* Non-Blocking mode: Interrupt */
mbed_official 489:119543c9f674 172 HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_IT(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 173 HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_IT(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 174 /* Non-Blocking mode: DMA */
mbed_official 489:119543c9f674 175 HAL_StatusTypeDef HAL_TIMEx_HallSensor_Start_DMA(TIM_HandleTypeDef *htim, uint32_t *pData, uint16_t Length);
mbed_official 489:119543c9f674 176 HAL_StatusTypeDef HAL_TIMEx_HallSensor_Stop_DMA(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 177 /**
mbed_official 489:119543c9f674 178 * @}
mbed_official 489:119543c9f674 179 */
mbed_official 489:119543c9f674 180
mbed_official 489:119543c9f674 181 /** @addtogroup TIMEx_Exported_Functions_Group2
mbed_official 489:119543c9f674 182 * @{
mbed_official 489:119543c9f674 183 */
mbed_official 489:119543c9f674 184 /* Timer Complementary Output Compare functions *****************************/
mbed_official 489:119543c9f674 185 /* Blocking mode: Polling */
mbed_official 489:119543c9f674 186 HAL_StatusTypeDef HAL_TIMEx_OCN_Start(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 187 HAL_StatusTypeDef HAL_TIMEx_OCN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 188
mbed_official 489:119543c9f674 189 /* Non-Blocking mode: Interrupt */
mbed_official 489:119543c9f674 190 HAL_StatusTypeDef HAL_TIMEx_OCN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 191 HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 192
mbed_official 489:119543c9f674 193 /* Non-Blocking mode: DMA */
mbed_official 489:119543c9f674 194 HAL_StatusTypeDef HAL_TIMEx_OCN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length);
mbed_official 489:119543c9f674 195 HAL_StatusTypeDef HAL_TIMEx_OCN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 196 /**
mbed_official 489:119543c9f674 197 * @}
mbed_official 489:119543c9f674 198 */
mbed_official 489:119543c9f674 199
mbed_official 489:119543c9f674 200 /** @addtogroup TIMEx_Exported_Functions_Group3
mbed_official 489:119543c9f674 201 * @{
mbed_official 489:119543c9f674 202 */
mbed_official 489:119543c9f674 203 /* Timer Complementary PWM functions ****************************************/
mbed_official 489:119543c9f674 204 /* Blocking mode: Polling */
mbed_official 489:119543c9f674 205 HAL_StatusTypeDef HAL_TIMEx_PWMN_Start(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 206 HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 207
mbed_official 489:119543c9f674 208 /* Non-Blocking mode: Interrupt */
mbed_official 489:119543c9f674 209 HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_IT(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 210 HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 211 /* Non-Blocking mode: DMA */
mbed_official 489:119543c9f674 212 HAL_StatusTypeDef HAL_TIMEx_PWMN_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length);
mbed_official 489:119543c9f674 213 HAL_StatusTypeDef HAL_TIMEx_PWMN_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel);
mbed_official 489:119543c9f674 214 /**
mbed_official 489:119543c9f674 215 * @}
mbed_official 489:119543c9f674 216 */
mbed_official 489:119543c9f674 217
mbed_official 489:119543c9f674 218 /** @addtogroup TIMEx_Exported_Functions_Group4
mbed_official 489:119543c9f674 219 * @{
mbed_official 489:119543c9f674 220 */
mbed_official 489:119543c9f674 221 /* Timer Complementary One Pulse functions **********************************/
mbed_official 489:119543c9f674 222 /* Blocking mode: Polling */
mbed_official 489:119543c9f674 223 HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel);
mbed_official 489:119543c9f674 224 HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel);
mbed_official 489:119543c9f674 225
mbed_official 489:119543c9f674 226 /* Non-Blocking mode: Interrupt */
mbed_official 489:119543c9f674 227 HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel);
mbed_official 489:119543c9f674 228 HAL_StatusTypeDef HAL_TIMEx_OnePulseN_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel);
mbed_official 489:119543c9f674 229 /**
mbed_official 489:119543c9f674 230 * @}
mbed_official 489:119543c9f674 231 */
mbed_official 489:119543c9f674 232 #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */
mbed_official 489:119543c9f674 233 /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */
mbed_official 489:119543c9f674 234 /* defined(STM32F105xC) || defined(STM32F107xC) */
mbed_official 489:119543c9f674 235
mbed_official 489:119543c9f674 236 /** @addtogroup TIMEx_Exported_Functions_Group5
mbed_official 489:119543c9f674 237 * @{
mbed_official 489:119543c9f674 238 */
mbed_official 489:119543c9f674 239 /* Extended Control functions ************************************************/
mbed_official 489:119543c9f674 240 #if defined (STM32F100xB) || defined (STM32F100xE) || \
mbed_official 489:119543c9f674 241 defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \
mbed_official 489:119543c9f674 242 defined (STM32F105xC) || defined (STM32F107xC)
mbed_official 489:119543c9f674 243 HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource);
mbed_official 489:119543c9f674 244 HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_IT(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource);
mbed_official 489:119543c9f674 245 HAL_StatusTypeDef HAL_TIMEx_ConfigCommutationEvent_DMA(TIM_HandleTypeDef *htim, uint32_t InputTrigger, uint32_t CommutationSource);
mbed_official 489:119543c9f674 246 HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig);
mbed_official 489:119543c9f674 247 #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */
mbed_official 489:119543c9f674 248 /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */
mbed_official 489:119543c9f674 249 /* defined(STM32F105xC) || defined(STM32F107xC) */
mbed_official 489:119543c9f674 250 HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef * sMasterConfig);
mbed_official 489:119543c9f674 251 /**
mbed_official 489:119543c9f674 252 * @}
mbed_official 489:119543c9f674 253 */
mbed_official 489:119543c9f674 254
mbed_official 489:119543c9f674 255 /** @addtogroup TIMEx_Exported_Functions_Group6
mbed_official 489:119543c9f674 256 * @{
mbed_official 489:119543c9f674 257 */
mbed_official 489:119543c9f674 258 /* Extension Callback *********************************************************/
mbed_official 489:119543c9f674 259 void HAL_TIMEx_CommutationCallback(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 260 void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 261 /**
mbed_official 489:119543c9f674 262 * @}
mbed_official 489:119543c9f674 263 */
mbed_official 489:119543c9f674 264
mbed_official 489:119543c9f674 265 #if defined (STM32F100xB) || defined (STM32F100xE) || \
mbed_official 489:119543c9f674 266 defined (STM32F103x6) || defined (STM32F103xB) || defined (STM32F103xE) || defined (STM32F103xG) || \
mbed_official 489:119543c9f674 267 defined (STM32F105xC) || defined (STM32F107xC)
mbed_official 489:119543c9f674 268 /** @addtogroup TIMEx_Exported_Functions_Group7
mbed_official 489:119543c9f674 269 * @{
mbed_official 489:119543c9f674 270 */
mbed_official 489:119543c9f674 271 /* Extension Peripheral State functions **************************************/
mbed_official 489:119543c9f674 272 HAL_TIM_StateTypeDef HAL_TIMEx_HallSensor_GetState(TIM_HandleTypeDef *htim);
mbed_official 489:119543c9f674 273 /**
mbed_official 489:119543c9f674 274 * @}
mbed_official 489:119543c9f674 275 */
mbed_official 489:119543c9f674 276 #endif /* defined(STM32F100xB) || defined(STM32F100xE) || */
mbed_official 489:119543c9f674 277 /* defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || */
mbed_official 489:119543c9f674 278 /* defined(STM32F105xC) || defined(STM32F107xC) */
mbed_official 489:119543c9f674 279
mbed_official 489:119543c9f674 280 /**
mbed_official 489:119543c9f674 281 * @}
mbed_official 489:119543c9f674 282 */
mbed_official 489:119543c9f674 283 /* End of exported functions -------------------------------------------------*/
mbed_official 489:119543c9f674 284
mbed_official 489:119543c9f674 285 /* Private functions----------------------------------------------------------*/
mbed_official 489:119543c9f674 286 /** @defgroup TIMEx_Private_Functions TIMEx Private Functions
mbed_official 489:119543c9f674 287 * @{
mbed_official 489:119543c9f674 288 */
mbed_official 489:119543c9f674 289 void TIMEx_DMACommutationCplt(DMA_HandleTypeDef *hdma);
mbed_official 489:119543c9f674 290 /**
mbed_official 489:119543c9f674 291 * @}
mbed_official 489:119543c9f674 292 */
mbed_official 489:119543c9f674 293 /* End of private functions --------------------------------------------------*/
mbed_official 489:119543c9f674 294
mbed_official 489:119543c9f674 295 /**
mbed_official 489:119543c9f674 296 * @}
mbed_official 489:119543c9f674 297 */
mbed_official 489:119543c9f674 298
mbed_official 489:119543c9f674 299 /**
mbed_official 489:119543c9f674 300 * @}
mbed_official 489:119543c9f674 301 */
mbed_official 489:119543c9f674 302
mbed_official 489:119543c9f674 303 #ifdef __cplusplus
mbed_official 489:119543c9f674 304 }
mbed_official 489:119543c9f674 305 #endif
mbed_official 489:119543c9f674 306
mbed_official 489:119543c9f674 307
mbed_official 489:119543c9f674 308 #endif /* __STM32F1xx_HAL_TIM_EX_H */
mbed_official 489:119543c9f674 309
mbed_official 489:119543c9f674 310 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/