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