X-CUBE-SPN11 for X-NUCLEO-IHM11M1: stm32f4xx_hal_msp.c Source File

X-CUBE-SPN11 for X-NUCLEO-IHM11M1

stm32f4xx_hal_msp.c
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file stm32f4xx_hal_msp.c
4  * @author IPC
5  * @version V0
6  * @date 10/07/2016
7  * @brief This file provides code for the MSP Initialization
8  * and de-Initialization codes.
9  ******************************************************************************
10  *
11  * COPYRIGHT(c) 2015 STMicroelectronics
12  *
13  * Redistribution and use in source and binary forms, with or without modification,
14  * are permitted provided that the following conditions are met:
15  * 1. Redistributions of source code must retain the above copyright notice,
16  * this list of conditions and the following disclaimer.
17  * 2. Redistributions in binary form must reproduce the above copyright notice,
18  * this list of conditions and the following disclaimer in the documentation
19  * and/or other materials provided with the distribution.
20  * 3. Neither the name of STMicroelectronics nor the names of its contributors
21  * may be used to endorse or promote products derived from this software
22  * without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34  *
35  ******************************************************************************
36  */
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f4xx_hal.h"
40 
41 /* USER CODE BEGIN 0 */
42 
43 /* USER CODE END 0 */
44 
45 /**
46  * Initializes the Global MSP.
47  */
48 void HAL_MspInit(void)
49 {
50  GPIO_InitTypeDef GPIO_InitStruct;
51 
52  /* GPIO Ports Clock Enable */
53  __GPIOC_CLK_ENABLE();
54  __GPIOH_CLK_ENABLE();
55  __GPIOA_CLK_ENABLE();
56  __GPIOB_CLK_ENABLE();
57  /** GPIO Configuration IHM11M1*/
58 
59  /*Configure GPIO pin : PC13 */
60  GPIO_InitStruct.Pin = GPIO_PIN_13;
61  GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
62  GPIO_InitStruct.Pull = GPIO_PULLUP;
63  HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
64 
65  GPIO_InitStruct.Pin = GPIO_CH_COMM;
66  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
67  GPIO_InitStruct.Pull = GPIO_NOPULL;
68  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
69  HAL_GPIO_Init(GPIO_PORT_COMM, &GPIO_InitStruct);
70 
71  GPIO_InitStruct.Pin = GPIO_CH_ZCR;
72  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
73  GPIO_InitStruct.Pull = GPIO_NOPULL;
74  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
75  HAL_GPIO_Init(GPIO_PORT_ZCR, &GPIO_InitStruct);
76 
77  /* EXTI interrupt init*/
78  HAL_NVIC_SetPriority(EXTI15_10_IRQn, 0, 0);
79  HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
80  /* USER CODE BEGIN MspInit 0 */
81 
82  /* EN PIN */
83  GPIO_InitStruct.Pin = GPIO_PIN_5;
84  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
85  GPIO_InitStruct.Pull = GPIO_NOPULL;
86  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
87  HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_SET);
88 
89  /* FAULT PIN */
90  GPIO_InitStruct.Pin = GPIO_PIN_4;
91  GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
92  GPIO_InitStruct.Pull = GPIO_NOPULL;
93  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
94 
95  /* SBY&RESET PIN */
96  GPIO_InitStruct.Pin = GPIO_PIN_7;
97  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD;
98  GPIO_InitStruct.Pull = GPIO_NOPULL;
99  HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
100  HAL_GPIO_WritePin(GPIOC, GPIO_PIN_7, GPIO_PIN_SET);
101 
102  /* USER CODE END MspInit 0 */
103 
104  HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
105 
106  /* System interrupt init*/
107 /* SysTick_IRQn interrupt configuration */
108  HAL_NVIC_SetPriority(SysTick_IRQn, 2, 0);
109 
110  /* USER CODE BEGIN MspInit 1 */
111 
112  /* USER CODE END MspInit 1 */
113 }
114 
115 void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
116 {
117 
118  GPIO_InitTypeDef GPIO_InitStruct;
119  if(hadc->Instance==ADC1)
120  {
121  /* USER CODE BEGIN ADC1_MspInit 0 */
122 
123  /* USER CODE END ADC1_MspInit 0 */
124  /* Peripheral clock enable */
125  __ADC1_CLK_ENABLE();
126 
127  /**ADC1 GPIO Configuration IHM11M1
128  PC1 ------> ADC1_IN11
129  PC2 ------> ADC1_IN12
130  PC3 ------> ADC1_IN13
131  PA1 ------> ADC1_IN1
132  PA7 ------> ADC1_IN7
133  PB0 ------> ADC1_IN8
134  */
135  GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3;
136  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
137  GPIO_InitStruct.Pull = GPIO_NOPULL;
138  HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
139 
140  GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_7;
141  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
142  GPIO_InitStruct.Pull = GPIO_NOPULL;
143  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
144 
145  GPIO_InitStruct.Pin = GPIO_PIN_0;
146  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
147  GPIO_InitStruct.Pull = GPIO_NOPULL;
148  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
149 
150  /* System interrupt init*/
151  HAL_NVIC_SetPriority(ADC_IRQn, 0, 0);
152  HAL_NVIC_EnableIRQ(ADC_IRQn);
153  /* USER CODE BEGIN ADC1_MspInit 1 */
154 
155  /* USER CODE END ADC1_MspInit 1 */
156  }
157 
158 }
159 
160 void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc)
161 {
162 
163  if(hadc->Instance==ADC1)
164  {
165  /* USER CODE BEGIN ADC1_MspDeInit 0 */
166 
167  /* USER CODE END ADC1_MspDeInit 0 */
168  /* Peripheral clock disable */
169  __ADC1_CLK_DISABLE();
170 
171  /**ADC1 GPIO Configuration IHM11M1
172  PC1 ------> ADC1_IN11
173  PC2 ------> ADC1_IN12
174  PC3 ------> ADC1_IN13
175  PA1 ------> ADC1_IN1
176  PA7 ------> ADC1_IN7
177  PB0 ------> ADC1_IN8
178  */
179  HAL_GPIO_DeInit(GPIOC, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3);
180 
181  HAL_GPIO_DeInit(GPIOA, GPIO_PIN_1|GPIO_PIN_7);
182 
183  HAL_GPIO_DeInit(GPIOB, GPIO_PIN_0);
184 
185  /* Peripheral interrupt DeInit*/
186  HAL_NVIC_DisableIRQ(ADC_IRQn);
187 
188  /* USER CODE BEGIN ADC1_MspDeInit 1 */
189 
190  /* USER CODE END ADC1_MspDeInit 1 */
191  }
192 
193 }
194 
195 void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
196 {
197 
198  GPIO_InitTypeDef GPIO_InitStruct;
199  if(htim_base->Instance==TIM1)
200  {
201  /* USER CODE BEGIN TIM1_MspInit 0 */
202 
203  /* USER CODE END TIM1_MspInit 0 */
204  /* Peripheral clock enable */
205  __TIM1_CLK_ENABLE();
206 
207  /* Enable GPIO Channels Clock */
208  __HAL_RCC_GPIOA_CLK_ENABLE();
209  __HAL_RCC_GPIOB_CLK_ENABLE();
210 
211  /**TIM1 GPIO Configuration IHM11M1
212  PA8 ------> TIM1_CH1
213  PA9 ------> TIM1_CH2
214  PA10 ------> TIM1_CH3
215  PB13 ------> TIM1_CH1N
216  PB14 ------> TIM1_CH2N
217  PB1 ------> TIM1_CH3N
218  */
219 
220  GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 ;
221  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
222  GPIO_InitStruct.Pull = GPIO_PULLDOWN;
223  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
224  GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
225  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
226 
227 
228  GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_13|GPIO_PIN_14 ;
229  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
230  GPIO_InitStruct.Pull = GPIO_PULLDOWN;
231  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
232  GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
233  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
234 
235  /* System interrupt init*/
236  // HAL_NVIC_SetPriority(TIM1_BRK_TIM9_IRQn, 0, 0);
237  // HAL_NVIC_EnableIRQ(TIM1_BRK_TIM9_IRQn);
238  /* USER CODE BEGIN TIM1_MspInit 1 */
239 
240  /* USER CODE END TIM1_MspInit 1 */
241  }
242  else if(htim_base->Instance==TIM3)
243  {
244  /* USER CODE BEGIN TIM3_MspInit 0 */
245 
246  /* USER CODE END TIM3_MspInit 0 */
247  /* Peripheral clock enable */
248  __TIM3_CLK_ENABLE();
249 
250  /**TIM3 GPIO Configuration IHM11M1
251  PB4 ------> TIM3_CH1
252  */
253  // GPIO_InitStruct.Pin = GPIO_PIN_4;
254  // GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
255  // GPIO_InitStruct.Pull = GPIO_NOPULL;
256  // GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
257  // GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
258  // HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
259 
260  /* USER CODE BEGIN TIM3_MspInit 1 */
261 
262  /* USER CODE END TIM3_MspInit 1 */
263  }
264  else if(htim_base->Instance==TIM4)
265  {
266  /* USER CODE BEGIN TIM4_MspInit 0 */
267 
268  /* USER CODE END TIM4_MspInit 0 */
269  /* Peripheral clock enable */
270  __TIM4_CLK_ENABLE(); //IHM11M1
271  /* System interrupt init*/
272  HAL_NVIC_SetPriority(TIM4_IRQn, 1, 0);
273  HAL_NVIC_EnableIRQ(TIM4_IRQn);
274  /* USER CODE BEGIN TIM4_MspInit 1 */
275 
276  /* USER CODE END TIM4_MspInit 1 */
277  }
278 
279 }
280 
281  /**
282  * @brief Initializes the TIM PWM MSP.
283  * @param htim: pointer to a TIM_HandleTypeDef structure that contains
284  * the configuration information for TIM module.
285  * @retval None
286  */
287  void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim)
288 {
289  GPIO_InitTypeDef GPIO_InitStruct;
290 
291 
292  /*##-1- Enable peripherals and GPIO Clocks #################################*/
293  /* TIMx Peripheral clock enable */
294  __HAL_RCC_TIM1_CLK_ENABLE();
295 
296  /* Enable GPIO Channels Clock */
297  __HAL_RCC_GPIOA_CLK_ENABLE();
298  __HAL_RCC_GPIOB_CLK_ENABLE();
299 
300  /**TIM1 GPIO Configuration IHM11M1
301  PA8 ------> TIM1_CH1
302  PA9 ------> TIM1_CH2
303  PA10 ------> TIM1_CH3
304  PB13 ------> TIM1_CH1N
305  PB14 ------> TIM1_CH2N
306  PB1 ------> TIM1_CH3N
307  */
308 
309  GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 ;
310  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
311  GPIO_InitStruct.Pull = GPIO_PULLDOWN;
312  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
313  GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
314  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
315 
316 
317  GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_13|GPIO_PIN_14 ;
318  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
319  GPIO_InitStruct.Pull = GPIO_PULLDOWN;
320  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
321  GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
322  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
323 }
324 
325 
326 void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef* htimex_hallsensor)
327 {
328 
329  GPIO_InitTypeDef GPIO_InitStruct;
330  if(htimex_hallsensor->Instance==TIM2)
331  {
332  /* USER CODE BEGIN TIM2_MspInit 0 */
333 
334  /* USER CODE END TIM2_MspInit 0 */
335  /* Peripheral clock enable */
336  __TIM2_CLK_ENABLE();
337 
338  /* Enable GPIO Channels Clock */
339  __HAL_RCC_GPIOA_CLK_ENABLE();
340  __HAL_RCC_GPIOB_CLK_ENABLE();
341 
342 
343  /**TIM2 GPIO Configuration IHM11M1
344  PA15 ------> TIM2_CH1
345  PB10 ------> TIM2_CH3
346  PB3 ------> TIM2_CH2
347  */
348  GPIO_InitStruct.Pin = GPIO_PIN_15;
349  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
350  GPIO_InitStruct.Pull = GPIO_NOPULL;
351  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
352  GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
353  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
354 
355  GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_3;
356  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
357  GPIO_InitStruct.Pull = GPIO_NOPULL;
358  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
359  GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
360  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
361 
362  /* System interrupt init*/
363  HAL_NVIC_SetPriority(TIM2_IRQn, 1, 0);
364  HAL_NVIC_EnableIRQ(TIM2_IRQn);
365 
366 
367  /* USER CODE BEGIN TIM2_MspInit 1 */
368 
369  /* USER CODE END TIM2_MspInit 1 */
370  }
371 
372 }
373 
374 void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* htim_base)
375 {
376 
377  if(htim_base->Instance==TIM1)
378  {
379  /* USER CODE BEGIN TIM1_MspDeInit 0 */
380 
381  /* USER CODE END TIM1_MspDeInit 0 */
382  /* Peripheral clock disable */
383  __TIM1_CLK_DISABLE();
384 
385  /**TIM1 GPIO Configuration IHM11M1
386  PA8 ------> TIM1_CH1
387  PA9 ------> TIM1_CH2
388  PA10 ------> TIM1_CH3
389  PB13 ------> TIM1_CH1N
390  PB14 ------> TIM1_CH2N
391  PB1 ------> TIM1_CH3N
392  */
393 
394  HAL_GPIO_DeInit(GPIOA, GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 );
395  HAL_GPIO_DeInit(GPIOB, GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_1 );
396 
397 
398  /* Peripheral interrupt DeInit*/
399  HAL_NVIC_DisableIRQ(TIM1_BRK_TIM9_IRQn);
400 
401  /* USER CODE BEGIN TIM1_MspDeInit 1 */
402 
403  /* USER CODE END TIM1_MspDeInit 1 */
404  }
405  else if(htim_base->Instance==TIM3)
406  {
407  /* USER CODE BEGIN TIM3_MspDeInit 0 */
408 
409  /* USER CODE END TIM3_MspDeInit 0 */
410  /* Peripheral clock disable */
411  __TIM3_CLK_DISABLE();
412 
413  /**TIM3 GPIO Configuration
414  PB4 ------> TIM3_CH1
415  */
416  // HAL_GPIO_DeInit(GPIOB, GPIO_PIN_4);
417 
418  /* USER CODE BEGIN TIM3_MspDeInit 1 */
419 
420  /* USER CODE END TIM3_MspDeInit 1 */
421  }
422  else if(htim_base->Instance==TIM4)
423  {
424  /* USER CODE BEGIN TIM4_MspDeInit 0 */
425 
426  /* USER CODE END TIM4_MspDeInit 0 */
427  /* Peripheral clock disable */
428  __TIM4_CLK_DISABLE();
429 
430  /* Peripheral interrupt DeInit*/
431  HAL_NVIC_DisableIRQ(TIM4_IRQn);
432 
433  /* USER CODE BEGIN TIM4_MspDeInit 1 */
434 
435  /* USER CODE END TIM4_MspDeInit 1 */
436  }
437 
438 }
439 
440 void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef* htimex_hallsensor)
441 {
442 
443  if(htimex_hallsensor->Instance==TIM2)
444  {
445  /* USER CODE BEGIN TIM2_MspDeInit 0 */
446 
447  /* USER CODE END TIM2_MspDeInit 0 */
448  /* Peripheral clock disable */
449  __TIM2_CLK_DISABLE();
450 
451  /**TIM2 GPIO Configuration
452  PA15 ------> TIM2_CH1
453  PB10 ------> TIM2_CH3
454  PB3 ------> TIM2_CH2
455  */
456  HAL_GPIO_DeInit(GPIOA, GPIO_PIN_15);
457 
458  HAL_GPIO_DeInit(GPIOB, GPIO_PIN_10|GPIO_PIN_3);
459 
460  /* USER CODE BEGIN TIM2_MspDeInit 1 */
461 
462  /* USER CODE END TIM2_MspDeInit 1 */
463  }
464 
465 }
466 
467 void HAL_UART_MspInit(UART_HandleTypeDef* huart)
468 {
469 
470  GPIO_InitTypeDef GPIO_InitStruct;
471  if(huart->Instance==USART2)
472  {
473  /* USER CODE BEGIN USART2_MspInit 0 */
474 
475  /* USER CODE END USART2_MspInit 0 */
476  /* Peripheral clock enable */
477  __USART2_CLK_ENABLE();
478 
479  /**USART2 GPIO Configuration
480  PA2 ------> USART2_TX
481  PA3 ------> USART2_RX
482  */
483  GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3;
484  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
485  GPIO_InitStruct.Pull = GPIO_NOPULL;
486  GPIO_InitStruct.Speed = GPIO_SPEED_LOW;
487  GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
488  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
489 
490  /* System interrupt init*/
491  HAL_NVIC_SetPriority(USART2_IRQn, 3, 0);
492  HAL_NVIC_EnableIRQ(USART2_IRQn);
493  /* USER CODE BEGIN USART2_MspInit 1 */
494 
495  /* USER CODE END USART2_MspInit 1 */
496  }
497 
498 }
499 
500 void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
501 {
502 
503  if(huart->Instance==USART2)
504  {
505  /* USER CODE BEGIN USART2_MspDeInit 0 */
506 
507  /* USER CODE END USART2_MspDeInit 0 */
508  /* Peripheral clock disable */
509  __USART2_CLK_DISABLE();
510 
511  /**USART2 GPIO Configuration
512  PA2 ------> USART2_TX
513  PA3 ------> USART2_RX
514  */
515  HAL_GPIO_DeInit(GPIOA, GPIO_PIN_2|GPIO_PIN_3);
516 
517  /* Peripheral interrupt DeInit*/
518  HAL_NVIC_DisableIRQ(USART2_IRQn);
519 
520  /* USER CODE BEGIN USART2_MspDeInit 1 */
521 
522  /* USER CODE END USART2_MspDeInit 1 */
523  }
524 
525 }
526 
527 /* USER CODE BEGIN 1 */
528 
529 /* USER CODE END 1 */
530 
531 /**
532  * @}
533  */
534 
535 /**
536  * @}
537  */
538 
539 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
#define GPIO_PORT_COMM
void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim)
Initializes the TIM PWM MSP.
void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)
void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef *htim_base)
#define GPIO_CH_ZCR
void HAL_UART_MspInit(UART_HandleTypeDef *huart)
#define GPIO_PORT_ZCR
void HAL_MspInit(void)
Initializes the Global MSP.
This file provides the interface between the MC-lib and STM Nucleo.
void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc)
void HAL_UART_MspDeInit(UART_HandleTypeDef *huart)
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim_base)
void HAL_TIMEx_HallSensor_MspInit(TIM_HandleTypeDef *htimex_hallsensor)
#define GPIO_CH_COMM
void HAL_TIMEx_HallSensor_MspDeInit(TIM_HandleTypeDef *htimex_hallsensor)
Generated by   doxygen 1.8.11