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