55#define __STM32F4xx_HAL_VERSION_MAIN (0x01U)
56#define __STM32F4xx_HAL_VERSION_SUB1 (0x08U)
57#define __STM32F4xx_HAL_VERSION_SUB2 (0x03U)
58#define __STM32F4xx_HAL_VERSION_RC (0x00U)
59#define __STM32F4xx_HAL_VERSION ((__STM32F4xx_HAL_VERSION_MAIN << 24U)\
60 |(__STM32F4xx_HAL_VERSION_SUB1 << 16U)\
61 |(__STM32F4xx_HAL_VERSION_SUB2 << 8U )\
62 |(__STM32F4xx_HAL_VERSION_RC))
64#define IDCODE_DEVID_MASK 0x00000FFFU
67#define SYSCFG_OFFSET (SYSCFG_BASE - PERIPH_BASE)
70#define MEMRMP_OFFSET SYSCFG_OFFSET
71#define UFB_MODE_BIT_NUMBER SYSCFG_MEMRMP_UFB_MODE_Pos
72#define UFB_MODE_BB (uint32_t)(PERIPH_BB_BASE + (MEMRMP_OFFSET * 32U) + (UFB_MODE_BIT_NUMBER * 4U))
76#define CMPCR_OFFSET (SYSCFG_OFFSET + 0x20U)
77#define CMP_PD_BIT_NUMBER SYSCFG_CMPCR_CMP_PD_Pos
78#define CMPCR_CMP_PD_BB (uint32_t)(PERIPH_BB_BASE + (CMPCR_OFFSET * 32U) + (CMP_PD_BIT_NUMBER * 4U))
82#define MCHDLYCR_OFFSET (SYSCFG_OFFSET + 0x30U)
83#define BSCKSEL_BIT_NUMBER SYSCFG_MCHDLYCR_BSCKSEL_Pos
84#define MCHDLYCR_BSCKSEL_BB (uint32_t)(PERIPH_BB_BASE + (MCHDLYCR_OFFSET * 32U) + (BSCKSEL_BIT_NUMBER * 4U))
160#if (INSTRUCTION_CACHE_ENABLE != 0U)
164#if (DATA_CACHE_ENABLE != 0U)
168#if (PREFETCH_ENABLE != 0U)
262 if (TickPriority < (1UL << __NVIC_PRIO_BITS))
393 uint32_t wait = Delay;
419 SysTick->CTRL &= ~SysTick_CTRL_TICKINT_Msk;
435 SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk;
453 return((DBGMCU->IDCODE) >> 16U);
471 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP);
480 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEP);
489 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP);
498 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOP);
507 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);
516 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBY);
547 return (READ_REG(*((uint32_t *)UID_BASE)));
556 return (READ_REG(*((uint32_t *)(UID_BASE + 4U))));
565 return (READ_REG(*((uint32_t *)(UID_BASE + 8U))));
568#if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||\
569 defined(STM32F469xx) || defined(STM32F479xx)
580void HAL_EnableMemorySwappingBank(
void)
595void HAL_DisableMemorySwappingBank(
void)
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
Sets the priority of an interrupt.
uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
Initializes the System Timer and its interrupt, and starts the System Tick Timer. Counter is in free ...
void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
Sets the priority grouping field (preemption priority and subpriority) using the required unlock sequ...
#define NVIC_PRIORITYGROUP_4
#define __HAL_FLASH_PREFETCH_BUFFER_ENABLE()
Enable the FLASH prefetch buffer.
#define __HAL_FLASH_DATA_CACHE_ENABLE()
Enable the FLASH data cache.
#define __HAL_FLASH_INSTRUCTION_CACHE_ENABLE()
Enable the FLASH instruction cache.
void HAL_MspInit(void)
Initialize the MSP.
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 ...
HAL_StatusTypeDef HAL_DeInit(void)
This function de-Initializes common part of the HAL and stops the systick. This function is optional.
void HAL_MspDeInit(void)
DeInitializes the MSP.
HAL_StatusTypeDef HAL_Init(void)
This function is used to initialize the HAL Library; it must be the first instruction to be executed ...
void HAL_EnableCompensationCell(void)
Enables the I/O Compensation Cell.
void HAL_DBGMCU_EnableDBGStandbyMode(void)
Enable the Debug Module during STANDBY mode.
void HAL_DBGMCU_DisableDBGStopMode(void)
Disable the Debug Module during STOP mode.
HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq)
Set new tick Freq.
uint32_t HAL_GetUIDw1(void)
Returns second word of the unique device identifier (UID based on 96 bits)
uint32_t HAL_GetUIDw2(void)
Returns third word of the unique device identifier (UID based on 96 bits)
void HAL_DisableCompensationCell(void)
Power-down the I/O Compensation Cell.
void HAL_DBGMCU_DisableDBGStandbyMode(void)
Disable the Debug Module during STANDBY mode.
HAL_TickFreqTypeDef HAL_GetTickFreq(void)
Return tick frequency.
void HAL_SuspendTick(void)
Suspend Tick increment.
void HAL_Delay(uint32_t Delay)
This function provides minimum delay (in milliseconds) based on variable incremented.
void HAL_IncTick(void)
This function is called to increment a global variable "uwTick" used as application time base.
void HAL_ResumeTick(void)
Resume Tick increment.
void HAL_DBGMCU_DisableDBGSleepMode(void)
Disable the Debug Module during SLEEP mode.
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
uint32_t HAL_GetTickPrio(void)
This function returns a tick priority.
void HAL_DBGMCU_EnableDBGStopMode(void)
Enable the Debug Module during STOP mode.
uint32_t HAL_GetREVID(void)
Returns the device revision identifier.
void HAL_DBGMCU_EnableDBGSleepMode(void)
Enable the Debug Module during SLEEP mode.
uint32_t HAL_GetUIDw0(void)
Returns first word of the unique device identifier (UID based on 96 bits)
uint32_t HAL_GetHalVersion(void)
Returns the HAL revision.
uint32_t HAL_GetDEVID(void)
Returns the device identifier.
#define __STM32F4xx_HAL_VERSION
#define IDCODE_DEVID_MASK
#define IS_TICKFREQ(FREQ)
HAL_TickFreqTypeDef uwTickFreq
#define __HAL_RCC_AHB1_FORCE_RESET()
#define __HAL_RCC_AHB2_RELEASE_RESET()
#define __HAL_RCC_AHB2_FORCE_RESET()
#define __HAL_RCC_AHB3_RELEASE_RESET()
#define __HAL_RCC_AHB3_FORCE_RESET()
#define __HAL_RCC_APB1_FORCE_RESET()
#define __HAL_RCC_APB2_FORCE_RESET()
#define __HAL_RCC_AHB1_RELEASE_RESET()
#define __HAL_RCC_APB1_RELEASE_RESET()
#define __HAL_RCC_APB2_RELEASE_RESET()
#define assert_param(expr)
This file contains all the functions prototypes for the HAL module driver.
#define TICK_INT_PRIORITY
HAL_StatusTypeDef
HAL Status structures definition