Macros | Functions | Variables
stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c File Reference

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

#include "stm32f4xx_hal.h"
Include dependency graph for stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:

Go to the source code of this file.

Macros

#define __STM32F4xx_HAL_VERSION
 
#define __STM32F4xx_HAL_VERSION_MAIN   (0x01U)
 STM32F4xx HAL Driver version number V1.7.10. More...
 
#define __STM32F4xx_HAL_VERSION_RC   (0x00U)
 
#define __STM32F4xx_HAL_VERSION_SUB1   (0x07U)
 
#define __STM32F4xx_HAL_VERSION_SUB2   (0x0AU)
 
#define BSCKSEL_BIT_NUMBER   SYSCFG_MCHDLYCR_BSCKSEL_Pos
 
#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 CMPCR_OFFSET   (SYSCFG_OFFSET + 0x20U)
 
#define IDCODE_DEVID_MASK   0x00000FFFU
 
#define MCHDLYCR_BSCKSEL_BB   (uint32_t)(PERIPH_BB_BASE + (MCHDLYCR_OFFSET * 32U) + (BSCKSEL_BIT_NUMBER * 4U))
 
#define MCHDLYCR_OFFSET   (SYSCFG_OFFSET + 0x30U)
 
#define MEMRMP_OFFSET   SYSCFG_OFFSET
 
#define SYSCFG_OFFSET   (SYSCFG_BASE - PERIPH_BASE)
 
#define UFB_MODE_BB   (uint32_t)(PERIPH_BB_BASE + (MEMRMP_OFFSET * 32U) + (UFB_MODE_BIT_NUMBER * 4U))
 
#define UFB_MODE_BIT_NUMBER   SYSCFG_MEMRMP_UFB_MODE_Pos
 

Functions

void HAL_DBGMCU_DisableDBGSleepMode (void)
 Disable the Debug Module during SLEEP mode. More...
 
void HAL_DBGMCU_DisableDBGStandbyMode (void)
 Disable the Debug Module during STANDBY mode. More...
 
void HAL_DBGMCU_DisableDBGStopMode (void)
 Disable the Debug Module during STOP mode. More...
 
void HAL_DBGMCU_EnableDBGSleepMode (void)
 Enable the Debug Module during SLEEP mode. More...
 
void HAL_DBGMCU_EnableDBGStandbyMode (void)
 Enable the Debug Module during STANDBY mode. More...
 
void HAL_DBGMCU_EnableDBGStopMode (void)
 Enable the Debug Module during STOP mode. More...
 
HAL_StatusTypeDef HAL_DeInit (void)
 This function de-Initializes common part of the HAL and stops the systick. This function is optional.
More...
 
void HAL_Delay (uint32_t Delay)
 This function provides minimum delay (in milliseconds) based on variable incremented. More...
 
void HAL_DisableCompensationCell (void)
 Power-down the I/O Compensation Cell. More...
 
void HAL_EnableCompensationCell (void)
 Enables the I/O Compensation Cell. More...
 
uint32_t HAL_GetDEVID (void)
 Returns the device identifier. More...
 
uint32_t HAL_GetHalVersion (void)
 Returns the HAL revision. More...
 
uint32_t HAL_GetREVID (void)
 Returns the device revision identifier. More...
 
uint32_t HAL_GetTick (void)
 Provides a tick value in millisecond. More...
 
HAL_TickFreqTypeDef HAL_GetTickFreq (void)
 Return tick frequency. More...
 
uint32_t HAL_GetTickPrio (void)
 This function returns a tick priority. More...
 
uint32_t HAL_GetUIDw0 (void)
 Returns first word of the unique device identifier (UID based on 96 bits) More...
 
uint32_t HAL_GetUIDw1 (void)
 Returns second word of the unique device identifier (UID based on 96 bits) More...
 
uint32_t HAL_GetUIDw2 (void)
 Returns third word of the unique device identifier (UID based on 96 bits) More...
 
void HAL_IncTick (void)
 This function is called to increment a global variable "uwTick" used as application time base. More...
 
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. Configures the SysTick to generate an interrupt each 1 millisecond, which is clocked by the HSI (at this stage, the clock is not yet configured and thus the system is running from the internal HSI at 16 MHz). Set NVIC Group Priority to 4. Calls the HAL_MspInit() callback function defined in user file "stm32f4xx_hal_msp.c" to do the global low level hardware initialization. More...
 
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority)
 This function configures the source of the time base. The time source is configured to have 1ms time base with a dedicated Tick interrupt priority. More...
 
void HAL_MspDeInit (void)
 DeInitializes the MSP. More...
 
void HAL_MspInit (void)
 Initialize the MSP. More...
 
void HAL_ResumeTick (void)
 Resume Tick increment. More...
 
HAL_StatusTypeDef HAL_SetTickFreq (HAL_TickFreqTypeDef Freq)
 Set new tick Freq. More...
 
void HAL_SuspendTick (void)
 Suspend Tick increment. More...
 

Variables

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

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. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32f407/stm32f407g-disc1/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:01