The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_NUCLEO_F767ZI/stm32f7xx_hal.h@122:f9eeca106725, 2016-07-07 (annotated)
- Committer:
- Kojto
- Date:
- Thu Jul 07 14:34:11 2016 +0100
- Revision:
- 122:f9eeca106725
Release 122 of the mbed library
Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 122:f9eeca106725 | 1 | /** |
Kojto | 122:f9eeca106725 | 2 | ****************************************************************************** |
Kojto | 122:f9eeca106725 | 3 | * @file stm32f7xx_hal.h |
Kojto | 122:f9eeca106725 | 4 | * @author MCD Application Team |
Kojto | 122:f9eeca106725 | 5 | * @version V1.1.0 |
Kojto | 122:f9eeca106725 | 6 | * @date 22-April-2016 |
Kojto | 122:f9eeca106725 | 7 | * @brief This file contains all the functions prototypes for the HAL |
Kojto | 122:f9eeca106725 | 8 | * module driver. |
Kojto | 122:f9eeca106725 | 9 | ****************************************************************************** |
Kojto | 122:f9eeca106725 | 10 | * @attention |
Kojto | 122:f9eeca106725 | 11 | * |
Kojto | 122:f9eeca106725 | 12 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
Kojto | 122:f9eeca106725 | 13 | * |
Kojto | 122:f9eeca106725 | 14 | * Redistribution and use in source and binary forms, with or without modification, |
Kojto | 122:f9eeca106725 | 15 | * are permitted provided that the following conditions are met: |
Kojto | 122:f9eeca106725 | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 122:f9eeca106725 | 17 | * this list of conditions and the following disclaimer. |
Kojto | 122:f9eeca106725 | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 122:f9eeca106725 | 19 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 122:f9eeca106725 | 20 | * and/or other materials provided with the distribution. |
Kojto | 122:f9eeca106725 | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 122:f9eeca106725 | 22 | * may be used to endorse or promote products derived from this software |
Kojto | 122:f9eeca106725 | 23 | * without specific prior written permission. |
Kojto | 122:f9eeca106725 | 24 | * |
Kojto | 122:f9eeca106725 | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 122:f9eeca106725 | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 122:f9eeca106725 | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 122:f9eeca106725 | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 122:f9eeca106725 | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 122:f9eeca106725 | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 122:f9eeca106725 | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 122:f9eeca106725 | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 122:f9eeca106725 | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 122:f9eeca106725 | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 122:f9eeca106725 | 35 | * |
Kojto | 122:f9eeca106725 | 36 | ****************************************************************************** |
Kojto | 122:f9eeca106725 | 37 | */ |
Kojto | 122:f9eeca106725 | 38 | |
Kojto | 122:f9eeca106725 | 39 | /* Define to prevent recursive inclusion -------------------------------------*/ |
Kojto | 122:f9eeca106725 | 40 | #ifndef __STM32F7xx_HAL_H |
Kojto | 122:f9eeca106725 | 41 | #define __STM32F7xx_HAL_H |
Kojto | 122:f9eeca106725 | 42 | |
Kojto | 122:f9eeca106725 | 43 | #ifdef __cplusplus |
Kojto | 122:f9eeca106725 | 44 | extern "C" { |
Kojto | 122:f9eeca106725 | 45 | #endif |
Kojto | 122:f9eeca106725 | 46 | |
Kojto | 122:f9eeca106725 | 47 | /* Includes ------------------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 48 | #include "stm32f7xx_hal_conf.h" |
Kojto | 122:f9eeca106725 | 49 | |
Kojto | 122:f9eeca106725 | 50 | /** @addtogroup STM32F7xx_HAL_Driver |
Kojto | 122:f9eeca106725 | 51 | * @{ |
Kojto | 122:f9eeca106725 | 52 | */ |
Kojto | 122:f9eeca106725 | 53 | |
Kojto | 122:f9eeca106725 | 54 | /** @addtogroup HAL |
Kojto | 122:f9eeca106725 | 55 | * @{ |
Kojto | 122:f9eeca106725 | 56 | */ |
Kojto | 122:f9eeca106725 | 57 | |
Kojto | 122:f9eeca106725 | 58 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 59 | /* Exported constants --------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 60 | /** @defgroup SYSCFG_Exported_Constants SYSCFG Exported Constants |
Kojto | 122:f9eeca106725 | 61 | * @{ |
Kojto | 122:f9eeca106725 | 62 | */ |
Kojto | 122:f9eeca106725 | 63 | |
Kojto | 122:f9eeca106725 | 64 | /** @defgroup SYSCFG_BootMode Boot Mode |
Kojto | 122:f9eeca106725 | 65 | * @{ |
Kojto | 122:f9eeca106725 | 66 | */ |
Kojto | 122:f9eeca106725 | 67 | #define SYSCFG_MEM_BOOT_ADD0 ((uint32_t)0x00000000U) |
Kojto | 122:f9eeca106725 | 68 | #define SYSCFG_MEM_BOOT_ADD1 SYSCFG_MEMRMP_MEM_BOOT |
Kojto | 122:f9eeca106725 | 69 | /** |
Kojto | 122:f9eeca106725 | 70 | * @} |
Kojto | 122:f9eeca106725 | 71 | */ |
Kojto | 122:f9eeca106725 | 72 | |
Kojto | 122:f9eeca106725 | 73 | /** |
Kojto | 122:f9eeca106725 | 74 | * @} |
Kojto | 122:f9eeca106725 | 75 | */ |
Kojto | 122:f9eeca106725 | 76 | |
Kojto | 122:f9eeca106725 | 77 | /* Exported macro ------------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 78 | /** @defgroup HAL_Exported_Macros HAL Exported Macros |
Kojto | 122:f9eeca106725 | 79 | * @{ |
Kojto | 122:f9eeca106725 | 80 | */ |
Kojto | 122:f9eeca106725 | 81 | |
Kojto | 122:f9eeca106725 | 82 | /** @brief Freeze/Unfreeze Peripherals in Debug mode |
Kojto | 122:f9eeca106725 | 83 | */ |
Kojto | 122:f9eeca106725 | 84 | #define __HAL_DBGMCU_FREEZE_TIM2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
Kojto | 122:f9eeca106725 | 85 | #define __HAL_DBGMCU_FREEZE_TIM3() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
Kojto | 122:f9eeca106725 | 86 | #define __HAL_DBGMCU_FREEZE_TIM4() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM4_STOP)) |
Kojto | 122:f9eeca106725 | 87 | #define __HAL_DBGMCU_FREEZE_TIM5() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM5_STOP)) |
Kojto | 122:f9eeca106725 | 88 | #define __HAL_DBGMCU_FREEZE_TIM6() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
Kojto | 122:f9eeca106725 | 89 | #define __HAL_DBGMCU_FREEZE_TIM7() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
Kojto | 122:f9eeca106725 | 90 | #define __HAL_DBGMCU_FREEZE_TIM12() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM12_STOP)) |
Kojto | 122:f9eeca106725 | 91 | #define __HAL_DBGMCU_FREEZE_TIM13() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM13_STOP)) |
Kojto | 122:f9eeca106725 | 92 | #define __HAL_DBGMCU_FREEZE_TIM14() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
Kojto | 122:f9eeca106725 | 93 | #define __HAL_DBGMCU_FREEZE_LPTIM1() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_LPTIM1_STOP)) |
Kojto | 122:f9eeca106725 | 94 | #define __HAL_DBGMCU_FREEZE_RTC() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
Kojto | 122:f9eeca106725 | 95 | #define __HAL_DBGMCU_FREEZE_WWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
Kojto | 122:f9eeca106725 | 96 | #define __HAL_DBGMCU_FREEZE_IWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
Kojto | 122:f9eeca106725 | 97 | #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 98 | #define __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 99 | #define __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 100 | #define __HAL_DBGMCU_FREEZE_I2C4_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C4_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 101 | #define __HAL_DBGMCU_FREEZE_CAN1() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN1_STOP)) |
Kojto | 122:f9eeca106725 | 102 | #define __HAL_DBGMCU_FREEZE_CAN2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN2_STOP)) |
Kojto | 122:f9eeca106725 | 103 | #define __HAL_DBGMCU_FREEZE_TIM1() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
Kojto | 122:f9eeca106725 | 104 | #define __HAL_DBGMCU_FREEZE_TIM8() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM8_STOP)) |
Kojto | 122:f9eeca106725 | 105 | #define __HAL_DBGMCU_FREEZE_TIM9() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM9_STOP)) |
Kojto | 122:f9eeca106725 | 106 | #define __HAL_DBGMCU_FREEZE_TIM10() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM10_STOP)) |
Kojto | 122:f9eeca106725 | 107 | #define __HAL_DBGMCU_FREEZE_TIM11() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM11_STOP)) |
Kojto | 122:f9eeca106725 | 108 | |
Kojto | 122:f9eeca106725 | 109 | #define __HAL_DBGMCU_UNFREEZE_TIM2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
Kojto | 122:f9eeca106725 | 110 | #define __HAL_DBGMCU_UNFREEZE_TIM3() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
Kojto | 122:f9eeca106725 | 111 | #define __HAL_DBGMCU_UNFREEZE_TIM4() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM4_STOP)) |
Kojto | 122:f9eeca106725 | 112 | #define __HAL_DBGMCU_UNFREEZE_TIM5() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM5_STOP)) |
Kojto | 122:f9eeca106725 | 113 | #define __HAL_DBGMCU_UNFREEZE_TIM6() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
Kojto | 122:f9eeca106725 | 114 | #define __HAL_DBGMCU_UNFREEZE_TIM7() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
Kojto | 122:f9eeca106725 | 115 | #define __HAL_DBGMCU_UNFREEZE_TIM12() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM12_STOP)) |
Kojto | 122:f9eeca106725 | 116 | #define __HAL_DBGMCU_UNFREEZE_TIM13() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM13_STOP)) |
Kojto | 122:f9eeca106725 | 117 | #define __HAL_DBGMCU_UNFREEZE_TIM14() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
Kojto | 122:f9eeca106725 | 118 | #define __HAL_DBGMCU_UNFREEZE_LPTIM1() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_LPTIM1_STOP)) |
Kojto | 122:f9eeca106725 | 119 | #define __HAL_DBGMCU_UNFREEZE_RTC() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
Kojto | 122:f9eeca106725 | 120 | #define __HAL_DBGMCU_UNFREEZE_WWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
Kojto | 122:f9eeca106725 | 121 | #define __HAL_DBGMCU_UNFREEZE_IWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
Kojto | 122:f9eeca106725 | 122 | #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 123 | #define __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 124 | #define __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C3_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 125 | #define __HAL_DBGMCU_UNFREEZE_I2C4_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C4_SMBUS_TIMEOUT)) |
Kojto | 122:f9eeca106725 | 126 | #define __HAL_DBGMCU_UNFREEZE_CAN1() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN1_STOP)) |
Kojto | 122:f9eeca106725 | 127 | #define __HAL_DBGMCU_UNFREEZE_CAN2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN2_STOP)) |
Kojto | 122:f9eeca106725 | 128 | #define __HAL_DBGMCU_UNFREEZE_TIM1() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
Kojto | 122:f9eeca106725 | 129 | #define __HAL_DBGMCU_UNFREEZE_TIM8() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM8_STOP)) |
Kojto | 122:f9eeca106725 | 130 | #define __HAL_DBGMCU_UNFREEZE_TIM9() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM9_STOP)) |
Kojto | 122:f9eeca106725 | 131 | #define __HAL_DBGMCU_UNFREEZE_TIM10() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM10_STOP)) |
Kojto | 122:f9eeca106725 | 132 | #define __HAL_DBGMCU_UNFREEZE_TIM11() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM11_STOP)) |
Kojto | 122:f9eeca106725 | 133 | |
Kojto | 122:f9eeca106725 | 134 | |
Kojto | 122:f9eeca106725 | 135 | /** @brief FMC (NOR/RAM) mapped at 0x60000000 and SDRAM mapped at 0xC0000000 |
Kojto | 122:f9eeca106725 | 136 | */ |
Kojto | 122:f9eeca106725 | 137 | #define __HAL_SYSCFG_REMAPMEMORY_FMC() (SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_SWP_FMC)) |
Kojto | 122:f9eeca106725 | 138 | |
Kojto | 122:f9eeca106725 | 139 | |
Kojto | 122:f9eeca106725 | 140 | /** @brief FMC/SDRAM mapped at 0x60000000 (NOR/RAM) mapped at 0xC0000000 |
Kojto | 122:f9eeca106725 | 141 | */ |
Kojto | 122:f9eeca106725 | 142 | #define __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM() do {SYSCFG->MEMRMP &= ~(SYSCFG_MEMRMP_SWP_FMC);\ |
Kojto | 122:f9eeca106725 | 143 | SYSCFG->MEMRMP |= (SYSCFG_MEMRMP_SWP_FMC_0);\ |
Kojto | 122:f9eeca106725 | 144 | }while(0); |
Kojto | 122:f9eeca106725 | 145 | /** |
Kojto | 122:f9eeca106725 | 146 | * @brief Return the memory boot mapping as configured by user. |
Kojto | 122:f9eeca106725 | 147 | * @retval The boot mode as configured by user. The returned value can be one |
Kojto | 122:f9eeca106725 | 148 | * of the following values: |
Kojto | 122:f9eeca106725 | 149 | * @arg @ref SYSCFG_MEM_BOOT_ADD0 |
Kojto | 122:f9eeca106725 | 150 | * @arg @ref SYSCFG_MEM_BOOT_ADD1 |
Kojto | 122:f9eeca106725 | 151 | */ |
Kojto | 122:f9eeca106725 | 152 | #define __HAL_SYSCFG_GET_BOOT_MODE() READ_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_MEM_BOOT) |
Kojto | 122:f9eeca106725 | 153 | |
Kojto | 122:f9eeca106725 | 154 | #if defined (STM32F765xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) || defined (STM32F779xx) |
Kojto | 122:f9eeca106725 | 155 | /** @brief SYSCFG Break Cortex-M7 Lockup lock. |
Kojto | 122:f9eeca106725 | 156 | * Enable and lock the connection of Cortex-M7 LOCKUP (Hardfault) output to TIM1/8 Break input. |
Kojto | 122:f9eeca106725 | 157 | * @note The selected configuration is locked and can be unlocked only by system reset. |
Kojto | 122:f9eeca106725 | 158 | */ |
Kojto | 122:f9eeca106725 | 159 | #define __HAL_SYSCFG_BREAK_LOCKUP_LOCK() SET_BIT(SYSCFG->CBR, SYSCFG_CBR_CLL) |
Kojto | 122:f9eeca106725 | 160 | |
Kojto | 122:f9eeca106725 | 161 | /** @brief SYSCFG Break PVD lock. |
Kojto | 122:f9eeca106725 | 162 | * Enable and lock the PVD connection to Timer1/8 Break input, as well as the PVDE and PLS[2:0] in the PWR_CR1 register. |
Kojto | 122:f9eeca106725 | 163 | * @note The selected configuration is locked and can be unlocked only by system reset. |
Kojto | 122:f9eeca106725 | 164 | */ |
Kojto | 122:f9eeca106725 | 165 | #define __HAL_SYSCFG_BREAK_PVD_LOCK() SET_BIT(SYSCFG->CBR, SYSCFG_CBR_PVDL) |
Kojto | 122:f9eeca106725 | 166 | #endif /* STM32F765xx || STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx */ |
Kojto | 122:f9eeca106725 | 167 | |
Kojto | 122:f9eeca106725 | 168 | /** |
Kojto | 122:f9eeca106725 | 169 | * @} |
Kojto | 122:f9eeca106725 | 170 | */ |
Kojto | 122:f9eeca106725 | 171 | |
Kojto | 122:f9eeca106725 | 172 | /* Exported functions --------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 173 | /** @addtogroup HAL_Exported_Functions |
Kojto | 122:f9eeca106725 | 174 | * @{ |
Kojto | 122:f9eeca106725 | 175 | */ |
Kojto | 122:f9eeca106725 | 176 | /** @addtogroup HAL_Exported_Functions_Group1 |
Kojto | 122:f9eeca106725 | 177 | * @{ |
Kojto | 122:f9eeca106725 | 178 | */ |
Kojto | 122:f9eeca106725 | 179 | /* Initialization and de-initialization functions ******************************/ |
Kojto | 122:f9eeca106725 | 180 | HAL_StatusTypeDef HAL_Init(void); |
Kojto | 122:f9eeca106725 | 181 | HAL_StatusTypeDef HAL_DeInit(void); |
Kojto | 122:f9eeca106725 | 182 | void HAL_MspInit(void); |
Kojto | 122:f9eeca106725 | 183 | void HAL_MspDeInit(void); |
Kojto | 122:f9eeca106725 | 184 | HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority); |
Kojto | 122:f9eeca106725 | 185 | /** |
Kojto | 122:f9eeca106725 | 186 | * @} |
Kojto | 122:f9eeca106725 | 187 | */ |
Kojto | 122:f9eeca106725 | 188 | |
Kojto | 122:f9eeca106725 | 189 | /** @addtogroup HAL_Exported_Functions_Group2 |
Kojto | 122:f9eeca106725 | 190 | * @{ |
Kojto | 122:f9eeca106725 | 191 | */ |
Kojto | 122:f9eeca106725 | 192 | /* Peripheral Control functions ************************************************/ |
Kojto | 122:f9eeca106725 | 193 | void HAL_IncTick(void); |
Kojto | 122:f9eeca106725 | 194 | void HAL_Delay(__IO uint32_t Delay); |
Kojto | 122:f9eeca106725 | 195 | uint32_t HAL_GetTick(void); |
Kojto | 122:f9eeca106725 | 196 | void HAL_SuspendTick(void); |
Kojto | 122:f9eeca106725 | 197 | void HAL_ResumeTick(void); |
Kojto | 122:f9eeca106725 | 198 | uint32_t HAL_GetHalVersion(void); |
Kojto | 122:f9eeca106725 | 199 | uint32_t HAL_GetREVID(void); |
Kojto | 122:f9eeca106725 | 200 | uint32_t HAL_GetDEVID(void); |
Kojto | 122:f9eeca106725 | 201 | void HAL_DBGMCU_EnableDBGSleepMode(void); |
Kojto | 122:f9eeca106725 | 202 | void HAL_DBGMCU_DisableDBGSleepMode(void); |
Kojto | 122:f9eeca106725 | 203 | void HAL_DBGMCU_EnableDBGStopMode(void); |
Kojto | 122:f9eeca106725 | 204 | void HAL_DBGMCU_DisableDBGStopMode(void); |
Kojto | 122:f9eeca106725 | 205 | void HAL_DBGMCU_EnableDBGStandbyMode(void); |
Kojto | 122:f9eeca106725 | 206 | void HAL_DBGMCU_DisableDBGStandbyMode(void); |
Kojto | 122:f9eeca106725 | 207 | void HAL_EnableCompensationCell(void); |
Kojto | 122:f9eeca106725 | 208 | void HAL_DisableCompensationCell(void); |
Kojto | 122:f9eeca106725 | 209 | void HAL_EnableFMCMemorySwapping(void); |
Kojto | 122:f9eeca106725 | 210 | void HAL_DisableFMCMemorySwapping(void); |
Kojto | 122:f9eeca106725 | 211 | #if defined (STM32F765xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) || defined (STM32F779xx) |
Kojto | 122:f9eeca106725 | 212 | void HAL_EnableMemorySwappingBank(void); |
Kojto | 122:f9eeca106725 | 213 | void HAL_DisableMemorySwappingBank(void); |
Kojto | 122:f9eeca106725 | 214 | #endif /* STM32F765xx || STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx */ |
Kojto | 122:f9eeca106725 | 215 | /** |
Kojto | 122:f9eeca106725 | 216 | * @} |
Kojto | 122:f9eeca106725 | 217 | */ |
Kojto | 122:f9eeca106725 | 218 | |
Kojto | 122:f9eeca106725 | 219 | /** |
Kojto | 122:f9eeca106725 | 220 | * @} |
Kojto | 122:f9eeca106725 | 221 | */ |
Kojto | 122:f9eeca106725 | 222 | /* Private types -------------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 223 | /* Private variables ---------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 224 | /** @defgroup HAL_Private_Variables HAL Private Variables |
Kojto | 122:f9eeca106725 | 225 | * @{ |
Kojto | 122:f9eeca106725 | 226 | */ |
Kojto | 122:f9eeca106725 | 227 | /** |
Kojto | 122:f9eeca106725 | 228 | * @} |
Kojto | 122:f9eeca106725 | 229 | */ |
Kojto | 122:f9eeca106725 | 230 | /* Private constants ---------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 231 | /** @defgroup HAL_Private_Constants HAL Private Constants |
Kojto | 122:f9eeca106725 | 232 | * @{ |
Kojto | 122:f9eeca106725 | 233 | */ |
Kojto | 122:f9eeca106725 | 234 | /** |
Kojto | 122:f9eeca106725 | 235 | * @} |
Kojto | 122:f9eeca106725 | 236 | */ |
Kojto | 122:f9eeca106725 | 237 | /* Private macros ------------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 238 | /* Private functions ---------------------------------------------------------*/ |
Kojto | 122:f9eeca106725 | 239 | /** |
Kojto | 122:f9eeca106725 | 240 | * @} |
Kojto | 122:f9eeca106725 | 241 | */ |
Kojto | 122:f9eeca106725 | 242 | |
Kojto | 122:f9eeca106725 | 243 | /** |
Kojto | 122:f9eeca106725 | 244 | * @} |
Kojto | 122:f9eeca106725 | 245 | */ |
Kojto | 122:f9eeca106725 | 246 | |
Kojto | 122:f9eeca106725 | 247 | #ifdef __cplusplus |
Kojto | 122:f9eeca106725 | 248 | } |
Kojto | 122:f9eeca106725 | 249 | #endif |
Kojto | 122:f9eeca106725 | 250 | |
Kojto | 122:f9eeca106725 | 251 | #endif /* __STM32F7xx_HAL_H */ |
Kojto | 122:f9eeca106725 | 252 | |
Kojto | 122:f9eeca106725 | 253 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |