2
0

stm32f1xx_hal_msp.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. ******************************************************************************
  3. * File Name : stm32f1xx_hal_msp.c
  4. * Description : This file provides code for the MSP Initialization
  5. * and de-Initialization codes.
  6. ******************************************************************************
  7. ******************************************************************************
  8. */
  9. /* Includes ------------------------------------------------------------------*/
  10. #include "stm32f1xx_hal.h"
  11. extern void _Error_Handler(char *, int);
  12. /* USER CODE BEGIN 0 */
  13. /* USER CODE END 0 */
  14. /**
  15. * Initializes the Global MSP.
  16. */
  17. void HAL_MspInit(void)
  18. {
  19. /* USER CODE BEGIN MspInit 0 */
  20. /* USER CODE END MspInit 0 */
  21. __HAL_RCC_AFIO_CLK_ENABLE();
  22. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  23. /* System interrupt init*/
  24. /* MemoryManagement_IRQn interrupt configuration */
  25. HAL_NVIC_SetPriority(MemoryManagement_IRQn, 0, 0);
  26. /* BusFault_IRQn interrupt configuration */
  27. HAL_NVIC_SetPriority(BusFault_IRQn, 0, 0);
  28. /* UsageFault_IRQn interrupt configuration */
  29. HAL_NVIC_SetPriority(UsageFault_IRQn, 0, 0);
  30. /* SVCall_IRQn interrupt configuration */
  31. HAL_NVIC_SetPriority(SVCall_IRQn, 0, 0);
  32. /* DebugMonitor_IRQn interrupt configuration */
  33. HAL_NVIC_SetPriority(DebugMonitor_IRQn, 0, 0);
  34. /* PendSV_IRQn interrupt configuration */
  35. HAL_NVIC_SetPriority(PendSV_IRQn, 0, 0);
  36. /* SysTick_IRQn interrupt configuration */
  37. HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
  38. /**NOJTAG: JTAG-DP Disabled and SW-DP Enabled
  39. */
  40. __HAL_AFIO_REMAP_SWJ_NOJTAG();
  41. /* USER CODE BEGIN MspInit 1 */
  42. /* USER CODE END MspInit 1 */
  43. }
  44. /* USER CODE BEGIN 1 */
  45. /* USER CODE END 1 */
  46. /**
  47. * @}
  48. */
  49. /**
  50. * @}
  51. */
  52. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/