Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_DISCO_F429ZI/stm32f4xx_hal.h@110:165afa46840b, 2015-11-25 (annotated)
- Committer:
- Kojto
- Date:
- Wed Nov 25 13:21:40 2015 +0000
- Revision:
- 110:165afa46840b
Release 110 of the mbed library
Changes:
- new platforms - STM32F410R, DISCO_F429ZI, DISCO_F469NI
- Nucleo L476 - gcc and uvision template
- k22,k64f targets - ADC channels A addition
- EFM32 - bugfixes in sleep, serial and spi
- Delta DFCM NNN40 - pinnames update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 110:165afa46840b | 1 | /** |
Kojto | 110:165afa46840b | 2 | ****************************************************************************** |
Kojto | 110:165afa46840b | 3 | * @file stm32f4xx_hal.h |
Kojto | 110:165afa46840b | 4 | * @author MCD Application Team |
Kojto | 110:165afa46840b | 5 | * @version V1.4.1 |
Kojto | 110:165afa46840b | 6 | * @date 09-October-2015 |
Kojto | 110:165afa46840b | 7 | * @brief This file contains all the functions prototypes for the HAL |
Kojto | 110:165afa46840b | 8 | * module driver. |
Kojto | 110:165afa46840b | 9 | ****************************************************************************** |
Kojto | 110:165afa46840b | 10 | * @attention |
Kojto | 110:165afa46840b | 11 | * |
Kojto | 110:165afa46840b | 12 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
Kojto | 110:165afa46840b | 13 | * |
Kojto | 110:165afa46840b | 14 | * Redistribution and use in source and binary forms, with or without modification, |
Kojto | 110:165afa46840b | 15 | * are permitted provided that the following conditions are met: |
Kojto | 110:165afa46840b | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 110:165afa46840b | 17 | * this list of conditions and the following disclaimer. |
Kojto | 110:165afa46840b | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 110:165afa46840b | 19 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 110:165afa46840b | 20 | * and/or other materials provided with the distribution. |
Kojto | 110:165afa46840b | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 110:165afa46840b | 22 | * may be used to endorse or promote products derived from this software |
Kojto | 110:165afa46840b | 23 | * without specific prior written permission. |
Kojto | 110:165afa46840b | 24 | * |
Kojto | 110:165afa46840b | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 110:165afa46840b | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 110:165afa46840b | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 110:165afa46840b | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 110:165afa46840b | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 110:165afa46840b | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 110:165afa46840b | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 110:165afa46840b | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 110:165afa46840b | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 110:165afa46840b | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 110:165afa46840b | 35 | * |
Kojto | 110:165afa46840b | 36 | ****************************************************************************** |
Kojto | 110:165afa46840b | 37 | */ |
Kojto | 110:165afa46840b | 38 | |
Kojto | 110:165afa46840b | 39 | /* Define to prevent recursive inclusion -------------------------------------*/ |
Kojto | 110:165afa46840b | 40 | #ifndef __STM32F4xx_HAL_H |
Kojto | 110:165afa46840b | 41 | #define __STM32F4xx_HAL_H |
Kojto | 110:165afa46840b | 42 | |
Kojto | 110:165afa46840b | 43 | #ifdef __cplusplus |
Kojto | 110:165afa46840b | 44 | extern "C" { |
Kojto | 110:165afa46840b | 45 | #endif |
Kojto | 110:165afa46840b | 46 | |
Kojto | 110:165afa46840b | 47 | /* Includes ------------------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 48 | #include "stm32f4xx_hal_conf.h" |
Kojto | 110:165afa46840b | 49 | |
Kojto | 110:165afa46840b | 50 | /** @addtogroup STM32F4xx_HAL_Driver |
Kojto | 110:165afa46840b | 51 | * @{ |
Kojto | 110:165afa46840b | 52 | */ |
Kojto | 110:165afa46840b | 53 | |
Kojto | 110:165afa46840b | 54 | /** @addtogroup HAL |
Kojto | 110:165afa46840b | 55 | * @{ |
Kojto | 110:165afa46840b | 56 | */ |
Kojto | 110:165afa46840b | 57 | |
Kojto | 110:165afa46840b | 58 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 59 | /* Exported constants --------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 60 | /* Exported macro ------------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 61 | /** @defgroup HAL_Exported_Macros HAL Exported Macros |
Kojto | 110:165afa46840b | 62 | * @{ |
Kojto | 110:165afa46840b | 63 | */ |
Kojto | 110:165afa46840b | 64 | |
Kojto | 110:165afa46840b | 65 | /** @brief Freeze/Unfreeze Peripherals in Debug mode |
Kojto | 110:165afa46840b | 66 | */ |
Kojto | 110:165afa46840b | 67 | #define __HAL_DBGMCU_FREEZE_TIM2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
Kojto | 110:165afa46840b | 68 | #define __HAL_DBGMCU_FREEZE_TIM3() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
Kojto | 110:165afa46840b | 69 | #define __HAL_DBGMCU_FREEZE_TIM4() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM4_STOP)) |
Kojto | 110:165afa46840b | 70 | #define __HAL_DBGMCU_FREEZE_TIM5() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM5_STOP)) |
Kojto | 110:165afa46840b | 71 | #define __HAL_DBGMCU_FREEZE_TIM6() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
Kojto | 110:165afa46840b | 72 | #define __HAL_DBGMCU_FREEZE_TIM7() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
Kojto | 110:165afa46840b | 73 | #define __HAL_DBGMCU_FREEZE_TIM12() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM12_STOP)) |
Kojto | 110:165afa46840b | 74 | #define __HAL_DBGMCU_FREEZE_TIM13() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM13_STOP)) |
Kojto | 110:165afa46840b | 75 | #define __HAL_DBGMCU_FREEZE_TIM14() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
Kojto | 110:165afa46840b | 76 | #define __HAL_DBGMCU_FREEZE_RTC() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
Kojto | 110:165afa46840b | 77 | #define __HAL_DBGMCU_FREEZE_WWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
Kojto | 110:165afa46840b | 78 | #define __HAL_DBGMCU_FREEZE_IWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
Kojto | 110:165afa46840b | 79 | #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
Kojto | 110:165afa46840b | 80 | #define __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) |
Kojto | 110:165afa46840b | 81 | #define __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) |
Kojto | 110:165afa46840b | 82 | #define __HAL_DBGMCU_FREEZE_CAN1() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN1_STOP)) |
Kojto | 110:165afa46840b | 83 | #define __HAL_DBGMCU_FREEZE_CAN2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN2_STOP)) |
Kojto | 110:165afa46840b | 84 | #define __HAL_DBGMCU_FREEZE_TIM1() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
Kojto | 110:165afa46840b | 85 | #define __HAL_DBGMCU_FREEZE_TIM8() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM8_STOP)) |
Kojto | 110:165afa46840b | 86 | #define __HAL_DBGMCU_FREEZE_TIM9() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM9_STOP)) |
Kojto | 110:165afa46840b | 87 | #define __HAL_DBGMCU_FREEZE_TIM10() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM10_STOP)) |
Kojto | 110:165afa46840b | 88 | #define __HAL_DBGMCU_FREEZE_TIM11() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM11_STOP)) |
Kojto | 110:165afa46840b | 89 | |
Kojto | 110:165afa46840b | 90 | #define __HAL_DBGMCU_UNFREEZE_TIM2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
Kojto | 110:165afa46840b | 91 | #define __HAL_DBGMCU_UNFREEZE_TIM3() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
Kojto | 110:165afa46840b | 92 | #define __HAL_DBGMCU_UNFREEZE_TIM4() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM4_STOP)) |
Kojto | 110:165afa46840b | 93 | #define __HAL_DBGMCU_UNFREEZE_TIM5() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM5_STOP)) |
Kojto | 110:165afa46840b | 94 | #define __HAL_DBGMCU_UNFREEZE_TIM6() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
Kojto | 110:165afa46840b | 95 | #define __HAL_DBGMCU_UNFREEZE_TIM7() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
Kojto | 110:165afa46840b | 96 | #define __HAL_DBGMCU_UNFREEZE_TIM12() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM12_STOP)) |
Kojto | 110:165afa46840b | 97 | #define __HAL_DBGMCU_UNFREEZE_TIM13() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM13_STOP)) |
Kojto | 110:165afa46840b | 98 | #define __HAL_DBGMCU_UNFREEZE_TIM14() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
Kojto | 110:165afa46840b | 99 | #define __HAL_DBGMCU_UNFREEZE_RTC() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
Kojto | 110:165afa46840b | 100 | #define __HAL_DBGMCU_UNFREEZE_WWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
Kojto | 110:165afa46840b | 101 | #define __HAL_DBGMCU_UNFREEZE_IWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
Kojto | 110:165afa46840b | 102 | #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
Kojto | 110:165afa46840b | 103 | #define __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) |
Kojto | 110:165afa46840b | 104 | #define __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) |
Kojto | 110:165afa46840b | 105 | #define __HAL_DBGMCU_UNFREEZE_CAN1() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN1_STOP)) |
Kojto | 110:165afa46840b | 106 | #define __HAL_DBGMCU_UNFREEZE_CAN2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN2_STOP)) |
Kojto | 110:165afa46840b | 107 | #define __HAL_DBGMCU_UNFREEZE_TIM1() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
Kojto | 110:165afa46840b | 108 | #define __HAL_DBGMCU_UNFREEZE_TIM8() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM8_STOP)) |
Kojto | 110:165afa46840b | 109 | #define __HAL_DBGMCU_UNFREEZE_TIM9() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM9_STOP)) |
Kojto | 110:165afa46840b | 110 | #define __HAL_DBGMCU_UNFREEZE_TIM10() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM10_STOP)) |
Kojto | 110:165afa46840b | 111 | #define __HAL_DBGMCU_UNFREEZE_TIM11() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM11_STOP)) |
Kojto | 110:165afa46840b | 112 | |
Kojto | 110:165afa46840b | 113 | /** @brief Main Flash memory mapped at 0x00000000 |
Kojto | 110:165afa46840b | 114 | */ |
Kojto | 110:165afa46840b | 115 | #define __HAL_SYSCFG_REMAPMEMORY_FLASH() (SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE)) |
Kojto | 110:165afa46840b | 116 | |
Kojto | 110:165afa46840b | 117 | /** @brief System Flash memory mapped at 0x00000000 |
Kojto | 110:165afa46840b | 118 | */ |
Kojto | 110:165afa46840b | 119 | #define __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
Kojto | 110:165afa46840b | 120 | SYSCFG->MEMRMP |= SYSCFG_MEMRMP_MEM_MODE_0;\ |
Kojto | 110:165afa46840b | 121 | }while(0); |
Kojto | 110:165afa46840b | 122 | |
Kojto | 110:165afa46840b | 123 | /** @brief Embedded SRAM mapped at 0x00000000 |
Kojto | 110:165afa46840b | 124 | */ |
Kojto | 110:165afa46840b | 125 | #define __HAL_SYSCFG_REMAPMEMORY_SRAM() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
Kojto | 110:165afa46840b | 126 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_0 | SYSCFG_MEMRMP_MEM_MODE_1);\ |
Kojto | 110:165afa46840b | 127 | }while(0); |
Kojto | 110:165afa46840b | 128 | |
Kojto | 110:165afa46840b | 129 | #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx)|| defined(STM32F417xx) |
Kojto | 110:165afa46840b | 130 | /** @brief FSMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 |
Kojto | 110:165afa46840b | 131 | */ |
Kojto | 110:165afa46840b | 132 | #define __HAL_SYSCFG_REMAPMEMORY_FSMC() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
Kojto | 110:165afa46840b | 133 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_1);\ |
Kojto | 110:165afa46840b | 134 | }while(0); |
Kojto | 110:165afa46840b | 135 | #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx */ |
Kojto | 110:165afa46840b | 136 | |
Kojto | 110:165afa46840b | 137 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||\ |
Kojto | 110:165afa46840b | 138 | defined(STM32F469xx) || defined(STM32F479xx) |
Kojto | 110:165afa46840b | 139 | /** @brief FMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 |
Kojto | 110:165afa46840b | 140 | */ |
Kojto | 110:165afa46840b | 141 | #define __HAL_SYSCFG_REMAPMEMORY_FMC() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
Kojto | 110:165afa46840b | 142 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_1);\ |
Kojto | 110:165afa46840b | 143 | }while(0); |
Kojto | 110:165afa46840b | 144 | |
Kojto | 110:165afa46840b | 145 | /** @brief FMC/SDRAM Bank 1 and 2 mapped at 0x00000000 |
Kojto | 110:165afa46840b | 146 | */ |
Kojto | 110:165afa46840b | 147 | #define __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_MEM_MODE);\ |
Kojto | 110:165afa46840b | 148 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_MEM_MODE_2);\ |
Kojto | 110:165afa46840b | 149 | }while(0); |
Kojto | 110:165afa46840b | 150 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ |
Kojto | 110:165afa46840b | 151 | |
Kojto | 110:165afa46840b | 152 | #if defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) |
Kojto | 110:165afa46840b | 153 | /** @defgroup Cortex_Lockup_Enable Cortex Lockup Enable |
Kojto | 110:165afa46840b | 154 | * @{ |
Kojto | 110:165afa46840b | 155 | */ |
Kojto | 110:165afa46840b | 156 | /** @brief SYSCFG Break Lockup lock |
Kojto | 110:165afa46840b | 157 | * Enables and locks the connection of Cortex-M4 LOCKUP (Hardfault) output to TIM1/8 input |
Kojto | 110:165afa46840b | 158 | * @note The selected configuration is locked and can be unlocked by system reset |
Kojto | 110:165afa46840b | 159 | */ |
Kojto | 110:165afa46840b | 160 | #define __HAL_SYSCFG_BREAK_PVD_LOCK() do {SYSCFG->CFGR2 &= ~(SYSCFG_CFGR2_PVD_LOCK); \ |
Kojto | 110:165afa46840b | 161 | SYSCFG->CFGR2 |= SYSCFG_CFGR2_PVD_LOCK; \ |
Kojto | 110:165afa46840b | 162 | }while(0) |
Kojto | 110:165afa46840b | 163 | /** |
Kojto | 110:165afa46840b | 164 | * @} |
Kojto | 110:165afa46840b | 165 | */ |
Kojto | 110:165afa46840b | 166 | |
Kojto | 110:165afa46840b | 167 | /** @defgroup PVD_Lock_Enable PVD Lock |
Kojto | 110:165afa46840b | 168 | * @{ |
Kojto | 110:165afa46840b | 169 | */ |
Kojto | 110:165afa46840b | 170 | /** @brief SYSCFG Break PVD lock |
Kojto | 110:165afa46840b | 171 | * Enables and locks the PVD connection with Timer1/8 Break Input, , as well as the PVDE and PLS[2:0] in the PWR_CR register |
Kojto | 110:165afa46840b | 172 | * @note The selected configuration is locked and can be unlocked by system reset |
Kojto | 110:165afa46840b | 173 | */ |
Kojto | 110:165afa46840b | 174 | #define __HAL_SYSCFG_BREAK_LOCKUP_LOCK() do {SYSCFG->CFGR2 &= ~(SYSCFG_CFGR2_LOCKUP_LOCK); \ |
Kojto | 110:165afa46840b | 175 | SYSCFG->CFGR2 |= SYSCFG_CFGR2_LOCKUP_LOCK; \ |
Kojto | 110:165afa46840b | 176 | }while(0) |
Kojto | 110:165afa46840b | 177 | /** |
Kojto | 110:165afa46840b | 178 | * @} |
Kojto | 110:165afa46840b | 179 | */ |
Kojto | 110:165afa46840b | 180 | #endif /* STM32F410Tx || STM32F410Cx || STM32F410Rx */ |
Kojto | 110:165afa46840b | 181 | /** |
Kojto | 110:165afa46840b | 182 | * @} |
Kojto | 110:165afa46840b | 183 | */ |
Kojto | 110:165afa46840b | 184 | |
Kojto | 110:165afa46840b | 185 | /* Exported functions --------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 186 | /** @addtogroup HAL_Exported_Functions |
Kojto | 110:165afa46840b | 187 | * @{ |
Kojto | 110:165afa46840b | 188 | */ |
Kojto | 110:165afa46840b | 189 | /** @addtogroup HAL_Exported_Functions_Group1 |
Kojto | 110:165afa46840b | 190 | * @{ |
Kojto | 110:165afa46840b | 191 | */ |
Kojto | 110:165afa46840b | 192 | /* Initialization and de-initialization functions ******************************/ |
Kojto | 110:165afa46840b | 193 | HAL_StatusTypeDef HAL_Init(void); |
Kojto | 110:165afa46840b | 194 | HAL_StatusTypeDef HAL_DeInit(void); |
Kojto | 110:165afa46840b | 195 | void HAL_MspInit(void); |
Kojto | 110:165afa46840b | 196 | void HAL_MspDeInit(void); |
Kojto | 110:165afa46840b | 197 | HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority); |
Kojto | 110:165afa46840b | 198 | /** |
Kojto | 110:165afa46840b | 199 | * @} |
Kojto | 110:165afa46840b | 200 | */ |
Kojto | 110:165afa46840b | 201 | |
Kojto | 110:165afa46840b | 202 | /** @addtogroup HAL_Exported_Functions_Group2 |
Kojto | 110:165afa46840b | 203 | * @{ |
Kojto | 110:165afa46840b | 204 | */ |
Kojto | 110:165afa46840b | 205 | /* Peripheral Control functions ************************************************/ |
Kojto | 110:165afa46840b | 206 | void HAL_IncTick(void); |
Kojto | 110:165afa46840b | 207 | void HAL_Delay(__IO uint32_t Delay); |
Kojto | 110:165afa46840b | 208 | uint32_t HAL_GetTick(void); |
Kojto | 110:165afa46840b | 209 | void HAL_SuspendTick(void); |
Kojto | 110:165afa46840b | 210 | void HAL_ResumeTick(void); |
Kojto | 110:165afa46840b | 211 | uint32_t HAL_GetHalVersion(void); |
Kojto | 110:165afa46840b | 212 | uint32_t HAL_GetREVID(void); |
Kojto | 110:165afa46840b | 213 | uint32_t HAL_GetDEVID(void); |
Kojto | 110:165afa46840b | 214 | void HAL_DBGMCU_EnableDBGSleepMode(void); |
Kojto | 110:165afa46840b | 215 | void HAL_DBGMCU_DisableDBGSleepMode(void); |
Kojto | 110:165afa46840b | 216 | void HAL_DBGMCU_EnableDBGStopMode(void); |
Kojto | 110:165afa46840b | 217 | void HAL_DBGMCU_DisableDBGStopMode(void); |
Kojto | 110:165afa46840b | 218 | void HAL_DBGMCU_EnableDBGStandbyMode(void); |
Kojto | 110:165afa46840b | 219 | void HAL_DBGMCU_DisableDBGStandbyMode(void); |
Kojto | 110:165afa46840b | 220 | void HAL_EnableCompensationCell(void); |
Kojto | 110:165afa46840b | 221 | void HAL_DisableCompensationCell(void); |
Kojto | 110:165afa46840b | 222 | #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||\ |
Kojto | 110:165afa46840b | 223 | defined(STM32F469xx) || defined(STM32F479xx) |
Kojto | 110:165afa46840b | 224 | void HAL_EnableMemorySwappingBank(void); |
Kojto | 110:165afa46840b | 225 | void HAL_DisableMemorySwappingBank(void); |
Kojto | 110:165afa46840b | 226 | #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */ |
Kojto | 110:165afa46840b | 227 | /** |
Kojto | 110:165afa46840b | 228 | * @} |
Kojto | 110:165afa46840b | 229 | */ |
Kojto | 110:165afa46840b | 230 | |
Kojto | 110:165afa46840b | 231 | /** |
Kojto | 110:165afa46840b | 232 | * @} |
Kojto | 110:165afa46840b | 233 | */ |
Kojto | 110:165afa46840b | 234 | /* Private types -------------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 235 | /* Private variables ---------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 236 | /** @defgroup HAL_Private_Variables HAL Private Variables |
Kojto | 110:165afa46840b | 237 | * @{ |
Kojto | 110:165afa46840b | 238 | */ |
Kojto | 110:165afa46840b | 239 | /** |
Kojto | 110:165afa46840b | 240 | * @} |
Kojto | 110:165afa46840b | 241 | */ |
Kojto | 110:165afa46840b | 242 | /* Private constants ---------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 243 | /** @defgroup HAL_Private_Constants HAL Private Constants |
Kojto | 110:165afa46840b | 244 | * @{ |
Kojto | 110:165afa46840b | 245 | */ |
Kojto | 110:165afa46840b | 246 | /** |
Kojto | 110:165afa46840b | 247 | * @} |
Kojto | 110:165afa46840b | 248 | */ |
Kojto | 110:165afa46840b | 249 | /* Private macros ------------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 250 | /* Private functions ---------------------------------------------------------*/ |
Kojto | 110:165afa46840b | 251 | /** |
Kojto | 110:165afa46840b | 252 | * @} |
Kojto | 110:165afa46840b | 253 | */ |
Kojto | 110:165afa46840b | 254 | |
Kojto | 110:165afa46840b | 255 | /** |
Kojto | 110:165afa46840b | 256 | * @} |
Kojto | 110:165afa46840b | 257 | */ |
Kojto | 110:165afa46840b | 258 | |
Kojto | 110:165afa46840b | 259 | #ifdef __cplusplus |
Kojto | 110:165afa46840b | 260 | } |
Kojto | 110:165afa46840b | 261 | #endif |
Kojto | 110:165afa46840b | 262 | |
Kojto | 110:165afa46840b | 263 | #endif /* __STM32F4xx_HAL_H */ |
Kojto | 110:165afa46840b | 264 | |
Kojto | 110:165afa46840b | 265 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |