Rev 2 | Rev 11 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 9 | ||
|---|---|---|---|
| Line 211... | Line 211... | ||
| 211 | } |
211 | } |
| 212 | 212 | ||
| 213 | } |
213 | } |
| 214 | 214 | ||
| 215 | /** |
215 | /** |
| - | 216 | * @brief TIM_OC MSP Initialization |
|
| - | 217 | * This function configures the hardware resources used in this example |
|
| - | 218 | * @param htim_oc: TIM_OC handle pointer |
|
| - | 219 | * @retval None |
|
| - | 220 | */ |
|
| - | 221 | void HAL_TIM_OC_MspInit(TIM_HandleTypeDef* htim_oc) |
|
| - | 222 | { |
|
| - | 223 | if(htim_oc->Instance==TIM3) |
|
| - | 224 | { |
|
| - | 225 | /* USER CODE BEGIN TIM3_MspInit 0 */ |
|
| - | 226 | ||
| - | 227 | /* USER CODE END TIM3_MspInit 0 */ |
|
| - | 228 | /* Peripheral clock enable */ |
|
| - | 229 | __HAL_RCC_TIM3_CLK_ENABLE(); |
|
| - | 230 | /* USER CODE BEGIN TIM3_MspInit 1 */ |
|
| - | 231 | ||
| - | 232 | /* USER CODE END TIM3_MspInit 1 */ |
|
| - | 233 | } |
|
| - | 234 | ||
| - | 235 | } |
|
| - | 236 | ||
| - | 237 | /** |
|
| 216 | * @brief TIM_Encoder MSP Initialization |
238 | * @brief TIM_Encoder MSP Initialization |
| 217 | * This function configures the hardware resources used in this example |
239 | * This function configures the hardware resources used in this example |
| 218 | * @param htim_encoder: TIM_Encoder handle pointer |
240 | * @param htim_encoder: TIM_Encoder handle pointer |
| 219 | * @retval None |
241 | * @retval None |
| 220 | */ |
242 | */ |
| Line 245... | Line 267... | ||
| 245 | } |
267 | } |
| 246 | 268 | ||
| 247 | } |
269 | } |
| 248 | 270 | ||
| 249 | /** |
271 | /** |
| - | 272 | * @brief TIM_OC MSP De-Initialization |
|
| - | 273 | * This function freeze the hardware resources used in this example |
|
| - | 274 | * @param htim_oc: TIM_OC handle pointer |
|
| - | 275 | * @retval None |
|
| - | 276 | */ |
|
| - | 277 | void HAL_TIM_OC_MspDeInit(TIM_HandleTypeDef* htim_oc) |
|
| - | 278 | { |
|
| - | 279 | if(htim_oc->Instance==TIM3) |
|
| - | 280 | { |
|
| - | 281 | /* USER CODE BEGIN TIM3_MspDeInit 0 */ |
|
| - | 282 | ||
| - | 283 | /* USER CODE END TIM3_MspDeInit 0 */ |
|
| - | 284 | /* Peripheral clock disable */ |
|
| - | 285 | __HAL_RCC_TIM3_CLK_DISABLE(); |
|
| - | 286 | /* USER CODE BEGIN TIM3_MspDeInit 1 */ |
|
| - | 287 | ||
| - | 288 | /* USER CODE END TIM3_MspDeInit 1 */ |
|
| - | 289 | } |
|
| - | 290 | ||
| - | 291 | } |
|
| - | 292 | ||
| - | 293 | /** |
|
| 250 | * @brief TIM_Encoder MSP De-Initialization |
294 | * @brief TIM_Encoder MSP De-Initialization |
| 251 | * This function freeze the hardware resources used in this example |
295 | * This function freeze the hardware resources used in this example |
| 252 | * @param htim_encoder: TIM_Encoder handle pointer |
296 | * @param htim_encoder: TIM_Encoder handle pointer |
| 253 | * @retval None |
297 | * @retval None |
| 254 | */ |
298 | */ |