001
targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_msp_template.c@0:13413ea9a877, 2022-06-12 (annotated)
- Committer:
- ganlikun
- Date:
- Sun Jun 12 14:02:44 2022 +0000
- Revision:
- 0:13413ea9a877
00
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ganlikun | 0:13413ea9a877 | 1 | /** |
ganlikun | 0:13413ea9a877 | 2 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 3 | * @file stm32f4xx_hal_msp_template.c |
ganlikun | 0:13413ea9a877 | 4 | * @author MCD Application Team |
ganlikun | 0:13413ea9a877 | 5 | * @version V1.4.1 |
ganlikun | 0:13413ea9a877 | 6 | * @date 09-October-2015 |
ganlikun | 0:13413ea9a877 | 7 | * @brief This file contains the HAL System and Peripheral (PPP) MSP initialization |
ganlikun | 0:13413ea9a877 | 8 | * and de-initialization functions. |
ganlikun | 0:13413ea9a877 | 9 | * It should be copied to the application folder and renamed into 'stm32f4xx_hal_msp.c'. |
ganlikun | 0:13413ea9a877 | 10 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 11 | * @attention |
ganlikun | 0:13413ea9a877 | 12 | * |
ganlikun | 0:13413ea9a877 | 13 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
ganlikun | 0:13413ea9a877 | 14 | * |
ganlikun | 0:13413ea9a877 | 15 | * Redistribution and use in source and binary forms, with or without modification, |
ganlikun | 0:13413ea9a877 | 16 | * are permitted provided that the following conditions are met: |
ganlikun | 0:13413ea9a877 | 17 | * 1. Redistributions of source code must retain the above copyright notice, |
ganlikun | 0:13413ea9a877 | 18 | * this list of conditions and the following disclaimer. |
ganlikun | 0:13413ea9a877 | 19 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
ganlikun | 0:13413ea9a877 | 20 | * this list of conditions and the following disclaimer in the documentation |
ganlikun | 0:13413ea9a877 | 21 | * and/or other materials provided with the distribution. |
ganlikun | 0:13413ea9a877 | 22 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
ganlikun | 0:13413ea9a877 | 23 | * may be used to endorse or promote products derived from this software |
ganlikun | 0:13413ea9a877 | 24 | * without specific prior written permission. |
ganlikun | 0:13413ea9a877 | 25 | * |
ganlikun | 0:13413ea9a877 | 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
ganlikun | 0:13413ea9a877 | 27 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
ganlikun | 0:13413ea9a877 | 28 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
ganlikun | 0:13413ea9a877 | 29 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
ganlikun | 0:13413ea9a877 | 30 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
ganlikun | 0:13413ea9a877 | 31 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
ganlikun | 0:13413ea9a877 | 32 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
ganlikun | 0:13413ea9a877 | 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
ganlikun | 0:13413ea9a877 | 34 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
ganlikun | 0:13413ea9a877 | 35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
ganlikun | 0:13413ea9a877 | 36 | * |
ganlikun | 0:13413ea9a877 | 37 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 38 | */ |
ganlikun | 0:13413ea9a877 | 39 | |
ganlikun | 0:13413ea9a877 | 40 | /* Includes ------------------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 41 | #include "stm32f4xx_hal.h" |
ganlikun | 0:13413ea9a877 | 42 | |
ganlikun | 0:13413ea9a877 | 43 | /** @addtogroup STM32F4xx_HAL_Driver |
ganlikun | 0:13413ea9a877 | 44 | * @{ |
ganlikun | 0:13413ea9a877 | 45 | */ |
ganlikun | 0:13413ea9a877 | 46 | |
ganlikun | 0:13413ea9a877 | 47 | /** @defgroup HAL_MSP HAL MSP |
ganlikun | 0:13413ea9a877 | 48 | * @brief HAL MSP module. |
ganlikun | 0:13413ea9a877 | 49 | * @{ |
ganlikun | 0:13413ea9a877 | 50 | */ |
ganlikun | 0:13413ea9a877 | 51 | |
ganlikun | 0:13413ea9a877 | 52 | /* Private typedef -----------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 53 | /* Private define ------------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 54 | /* Private macro -------------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 55 | /* Private variables ---------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 56 | /* Private function prototypes -----------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 57 | /* Private functions ---------------------------------------------------------*/ |
ganlikun | 0:13413ea9a877 | 58 | |
ganlikun | 0:13413ea9a877 | 59 | /** @defgroup HAL_MSP_Private_Functions HAL MSP Private Functions |
ganlikun | 0:13413ea9a877 | 60 | * @{ |
ganlikun | 0:13413ea9a877 | 61 | */ |
ganlikun | 0:13413ea9a877 | 62 | |
ganlikun | 0:13413ea9a877 | 63 | /** |
ganlikun | 0:13413ea9a877 | 64 | * @brief Initializes the Global MSP. |
ganlikun | 0:13413ea9a877 | 65 | * @note This function is called from HAL_Init() function to perform system |
ganlikun | 0:13413ea9a877 | 66 | * level initialization (GPIOs, clock, DMA, interrupt). |
ganlikun | 0:13413ea9a877 | 67 | * @retval None |
ganlikun | 0:13413ea9a877 | 68 | */ |
ganlikun | 0:13413ea9a877 | 69 | void HAL_MspInit(void) |
ganlikun | 0:13413ea9a877 | 70 | { |
ganlikun | 0:13413ea9a877 | 71 | |
ganlikun | 0:13413ea9a877 | 72 | } |
ganlikun | 0:13413ea9a877 | 73 | |
ganlikun | 0:13413ea9a877 | 74 | /** |
ganlikun | 0:13413ea9a877 | 75 | * @brief DeInitializes the Global MSP. |
ganlikun | 0:13413ea9a877 | 76 | * @note This functiona is called from HAL_DeInit() function to perform system |
ganlikun | 0:13413ea9a877 | 77 | * level de-initialization (GPIOs, clock, DMA, interrupt). |
ganlikun | 0:13413ea9a877 | 78 | * @retval None |
ganlikun | 0:13413ea9a877 | 79 | */ |
ganlikun | 0:13413ea9a877 | 80 | void HAL_MspDeInit(void) |
ganlikun | 0:13413ea9a877 | 81 | { |
ganlikun | 0:13413ea9a877 | 82 | |
ganlikun | 0:13413ea9a877 | 83 | } |
ganlikun | 0:13413ea9a877 | 84 | |
ganlikun | 0:13413ea9a877 | 85 | /** |
ganlikun | 0:13413ea9a877 | 86 | * @brief Initializes the PPP MSP. |
ganlikun | 0:13413ea9a877 | 87 | * @note This functiona is called from HAL_PPP_Init() function to perform |
ganlikun | 0:13413ea9a877 | 88 | * peripheral(PPP) system level initialization (GPIOs, clock, DMA, interrupt) |
ganlikun | 0:13413ea9a877 | 89 | * @retval None |
ganlikun | 0:13413ea9a877 | 90 | */ |
ganlikun | 0:13413ea9a877 | 91 | void HAL_PPP_MspInit(void) |
ganlikun | 0:13413ea9a877 | 92 | { |
ganlikun | 0:13413ea9a877 | 93 | |
ganlikun | 0:13413ea9a877 | 94 | } |
ganlikun | 0:13413ea9a877 | 95 | |
ganlikun | 0:13413ea9a877 | 96 | /** |
ganlikun | 0:13413ea9a877 | 97 | * @brief DeInitializes the PPP MSP. |
ganlikun | 0:13413ea9a877 | 98 | * @note This functiona is called from HAL_PPP_DeInit() function to perform |
ganlikun | 0:13413ea9a877 | 99 | * peripheral(PPP) system level de-initialization (GPIOs, clock, DMA, interrupt) |
ganlikun | 0:13413ea9a877 | 100 | * @retval None |
ganlikun | 0:13413ea9a877 | 101 | */ |
ganlikun | 0:13413ea9a877 | 102 | void HAL_PPP_MspDeInit(void) |
ganlikun | 0:13413ea9a877 | 103 | { |
ganlikun | 0:13413ea9a877 | 104 | |
ganlikun | 0:13413ea9a877 | 105 | } |
ganlikun | 0:13413ea9a877 | 106 | |
ganlikun | 0:13413ea9a877 | 107 | /** |
ganlikun | 0:13413ea9a877 | 108 | * @} |
ganlikun | 0:13413ea9a877 | 109 | */ |
ganlikun | 0:13413ea9a877 | 110 | |
ganlikun | 0:13413ea9a877 | 111 | /** |
ganlikun | 0:13413ea9a877 | 112 | * @} |
ganlikun | 0:13413ea9a877 | 113 | */ |
ganlikun | 0:13413ea9a877 | 114 | |
ganlikun | 0:13413ea9a877 | 115 | /** |
ganlikun | 0:13413ea9a877 | 116 | * @} |
ganlikun | 0:13413ea9a877 | 117 | */ |
ganlikun | 0:13413ea9a877 | 118 | |
ganlikun | 0:13413ea9a877 | 119 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
ganlikun | 0:13413ea9a877 | 120 |