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_F756ZG/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal.h@138:093f2bd7b9eb, 2017-03-14 (annotated)
- Committer:
- <>
- Date:
- Tue Mar 14 16:20:51 2017 +0000
- Revision:
- 138:093f2bd7b9eb
- Parent:
- 135:176b8275d35d
- Child:
- 139:856d2700e60b
Release 138 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3716: fix for issue #3715: correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files https://github.com/ARMmbed/mbed-os/pull/3716
3741: STM32 remove warning in hal_tick_32b.c file https://github.com/ARMmbed/mbed-os/pull/3741
3780: STM32L4 : Fix GPIO G port compatibility https://github.com/ARMmbed/mbed-os/pull/3780
3831: NCS36510: SPISLAVE enabled (Conflict resolved) https://github.com/ARMmbed/mbed-os/pull/3831
3836: Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os https://github.com/ARMmbed/mbed-os/pull/3836
3840: STM32: gpio SPEED - always set High Speed by default https://github.com/ARMmbed/mbed-os/pull/3840
3844: STM32 GPIO: Typo correction. Update comment (GPIO_IP_WITHOUT_BRR) https://github.com/ARMmbed/mbed-os/pull/3844
3850: STM32: change spi error to debug warning https://github.com/ARMmbed/mbed-os/pull/3850
3860: Define GPIO_IP_WITHOUT_BRR for xDot platform https://github.com/ARMmbed/mbed-os/pull/3860
3880: DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated https://github.com/ARMmbed/mbed-os/pull/3880
3795: Fix pwm period calc https://github.com/ARMmbed/mbed-os/pull/3795
3828: STM32 CAN API: correct format and type https://github.com/ARMmbed/mbed-os/pull/3828
3842: TARGET_NRF: corrected spi_init() to properly handle re-initialization https://github.com/ARMmbed/mbed-os/pull/3842
3843: STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz) https://github.com/ARMmbed/mbed-os/pull/3843
3879: NUCLEO_F446ZE: Add missing AnalogIn pins on PF_3, PF_5 and PF_10. https://github.com/ARMmbed/mbed-os/pull/3879
3902: Fix heap and stack size for NUCLEO_F746ZG https://github.com/ARMmbed/mbed-os/pull/3902
3829: can_write(): return error code when no tx mailboxes are available https://github.com/ARMmbed/mbed-os/pull/3829
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 |
<> | 135:176b8275d35d | 5 | * @version V1.1.2 |
<> | 135:176b8275d35d | 6 | * @date 23-September-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****/ |