STM32H735xx HAL User Manual
|
HAL Control functions. More...
Functions | |
__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. | |
uint32_t | HAL_GetUIDw0 (void) |
Return the first word of the unique device identifier (UID based on 96 bits) | |
uint32_t | HAL_GetUIDw1 (void) |
Return the second word of the unique device identifier (UID based on 96 bits) | |
uint32_t | HAL_GetUIDw2 (void) |
Return the third word of the unique device identifier (UID based on 96 bits) | |
void | HAL_SYSCFG_VREFBUF_VoltageScalingConfig (uint32_t VoltageScaling) |
Configure the internal voltage reference buffer voltage scale. | |
void | HAL_SYSCFG_VREFBUF_HighImpedanceConfig (uint32_t Mode) |
Configure the internal voltage reference buffer high impedance mode. | |
void | HAL_SYSCFG_VREFBUF_TrimmingConfig (uint32_t TrimmingValue) |
Tune the Internal Voltage Reference buffer (VREFBUF). | |
HAL_StatusTypeDef | HAL_SYSCFG_EnableVREFBUF (void) |
Enable the Internal Voltage Reference buffer (VREFBUF). | |
void | HAL_SYSCFG_DisableVREFBUF (void) |
Disable the Internal Voltage Reference buffer (VREFBUF). | |
void | HAL_SYSCFG_ETHInterfaceSelect (uint32_t SYSCFG_ETHInterface) |
Ethernet PHY Interface Selection either MII or RMII. | |
void | HAL_SYSCFG_AnalogSwitchConfig (uint32_t SYSCFG_AnalogSwitch, uint32_t SYSCFG_SwitchState) |
Analog Switch control for dual analog pads. | |
void | HAL_SYSCFG_EnableBOOST (void) |
Enables the booster to reduce the total harmonic distortion of the analog switch when the supply voltage is lower than 2.7 V. | |
void | HAL_SYSCFG_DisableBOOST (void) |
Disables the booster. | |
void | HAL_SYSCFG_CM7BootAddConfig (uint32_t BootRegister, uint32_t BootAddress) |
BootCM7 address 0 configuration. | |
void | HAL_EnableCompensationCell (void) |
Enables the I/O Compensation Cell. | |
void | HAL_DisableCompensationCell (void) |
Power-down the I/O Compensation Cell. | |
void | HAL_SYSCFG_EnableIOSpeedOptimize (void) |
To Enable optimize the I/O speed when the product voltage is low. | |
void | HAL_SYSCFG_DisableIOSpeedOptimize (void) |
To Disable optimize the I/O speed when the product voltage is low. | |
void | HAL_SYSCFG_CompensationCodeSelect (uint32_t SYSCFG_CompCode) |
Code selection for the I/O Compensation cell. | |
void | HAL_SYSCFG_CompensationCodeConfig (uint32_t SYSCFG_PMOSCode, uint32_t SYSCFG_NMOSCode) |
Code selection for the I/O Compensation cell. | |
void | HAL_SYSCFG_ADC2ALT_Rout0Config (uint32_t Adc2AltRout0) |
SYSCFG ADC2 internal input alternate connection macros. |
HAL Control functions.
=============================================================================== ##### HAL Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Provide a tick value in millisecond (+) Provide a blocking delay in millisecond (+) Suspend the time base source interrupt (+) Resume the time base source interrupt (+) Get the HAL API driver version (+) Get the device identifier (+) Get the device revision identifier (+) Enable/Disable Debug module during SLEEP mode (+) Enable/Disable Debug module during STOP mode (+) Enable/Disable Debug module during STANDBY mode
__weak void HAL_Delay | ( | uint32_t | Delay | ) |
This function provides minimum delay (in milliseconds) based on variable incremented.
Delay | specifies the delay time length, in milliseconds. |
None |
Definition at line 404 of file stm32h7xx_hal.c.
References HAL_GetTick(), and uwTickFreq.
Referenced by HAL_DAC_ConfigChannel(), HAL_DACEx_SelfCalibrate(), HAL_DTS_Start(), HAL_DTS_Start_IT(), HAL_MMC_InitCard(), HAL_OPAMP_SelfCalibrate(), HAL_OPAMPEx_SelfCalibrateAll(), HAL_PCDEx_BCD_VBUSDetect(), and HAL_SD_InitCard().
void HAL_DisableCompensationCell | ( | void | ) |
Power-down the I/O Compensation Cell.
None |
Definition at line 786 of file stm32h7xx_hal.c.
void HAL_EnableCompensationCell | ( | void | ) |
Enables the I/O Compensation Cell.
None |
Definition at line 775 of file stm32h7xx_hal.c.
uint32_t HAL_GetDEVID | ( | void | ) |
Returns the device identifier.
Device | identifier |
Definition at line 474 of file stm32h7xx_hal.c.
References IDCODE_DEVID_MASK.
uint32_t HAL_GetHalVersion | ( | void | ) |
Returns the HAL revision.
version | : 0xXYZR (8bits for each decimal, R for RC) |
Definition at line 456 of file stm32h7xx_hal.c.
References __STM32H7xx_HAL_VERSION.
uint32_t HAL_GetREVID | ( | void | ) |
Returns the device revision identifier.
Device | revision identifier |
Definition at line 465 of file stm32h7xx_hal.c.
Referenced by ADC_ConfigureBoostMode(), HAL_ADC_Init(), HAL_CRYP_Init(), HAL_RCC_GetOscConfig(), HAL_RCCEx_CRSConfig(), and HAL_SAI_Init().
__weak uint32_t HAL_GetTick | ( | void | ) |
Provides a tick value in millisecond.
tick | value |
Definition at line 338 of file stm32h7xx_hal.c.
References uwTick.
Referenced by ADC_ConversionStop(), ADC_Disable(), ADC_Enable(), CRYP_AESCCM_Process(), CRYP_AESGCM_Process(), CRYP_WaitOnBUSYFlag(), CRYP_WaitOnIFEMFlag(), CRYP_WaitOnOFNEFlag(), DelayBlock_Enable(), FLASH_CRC_WaitForLastOperation(), FLASH_OB_WaitForLastOperation(), FLASH_WaitForLastOperation(), FMAC_FilterConfig(), FMAC_FilterPreload(), FMAC_Reset(), FMAC_WaitOnStartUntilTimeout(), HAL_ADC_PollForConversion(), HAL_ADC_PollForEvent(), HAL_ADCEx_InjectedPollForConversion(), HAL_ADCEx_MultiModeStop_DMA(), HAL_ADCEx_RegularMultiModeStop_DMA(), HAL_CORDIC_Calculate(), HAL_CORDIC_CalculateZO(), HAL_CRYPEx_AESCCM_GenerateAuthTAG(), HAL_CRYPEx_AESGCM_GenerateAuthTAG(), HAL_DAC_ConfigChannel(), HAL_Delay(), HAL_DFSDM_ChannelCkabStart(), HAL_DFSDM_ChannelCkabStart_IT(), HAL_DFSDM_ChannelPollForCkab(), HAL_DFSDM_ChannelPollForScd(), HAL_DFSDM_FilterPollForInjConversion(), HAL_DFSDM_FilterPollForRegConversion(), HAL_DMA2D_Abort(), HAL_DMA2D_CLUTLoading_Abort(), HAL_DMA2D_CLUTLoading_Suspend(), HAL_DMA2D_PollForTransfer(), HAL_DMA2D_Suspend(), HAL_DMA_Abort(), HAL_DMA_Init(), HAL_DMA_PollForTransfer(), HAL_DTS_Start(), HAL_DTS_Start_IT(), HAL_ETH_Init(), HAL_ETH_ReadPHYRegister(), HAL_ETH_Transmit(), HAL_ETH_WritePHYRegister(), HAL_FDCAN_EnterPowerDownMode(), HAL_FDCAN_ExitPowerDownMode(), HAL_FDCAN_Init(), HAL_FDCAN_TT_ConfigOperation(), HAL_FMAC_PollFilterData(), HAL_I2C_IsDeviceReady(), HAL_I2C_Master_Receive(), HAL_I2C_Master_Transmit(), HAL_I2C_Mem_Read(), HAL_I2C_Mem_Read_DMA(), HAL_I2C_Mem_Read_IT(), HAL_I2C_Mem_Write(), HAL_I2C_Mem_Write_DMA(), HAL_I2C_Mem_Write_IT(), HAL_I2C_Slave_Receive(), HAL_I2C_Slave_Transmit(), HAL_I2S_DMAPause(), HAL_I2SEx_TransmitReceive(), HAL_IRDA_Receive(), HAL_IRDA_Transmit(), HAL_IWDG_Init(), HAL_MDMA_Abort(), HAL_MDMA_Init(), HAL_MDMA_PollForTransfer(), HAL_MMC_AwakeDevice(), HAL_MMC_ConfigSpeedBusOperation(), HAL_MMC_EraseSequence(), HAL_MMC_GetCardExtCSD(), HAL_MMC_ReadBlocks(), HAL_MMC_Sanitize(), HAL_MMC_SleepDevice(), HAL_MMC_WriteBlocks(), HAL_NAND_Read_Page_16b(), HAL_NAND_Read_Page_8b(), HAL_NAND_Read_SpareArea_16b(), HAL_NAND_Read_SpareArea_8b(), HAL_NAND_Write_Page_16b(), HAL_NAND_Write_Page_8b(), HAL_NAND_Write_SpareArea_16b(), HAL_NAND_Write_SpareArea_8b(), HAL_NOR_GetStatus(), HAL_OSPI_Abort(), HAL_OSPI_AutoPolling(), HAL_OSPI_AutoPolling_IT(), HAL_OSPI_Command(), HAL_OSPI_Command_IT(), HAL_OSPI_HyperbusCfg(), HAL_OSPI_HyperbusCmd(), HAL_OSPI_Init(), HAL_OSPI_MemoryMapped(), HAL_OSPI_Receive(), HAL_OSPI_Transmit(), HAL_PCDEx_BCD_VBUSDetect(), HAL_PSSI_Receive(), HAL_PSSI_Transmit(), HAL_PWREx_ConfigSupply(), HAL_PWREx_ControlVoltageScaling(), HAL_PWREx_DisableBkUpReg(), HAL_PWREx_DisableUSBReg(), HAL_PWREx_EnableBkUpReg(), HAL_PWREx_EnableUSBReg(), HAL_RCC_ClockConfig(), HAL_RCC_DeInit(), HAL_RCC_OscConfig(), HAL_RCCEx_CRSWaitSynchronization(), HAL_RCCEx_PeriphCLKConfig(), HAL_RNG_DeInit(), HAL_RNG_GenerateRandomNumber(), HAL_RNG_Init(), HAL_RNGEx_SetConfig(), HAL_RTC_DeactivateAlarm(), HAL_RTC_DeInit(), HAL_RTC_PollForAlarmAEvent(), HAL_RTC_SetAlarm(), HAL_RTC_SetAlarm_IT(), HAL_RTC_WaitForSynchro(), HAL_RTCEx_DeactivateWakeUpTimer(), HAL_RTCEx_PollForAlarmBEvent(), HAL_RTCEx_PollForTamper1Event(), HAL_RTCEx_PollForTamper2Event(), HAL_RTCEx_PollForTamper3Event(), HAL_RTCEx_PollForTimeStampEvent(), HAL_RTCEx_PollForWakeUpTimerEvent(), HAL_RTCEx_SetSmoothCalib(), HAL_RTCEx_SetSynchroShift(), HAL_RTCEx_SetWakeUpTimer(), HAL_RTCEx_SetWakeUpTimer_IT(), HAL_SAI_Receive(), HAL_SAI_Transmit(), HAL_SAI_Transmit_DMA(), HAL_SD_ConfigSpeedBusOperation(), HAL_SD_Init(), HAL_SD_ReadBlocks(), HAL_SD_WriteBlocks(), HAL_SMARTCARD_Receive(), HAL_SMARTCARD_Transmit(), HAL_SMBUS_IsDeviceReady(), HAL_SPDIFRX_ReceiveCtrlFlow(), HAL_SPDIFRX_ReceiveDataFlow(), HAL_SPI_Receive(), HAL_SPI_Transmit(), HAL_SPI_TransmitReceive(), HAL_SWPMI_Init(), HAL_SWPMI_Receive(), HAL_SWPMI_Transmit(), HAL_SYSCFG_EnableVREFBUF(), HAL_TIMEx_ReArmBreakInput(), HAL_UART_Receive(), HAL_UART_Transmit(), HAL_UARTEx_ReceiveToIdle(), HAL_UARTEx_StopModeWakeUpSourceConfig(), HAL_USART_Receive(), HAL_USART_Transmit(), HAL_USART_TransmitReceive(), HASH_WaitOnFlagUntilTimeout(), I2C_IsErrorOccurred(), I2C_WaitOnFlagUntilTimeout(), I2C_WaitOnRXNEFlagUntilTimeout(), I2C_WaitOnSTOPFlagUntilTimeout(), I2C_WaitOnTXISFlagUntilTimeout(), I2S_WaitFlagStateUntilTimeout(), IRDA_CheckIdleState(), IRDA_WaitOnFlagUntilTimeout(), MMC_ReadExtCSD(), PSSI_WaitOnStatusUntilTimeout(), RCCEx_PLL2_Config(), RCCEx_PLL3_Config(), RTC_EnterInitMode(), SD_FindSCR(), SD_HighSpeed(), SD_InitCard(), SD_PowerON(), SD_SendSDStatus(), SMARTCARD_CheckIdleState(), SMARTCARD_WaitOnFlagUntilTimeout(), SMBUS_WaitOnFlagUntilTimeout(), SPDIFRX_WaitOnFlagUntilTimeout(), SPI_WaitOnFlagUntilTimeout(), SWPMI_DMATransmitCplt(), SWPMI_WaitOnFlagSetUntilTimeout(), UART_CheckIdleState(), UART_WaitOnFlagUntilTimeout(), USART_CheckIdleState(), and USART_WaitOnFlagUntilTimeout().
HAL_TickFreqTypeDef HAL_GetTickFreq | ( | void | ) |
Return tick frequency.
tick | period in Hz |
Definition at line 388 of file stm32h7xx_hal.c.
References uwTickFreq.
uint32_t HAL_GetTickPrio | ( | void | ) |
This function returns a tick priority.
tick | priority |
Definition at line 347 of file stm32h7xx_hal.c.
References uwTickPrio.
uint32_t HAL_GetUIDw0 | ( | void | ) |
Return the first word of the unique device identifier (UID based on 96 bits)
Device | identifier |
Definition at line 483 of file stm32h7xx_hal.c.
uint32_t HAL_GetUIDw1 | ( | void | ) |
Return the second word of the unique device identifier (UID based on 96 bits)
Device | identifier |
Definition at line 492 of file stm32h7xx_hal.c.
uint32_t HAL_GetUIDw2 | ( | void | ) |
Return the third word of the unique device identifier (UID based on 96 bits)
Device | identifier |
Definition at line 501 of file stm32h7xx_hal.c.
__weak void HAL_IncTick | ( | void | ) |
This function is called to increment a global variable "uwTick" used as application time base.
None |
Definition at line 327 of file stm32h7xx_hal.c.
References uwTick, and uwTickFreq.
__weak void HAL_ResumeTick | ( | void | ) |
Resume Tick increment.
None |
Definition at line 446 of file stm32h7xx_hal.c.
HAL_StatusTypeDef HAL_SetTickFreq | ( | HAL_TickFreqTypeDef | Freq | ) |
Set new tick Freq.
Status |
Definition at line 356 of file stm32h7xx_hal.c.
References assert_param, HAL_InitTick(), IS_TICKFREQ, uwTickFreq, and uwTickPrio.
__weak void HAL_SuspendTick | ( | void | ) |
Suspend Tick increment.
None |
Definition at line 430 of file stm32h7xx_hal.c.
void HAL_SYSCFG_ADC2ALT_Rout0Config | ( | uint32_t | Adc2AltRout0 | ) |
SYSCFG ADC2 internal input alternate connection macros.
Adc2AltRout0 | This parameter can be a value of :
|
Definition at line 883 of file stm32h7xx_hal.c.
References assert_param, and IS_SYSCFG_ADC2ALT_ROUT0.
void HAL_SYSCFG_AnalogSwitchConfig | ( | uint32_t | SYSCFG_AnalogSwitch, |
uint32_t | SYSCFG_SwitchState | ||
) |
Analog Switch control for dual analog pads.
SYSCFG_AnalogSwitch,: | Selects the analog pad This parameter can be one or a combination of the following values:
|
SYSCFG_SwitchState,: | Open or Close the analog switch between dual pads (PXn and PXn_C) This parameter can be one or a combination of the following values:
|
None |
Definition at line 630 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_ANALOG_SWITCH, and IS_SYSCFG_SWITCH_STATE.
void HAL_SYSCFG_CM7BootAddConfig | ( | uint32_t | BootRegister, |
uint32_t | BootAddress | ||
) |
BootCM7 address 0 configuration.
BootRegister | :Specifies the Boot Address register (Address0 or Address1) This parameter can be one of the following values:
|
BootAddress | :Specifies the CM7 Boot Address to be loaded in Address0 or Address1 |
None |
Definition at line 676 of file stm32h7xx_hal.c.
References assert_param, IS_SYSCFG_BOOT_ADDRESS, IS_SYSCFG_BOOT_REGISTER, and SYSCFG_BOOT_ADDR0.
void HAL_SYSCFG_CompensationCodeConfig | ( | uint32_t | SYSCFG_PMOSCode, |
uint32_t | SYSCFG_NMOSCode | ||
) |
Code selection for the I/O Compensation cell.
SYSCFG_PMOSCode,: | PMOS compensation code This code is applied to the I/O compensation cell when the CS bit of the SYSCFG_CMPCR is set |
SYSCFG_NMOSCode,: | NMOS compensation code This code is applied to the I/O compensation cell when the CS bit of the SYSCFG_CMPCR is set |
None |
Definition at line 849 of file stm32h7xx_hal.c.
References assert_param, and IS_SYSCFG_CODE_CONFIG.
void HAL_SYSCFG_CompensationCodeSelect | ( | uint32_t | SYSCFG_CompCode | ) |
Code selection for the I/O Compensation cell.
SYSCFG_CompCode,: | Selects the code to be applied for the I/O compensation cell This parameter can be one of the following values:
|
None |
Definition at line 832 of file stm32h7xx_hal.c.
References assert_param, and IS_SYSCFG_CODE_SELECT.
void HAL_SYSCFG_DisableBOOST | ( | void | ) |
Disables the booster.
None |
Definition at line 660 of file stm32h7xx_hal.c.
void HAL_SYSCFG_DisableIOSpeedOptimize | ( | void | ) |
To Disable optimize the I/O speed when the product voltage is low.
None |
Definition at line 815 of file stm32h7xx_hal.c.
void HAL_SYSCFG_DisableVREFBUF | ( | void | ) |
Disable the Internal Voltage Reference buffer (VREFBUF).
None |
Definition at line 586 of file stm32h7xx_hal.c.
void HAL_SYSCFG_EnableBOOST | ( | void | ) |
Enables the booster to reduce the total harmonic distortion of the analog switch when the supply voltage is lower than 2.7 V.
None |
Definition at line 648 of file stm32h7xx_hal.c.
void HAL_SYSCFG_EnableIOSpeedOptimize | ( | void | ) |
To Enable optimize the I/O speed when the product voltage is low.
None |
Definition at line 799 of file stm32h7xx_hal.c.
HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF | ( | void | ) |
Enable the Internal Voltage Reference buffer (VREFBUF).
HAL_OK/HAL_TIMEOUT |
Definition at line 560 of file stm32h7xx_hal.c.
References HAL_GetTick(), and VREFBUF_TIMEOUT_VALUE.
void HAL_SYSCFG_ETHInterfaceSelect | ( | uint32_t | SYSCFG_ETHInterface | ) |
Ethernet PHY Interface Selection either MII or RMII.
SYSCFG_ETHInterface,: | Selects the Ethernet PHY interface This parameter can be one of the following values:
|
None |
Definition at line 600 of file stm32h7xx_hal.c.
References assert_param, and IS_SYSCFG_ETHERNET_CONFIG.
Referenced by HAL_ETH_Init().
void HAL_SYSCFG_VREFBUF_HighImpedanceConfig | ( | uint32_t | Mode | ) |
Configure the internal voltage reference buffer high impedance mode.
Mode | specifies the high impedance mode This parameter can be one of the following values:
|
None |
Definition at line 536 of file stm32h7xx_hal.c.
References assert_param, and IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE.
void HAL_SYSCFG_VREFBUF_TrimmingConfig | ( | uint32_t | TrimmingValue | ) |
Tune the Internal Voltage Reference buffer (VREFBUF).
None |
Definition at line 548 of file stm32h7xx_hal.c.
References assert_param, and IS_SYSCFG_VREFBUF_TRIMMING.
void HAL_SYSCFG_VREFBUF_VoltageScalingConfig | ( | uint32_t | VoltageScaling | ) |
Configure the internal voltage reference buffer voltage scale.
VoltageScaling | specifies the output voltage to achieve This parameter can be one of the following values:
|
None |
Definition at line 520 of file stm32h7xx_hal.c.
References assert_param, and IS_SYSCFG_VREFBUF_VOLTAGE_SCALE.