stm32f0xx_hal_msp.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /**
  2. ******************************************************************************
  3. * File Name : stm32f0xx_hal_msp.c
  4. * Description : This file provides code for the MSP Initialization
  5. * and de-Initialization codes.
  6. ******************************************************************************
  7. *
  8. * Copyright (c) 2017 STMicroelectronics International N.V.
  9. * All rights reserved.
  10. *
  11. * Redistribution and use in source and binary forms, with or without
  12. * modification, are permitted, provided that the following conditions are met:
  13. *
  14. * 1. Redistribution of source code must retain the above copyright notice,
  15. * this list of conditions and the following disclaimer.
  16. * 2. Redistributions in binary form must reproduce the above copyright notice,
  17. * this list of conditions and the following disclaimer in the documentation
  18. * and/or other materials provided with the distribution.
  19. * 3. Neither the name of STMicroelectronics nor the names of other
  20. * contributors to this software may be used to endorse or promote products
  21. * derived from this software without specific written permission.
  22. * 4. This software, including modifications and/or derivative works of this
  23. * software, must execute solely and exclusively on microcontroller or
  24. * microprocessor devices manufactured by or for STMicroelectronics.
  25. * 5. Redistribution and use of this software other than as permitted under
  26. * this license is void and will automatically terminate your rights under
  27. * this license.
  28. *
  29. * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
  30. * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
  31. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  32. * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
  33. * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
  34. * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  35. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  36. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
  37. * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  38. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  39. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  40. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  41. *
  42. ******************************************************************************
  43. */
  44. /* Includes ------------------------------------------------------------------*/
  45. #include "stm32f0xx_hal.h"
  46. extern void Error_Handler(void);
  47. /* USER CODE BEGIN 0 */
  48. /* USER CODE END 0 */
  49. /**
  50. * Initializes the Global MSP.
  51. */
  52. void HAL_MspInit(void)
  53. {
  54. /* USER CODE BEGIN MspInit 0 */
  55. /* USER CODE END MspInit 0 */
  56. __HAL_RCC_SYSCFG_CLK_ENABLE();
  57. /* System interrupt init*/
  58. /* SVC_IRQn interrupt configuration */
  59. HAL_NVIC_SetPriority(SVC_IRQn, 0, 0);
  60. /* PendSV_IRQn interrupt configuration */
  61. HAL_NVIC_SetPriority(PendSV_IRQn, 3, 0);
  62. /* SysTick_IRQn interrupt configuration */
  63. HAL_NVIC_SetPriority(SysTick_IRQn, 3, 0);
  64. /* USER CODE BEGIN MspInit 1 */
  65. /* USER CODE END MspInit 1 */
  66. }
  67. /* USER CODE BEGIN 1 */
  68. /* USER CODE END 1 */
  69. /**
  70. * @}
  71. */
  72. /**
  73. * @}
  74. */
  75. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/