STM32F439xx HAL User Manual
Defines | Functions | Variables
stm32f4xx_hal.c File Reference

HAL module driver. This is the common part of the HAL initialization. More...

#include "stm32f4xx_hal.h"

Go to the source code of this file.

Defines

#define __STM32F4xx_HAL_VERSION_MAIN   (0x01U)
 STM32F4xx HAL Driver version number V1.7.2.
#define __STM32F4xx_HAL_VERSION_SUB1   (0x07U)
#define __STM32F4xx_HAL_VERSION_SUB2   (0x02U)
#define __STM32F4xx_HAL_VERSION_RC   (0x00U)
#define __STM32F4xx_HAL_VERSION
#define IDCODE_DEVID_MASK   0x00000FFFU
#define SYSCFG_OFFSET   (SYSCFG_BASE - PERIPH_BASE)
#define MEMRMP_OFFSET   SYSCFG_OFFSET
#define UFB_MODE_BIT_NUMBER   SYSCFG_MEMRMP_UFB_MODE_Pos
#define UFB_MODE_BB   (uint32_t)(PERIPH_BB_BASE + (MEMRMP_OFFSET * 32U) + (UFB_MODE_BIT_NUMBER * 4U))
#define CMPCR_OFFSET   (SYSCFG_OFFSET + 0x20U)
#define CMP_PD_BIT_NUMBER   SYSCFG_CMPCR_CMP_PD_Pos
#define CMPCR_CMP_PD_BB   (uint32_t)(PERIPH_BB_BASE + (CMPCR_OFFSET * 32U) + (CMP_PD_BIT_NUMBER * 4U))
#define MCHDLYCR_OFFSET   (SYSCFG_OFFSET + 0x30U)
#define BSCKSEL_BIT_NUMBER   SYSCFG_MCHDLYCR_BSCKSEL_Pos
#define MCHDLYCR_BSCKSEL_BB   (uint32_t)(PERIPH_BB_BASE + (MCHDLYCR_OFFSET * 32U) + (BSCKSEL_BIT_NUMBER * 4U))

Functions

HAL_StatusTypeDef HAL_Init (void)
 This function is used to initialize the HAL Library; it must be the first instruction to be executed in the main program (before to call any other HAL function), it performs the following: Configure the Flash prefetch, instruction and Data caches.
HAL_StatusTypeDef HAL_DeInit (void)
 This function de-Initializes common part of the HAL and stops the systick.
__weak void HAL_MspInit (void)
 Initialize the MSP.
__weak void HAL_MspDeInit (void)
 DeInitializes the MSP.
__weak HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority)
 This function configures the source of the time base.
__weak void HAL_IncTick (void)
 This function is called to increment a global variable "uwTick" used as application time base.
__weak uint32_t HAL_GetTick (void)
 Provides a tick value in millisecond.
uint32_t HAL_GetTickPrio (void)
 This function returns a tick priority.
HAL_StatusTypeDef HAL_SetTickFreq (HAL_TickFreqTypeDef Freq)
 Set new tick Freq.
HAL_TickFreqTypeDef HAL_GetTickFreq (void)
 Return tick frequency.
__weak void HAL_Delay (uint32_t Delay)
 This function provides minimum delay (in milliseconds) based on variable incremented.
__weak void HAL_SuspendTick (void)
 Suspend Tick increment.
__weak void HAL_ResumeTick (void)
 Resume Tick increment.
uint32_t HAL_GetHalVersion (void)
 Returns the HAL revision.
uint32_t HAL_GetREVID (void)
 Returns the device revision identifier.
uint32_t HAL_GetDEVID (void)
 Returns the device identifier.
void HAL_DBGMCU_EnableDBGSleepMode (void)
 Enable the Debug Module during SLEEP mode.
void HAL_DBGMCU_DisableDBGSleepMode (void)
 Disable the Debug Module during SLEEP mode.
void HAL_DBGMCU_EnableDBGStopMode (void)
 Enable the Debug Module during STOP mode.
void HAL_DBGMCU_DisableDBGStopMode (void)
 Disable the Debug Module during STOP mode.
void HAL_DBGMCU_EnableDBGStandbyMode (void)
 Enable the Debug Module during STANDBY mode.
void HAL_DBGMCU_DisableDBGStandbyMode (void)
 Disable the Debug Module during STANDBY mode.
void HAL_EnableCompensationCell (void)
 Enables the I/O Compensation Cell.
void HAL_DisableCompensationCell (void)
 Power-down the I/O Compensation Cell.
void HAL_GetUID (uint32_t *UID)
 Return the unique device identifier (UID based on 96 bits)
void HAL_EnableMemorySwappingBank (void)
 Enables the Internal FLASH Bank Swapping.
void HAL_DisableMemorySwappingBank (void)
 Disables the Internal FLASH Bank Swapping.

Variables

__IO uint32_t uwTick
uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS)
HAL_TickFreqTypeDef uwTickFreq = HAL_TICK_FREQ_DEFAULT

Detailed Description

HAL module driver. This is the common part of the HAL initialization.

Author:
MCD Application Team
  ==============================================================================
                     ##### How to use this driver #####
  ==============================================================================
    [..]
    The common HAL driver contains a set of generic and common APIs that can be
    used by the PPP peripheral drivers and the user to start using the HAL. 
    [..]
    The HAL contains two APIs' categories: 
         (+) Common HAL APIs
         (+) Services HAL APIs

  
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f4xx_hal.c.