Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Nucleo_BLE_API_IOTIO Nucleo_BLE_BlueNRG Nucleo_BLE_DemoApp Nucleo_Sensor_Shield mbed
Dependents: Nucleo_BLE_Demo_IOTIO
Fork of Nucleo_BLE_Demo by
mbed/TARGET_NUCLEO_F401RE/stm32f4xx_hal.h@1:4bdfa7d7e8bf, 2016-10-29 (annotated)
- Committer:
- 16038618
- Date:
- Sat Oct 29 15:11:28 2016 +0000
- Revision:
- 1:4bdfa7d7e8bf
IOTIO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
16038618 | 1:4bdfa7d7e8bf | 1 | /** |
16038618 | 1:4bdfa7d7e8bf | 2 | ****************************************************************************** |
16038618 | 1:4bdfa7d7e8bf | 3 | * @file stm32f4xx_hal.h |
16038618 | 1:4bdfa7d7e8bf | 4 | * @author MCD Application Team |
16038618 | 1:4bdfa7d7e8bf | 5 | * @version V1.3.0 |
16038618 | 1:4bdfa7d7e8bf | 6 | * @date 09-March-2015 |
16038618 | 1:4bdfa7d7e8bf | 7 | * @brief This file contains all the functions prototypes for the HAL |
16038618 | 1:4bdfa7d7e8bf | 8 | * module driver. |
16038618 | 1:4bdfa7d7e8bf | 9 | ****************************************************************************** |
16038618 | 1:4bdfa7d7e8bf | 10 | * @attention |
16038618 | 1:4bdfa7d7e8bf | 11 | * |
16038618 | 1:4bdfa7d7e8bf | 12 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
16038618 | 1:4bdfa7d7e8bf | 13 | * |
16038618 | 1:4bdfa7d7e8bf | 14 | * Redistribution and use in source and binary forms, with or without modification, |
16038618 | 1:4bdfa7d7e8bf | 15 | * are permitted provided that the following conditions are met: |
16038618 | 1:4bdfa7d7e8bf | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
16038618 | 1:4bdfa7d7e8bf | 17 | * this list of conditions and the following disclaimer. |
16038618 | 1:4bdfa7d7e8bf | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
16038618 | 1:4bdfa7d7e8bf | 19 | * this list of conditions and the following disclaimer in the documentation |
16038618 | 1:4bdfa7d7e8bf | 20 | * and/or other materials provided with the distribution. |
16038618 | 1:4bdfa7d7e8bf | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
16038618 | 1:4bdfa7d7e8bf | 22 | * may be used to endorse or promote products derived from this software |
16038618 | 1:4bdfa7d7e8bf | 23 | * without specific prior written permission. |
16038618 | 1:4bdfa7d7e8bf | 24 | * |
16038618 | 1:4bdfa7d7e8bf | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
16038618 | 1:4bdfa7d7e8bf | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16038618 | 1:4bdfa7d7e8bf | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
16038618 | 1:4bdfa7d7e8bf | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
16038618 | 1:4bdfa7d7e8bf | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
16038618 | 1:4bdfa7d7e8bf | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
16038618 | 1:4bdfa7d7e8bf | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
16038618 | 1:4bdfa7d7e8bf | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
16038618 | 1:4bdfa7d7e8bf | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
16038618 | 1:4bdfa7d7e8bf | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
16038618 | 1:4bdfa7d7e8bf | 35 | * |
16038618 | 1:4bdfa7d7e8bf | 36 | ****************************************************************************** |
16038618 | 1:4bdfa7d7e8bf | 37 | */ |
16038618 | 1:4bdfa7d7e8bf | 38 | |
16038618 | 1:4bdfa7d7e8bf | 39 | /* Define to prevent recursive inclusion -------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 40 | #ifndef __STM32F4xx_HAL_H |
16038618 | 1:4bdfa7d7e8bf | 41 | #define __STM32F4xx_HAL_H |
16038618 | 1:4bdfa7d7e8bf | 42 | |
16038618 | 1:4bdfa7d7e8bf | 43 | #ifdef __cplusplus |
16038618 | 1:4bdfa7d7e8bf | 44 | extern "C" { |
16038618 | 1:4bdfa7d7e8bf | 45 | #endif |
16038618 | 1:4bdfa7d7e8bf | 46 | |
16038618 | 1:4bdfa7d7e8bf | 47 | /* Includes ------------------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 48 | #include "stm32f4xx_hal_conf.h" |
16038618 | 1:4bdfa7d7e8bf | 49 | |
16038618 | 1:4bdfa7d7e8bf | 50 | /** @addtogroup STM32F4xx_HAL_Driver |
16038618 | 1:4bdfa7d7e8bf | 51 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 52 | */ |
16038618 | 1:4bdfa7d7e8bf | 53 | |
16038618 | 1:4bdfa7d7e8bf | 54 | /** @addtogroup HAL |
16038618 | 1:4bdfa7d7e8bf | 55 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 56 | */ |
16038618 | 1:4bdfa7d7e8bf | 57 | |
16038618 | 1:4bdfa7d7e8bf | 58 | /* Exported types ------------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 59 | /* Exported constants --------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 60 | /* Exported macro ------------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 61 | /** @defgroup HAL_Exported_Macros HAL Exported Macros |
16038618 | 1:4bdfa7d7e8bf | 62 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 63 | */ |
16038618 | 1:4bdfa7d7e8bf | 64 | |
16038618 | 1:4bdfa7d7e8bf | 65 | /** @brief Freeze/Unfreeze Peripherals in Debug mode |
16038618 | 1:4bdfa7d7e8bf | 66 | */ |
16038618 | 1:4bdfa7d7e8bf | 67 | #define __HAL_DBGMCU_FREEZE_TIM2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 68 | #define __HAL_DBGMCU_FREEZE_TIM3() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 69 | #define __HAL_DBGMCU_FREEZE_TIM4() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM4_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 70 | #define __HAL_DBGMCU_FREEZE_TIM5() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM5_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 71 | #define __HAL_DBGMCU_FREEZE_TIM6() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 72 | #define __HAL_DBGMCU_FREEZE_TIM7() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 73 | #define __HAL_DBGMCU_FREEZE_TIM12() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM12_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 74 | #define __HAL_DBGMCU_FREEZE_TIM13() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM13_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 75 | #define __HAL_DBGMCU_FREEZE_TIM14() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 76 | #define __HAL_DBGMCU_FREEZE_RTC() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 77 | #define __HAL_DBGMCU_FREEZE_WWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 78 | #define __HAL_DBGMCU_FREEZE_IWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 79 | #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
16038618 | 1:4bdfa7d7e8bf | 80 | #define __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) |
16038618 | 1:4bdfa7d7e8bf | 81 | #define __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) |
16038618 | 1:4bdfa7d7e8bf | 82 | #define __HAL_DBGMCU_FREEZE_CAN1() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN1_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 83 | #define __HAL_DBGMCU_FREEZE_CAN2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN2_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 84 | #define __HAL_DBGMCU_FREEZE_TIM1() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 85 | #define __HAL_DBGMCU_FREEZE_TIM8() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM8_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 86 | #define __HAL_DBGMCU_FREEZE_TIM9() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM9_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 87 | #define __HAL_DBGMCU_FREEZE_TIM10() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM10_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 88 | #define __HAL_DBGMCU_FREEZE_TIM11() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM11_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 89 | |
16038618 | 1:4bdfa7d7e8bf | 90 | #define __HAL_DBGMCU_UNFREEZE_TIM2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 91 | #define __HAL_DBGMCU_UNFREEZE_TIM3() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 92 | #define __HAL_DBGMCU_UNFREEZE_TIM4() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM4_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 93 | #define __HAL_DBGMCU_UNFREEZE_TIM5() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM5_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 94 | #define __HAL_DBGMCU_UNFREEZE_TIM6() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 95 | #define __HAL_DBGMCU_UNFREEZE_TIM7() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 96 | #define __HAL_DBGMCU_UNFREEZE_TIM12() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM12_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 97 | #define __HAL_DBGMCU_UNFREEZE_TIM13() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM13_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 98 | #define __HAL_DBGMCU_UNFREEZE_TIM14() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 99 | #define __HAL_DBGMCU_UNFREEZE_RTC() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 100 | #define __HAL_DBGMCU_UNFREEZE_WWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 101 | #define __HAL_DBGMCU_UNFREEZE_IWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 102 | #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
16038618 | 1:4bdfa7d7e8bf | 103 | #define __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) |
16038618 | 1:4bdfa7d7e8bf | 104 | #define __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) |
16038618 | 1:4bdfa7d7e8bf | 105 | #define __HAL_DBGMCU_UNFREEZE_CAN1() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN1_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 106 | #define __HAL_DBGMCU_UNFREEZE_CAN2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN2_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 107 | #define __HAL_DBGMCU_UNFREEZE_TIM1() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 108 | #define __HAL_DBGMCU_UNFREEZE_TIM8() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM8_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 109 | #define __HAL_DBGMCU_UNFREEZE_TIM9() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM9_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 110 | #define __HAL_DBGMCU_UNFREEZE_TIM10() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM10_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 111 | #define __HAL_DBGMCU_UNFREEZE_TIM11() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM11_STOP)) |
16038618 | 1:4bdfa7d7e8bf | 112 | |
16038618 | 1:4bdfa7d7e8bf | 113 | /** @brief Main Flash memory mapped at 0x00000000 |
16038618 | 1:4bdfa7d7e8bf | 114 | */ |
16038618 | 1:4bdfa7d7e8bf | 115 | #define __HAL_SYSCFG_REMAPMEMORY_FLASH() (SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE)) |
16038618 | 1:4bdfa7d7e8bf | 116 | |
16038618 | 1:4bdfa7d7e8bf | 117 | /** @brief System Flash memory mapped at 0x00000000 |
16038618 | 1:4bdfa7d7e8bf | 118 | */ |
16038618 | 1:4bdfa7d7e8bf | 119 | #define __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
16038618 | 1:4bdfa7d7e8bf | 120 | SYSCFG->MEMRMP |= SYSCFG_MEMRMP_MEM_MODE_0;\ |
16038618 | 1:4bdfa7d7e8bf | 121 | }while(0); |
16038618 | 1:4bdfa7d7e8bf | 122 | |
16038618 | 1:4bdfa7d7e8bf | 123 | /** @brief Embedded SRAM mapped at 0x00000000 |
16038618 | 1:4bdfa7d7e8bf | 124 | */ |
16038618 | 1:4bdfa7d7e8bf | 125 | #define __HAL_SYSCFG_REMAPMEMORY_SRAM() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
16038618 | 1:4bdfa7d7e8bf | 126 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_0 | SYSCFG_MEMRMP_MEM_MODE_1);\ |
16038618 | 1:4bdfa7d7e8bf | 127 | }while(0); |
16038618 | 1:4bdfa7d7e8bf | 128 | |
16038618 | 1:4bdfa7d7e8bf | 129 | #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) |
16038618 | 1:4bdfa7d7e8bf | 130 | /** @brief FSMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 |
16038618 | 1:4bdfa7d7e8bf | 131 | */ |
16038618 | 1:4bdfa7d7e8bf | 132 | #define __HAL_SYSCFG_REMAPMEMORY_FSMC() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
16038618 | 1:4bdfa7d7e8bf | 133 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_1);\ |
16038618 | 1:4bdfa7d7e8bf | 134 | }while(0); |
16038618 | 1:4bdfa7d7e8bf | 135 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ |
16038618 | 1:4bdfa7d7e8bf | 136 | |
16038618 | 1:4bdfa7d7e8bf | 137 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) |
16038618 | 1:4bdfa7d7e8bf | 138 | /** @brief FMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 |
16038618 | 1:4bdfa7d7e8bf | 139 | */ |
16038618 | 1:4bdfa7d7e8bf | 140 | #define __HAL_SYSCFG_REMAPMEMORY_FMC() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
16038618 | 1:4bdfa7d7e8bf | 141 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_1);\ |
16038618 | 1:4bdfa7d7e8bf | 142 | }while(0); |
16038618 | 1:4bdfa7d7e8bf | 143 | |
16038618 | 1:4bdfa7d7e8bf | 144 | /** @brief FMC/SDRAM Bank 1 and 2 mapped at 0x00000000 |
16038618 | 1:4bdfa7d7e8bf | 145 | */ |
16038618 | 1:4bdfa7d7e8bf | 146 | #define __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
16038618 | 1:4bdfa7d7e8bf | 147 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_2);\ |
16038618 | 1:4bdfa7d7e8bf | 148 | }while(0); |
16038618 | 1:4bdfa7d7e8bf | 149 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
16038618 | 1:4bdfa7d7e8bf | 150 | /** |
16038618 | 1:4bdfa7d7e8bf | 151 | * @} |
16038618 | 1:4bdfa7d7e8bf | 152 | */ |
16038618 | 1:4bdfa7d7e8bf | 153 | |
16038618 | 1:4bdfa7d7e8bf | 154 | /* Exported functions --------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 155 | /** @addtogroup HAL_Exported_Functions |
16038618 | 1:4bdfa7d7e8bf | 156 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 157 | */ |
16038618 | 1:4bdfa7d7e8bf | 158 | /** @addtogroup HAL_Exported_Functions_Group1 |
16038618 | 1:4bdfa7d7e8bf | 159 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 160 | */ |
16038618 | 1:4bdfa7d7e8bf | 161 | /* Initialization and de-initialization functions ******************************/ |
16038618 | 1:4bdfa7d7e8bf | 162 | HAL_StatusTypeDef HAL_Init(void); |
16038618 | 1:4bdfa7d7e8bf | 163 | HAL_StatusTypeDef HAL_DeInit(void); |
16038618 | 1:4bdfa7d7e8bf | 164 | void HAL_MspInit(void); |
16038618 | 1:4bdfa7d7e8bf | 165 | void HAL_MspDeInit(void); |
16038618 | 1:4bdfa7d7e8bf | 166 | HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority); |
16038618 | 1:4bdfa7d7e8bf | 167 | /** |
16038618 | 1:4bdfa7d7e8bf | 168 | * @} |
16038618 | 1:4bdfa7d7e8bf | 169 | */ |
16038618 | 1:4bdfa7d7e8bf | 170 | |
16038618 | 1:4bdfa7d7e8bf | 171 | /** @addtogroup HAL_Exported_Functions_Group2 |
16038618 | 1:4bdfa7d7e8bf | 172 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 173 | */ |
16038618 | 1:4bdfa7d7e8bf | 174 | /* Peripheral Control functions ************************************************/ |
16038618 | 1:4bdfa7d7e8bf | 175 | void HAL_IncTick(void); |
16038618 | 1:4bdfa7d7e8bf | 176 | void HAL_Delay(__IO uint32_t Delay); |
16038618 | 1:4bdfa7d7e8bf | 177 | uint32_t HAL_GetTick(void); |
16038618 | 1:4bdfa7d7e8bf | 178 | void HAL_SuspendTick(void); |
16038618 | 1:4bdfa7d7e8bf | 179 | void HAL_ResumeTick(void); |
16038618 | 1:4bdfa7d7e8bf | 180 | uint32_t HAL_GetHalVersion(void); |
16038618 | 1:4bdfa7d7e8bf | 181 | uint32_t HAL_GetREVID(void); |
16038618 | 1:4bdfa7d7e8bf | 182 | uint32_t HAL_GetDEVID(void); |
16038618 | 1:4bdfa7d7e8bf | 183 | void HAL_DBGMCU_EnableDBGSleepMode(void); |
16038618 | 1:4bdfa7d7e8bf | 184 | void HAL_DBGMCU_DisableDBGSleepMode(void); |
16038618 | 1:4bdfa7d7e8bf | 185 | void HAL_DBGMCU_EnableDBGStopMode(void); |
16038618 | 1:4bdfa7d7e8bf | 186 | void HAL_DBGMCU_DisableDBGStopMode(void); |
16038618 | 1:4bdfa7d7e8bf | 187 | void HAL_DBGMCU_EnableDBGStandbyMode(void); |
16038618 | 1:4bdfa7d7e8bf | 188 | void HAL_DBGMCU_DisableDBGStandbyMode(void); |
16038618 | 1:4bdfa7d7e8bf | 189 | void HAL_EnableCompensationCell(void); |
16038618 | 1:4bdfa7d7e8bf | 190 | void HAL_DisableCompensationCell(void); |
16038618 | 1:4bdfa7d7e8bf | 191 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) |
16038618 | 1:4bdfa7d7e8bf | 192 | void HAL_EnableMemorySwappingBank(void); |
16038618 | 1:4bdfa7d7e8bf | 193 | void HAL_DisableMemorySwappingBank(void); |
16038618 | 1:4bdfa7d7e8bf | 194 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx */ |
16038618 | 1:4bdfa7d7e8bf | 195 | /** |
16038618 | 1:4bdfa7d7e8bf | 196 | * @} |
16038618 | 1:4bdfa7d7e8bf | 197 | */ |
16038618 | 1:4bdfa7d7e8bf | 198 | |
16038618 | 1:4bdfa7d7e8bf | 199 | /** |
16038618 | 1:4bdfa7d7e8bf | 200 | * @} |
16038618 | 1:4bdfa7d7e8bf | 201 | */ |
16038618 | 1:4bdfa7d7e8bf | 202 | /* Private types -------------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 203 | /* Private variables ---------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 204 | /** @defgroup HAL_Private_Variables HAL Private Variables |
16038618 | 1:4bdfa7d7e8bf | 205 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 206 | */ |
16038618 | 1:4bdfa7d7e8bf | 207 | /** |
16038618 | 1:4bdfa7d7e8bf | 208 | * @} |
16038618 | 1:4bdfa7d7e8bf | 209 | */ |
16038618 | 1:4bdfa7d7e8bf | 210 | /* Private constants ---------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 211 | /** @defgroup HAL_Private_Constants HAL Private Constants |
16038618 | 1:4bdfa7d7e8bf | 212 | * @{ |
16038618 | 1:4bdfa7d7e8bf | 213 | */ |
16038618 | 1:4bdfa7d7e8bf | 214 | /** |
16038618 | 1:4bdfa7d7e8bf | 215 | * @} |
16038618 | 1:4bdfa7d7e8bf | 216 | */ |
16038618 | 1:4bdfa7d7e8bf | 217 | /* Private macros ------------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 218 | /* Private functions ---------------------------------------------------------*/ |
16038618 | 1:4bdfa7d7e8bf | 219 | /** |
16038618 | 1:4bdfa7d7e8bf | 220 | * @} |
16038618 | 1:4bdfa7d7e8bf | 221 | */ |
16038618 | 1:4bdfa7d7e8bf | 222 | |
16038618 | 1:4bdfa7d7e8bf | 223 | /** |
16038618 | 1:4bdfa7d7e8bf | 224 | * @} |
16038618 | 1:4bdfa7d7e8bf | 225 | */ |
16038618 | 1:4bdfa7d7e8bf | 226 | |
16038618 | 1:4bdfa7d7e8bf | 227 | #ifdef __cplusplus |
16038618 | 1:4bdfa7d7e8bf | 228 | } |
16038618 | 1:4bdfa7d7e8bf | 229 | #endif |
16038618 | 1:4bdfa7d7e8bf | 230 | |
16038618 | 1:4bdfa7d7e8bf | 231 | #endif /* __STM32F4xx_HAL_H */ |
16038618 | 1:4bdfa7d7e8bf | 232 | |
16038618 | 1:4bdfa7d7e8bf | 233 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |