TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library Functions. More...

Modules

 TM_DELAY_Timer_Functions
 Software timer functions.
 

Macros

#define TM_DELAY_Time()   (TM_Time)
 Gets the TM_Time variable value. More...
 
#define TM_DELAY_SetTime(time)   (TM_Time = (time))
 Sets value for TM_Time variable. More...
 
#define TM_DELAY_Time2()   (TM_Time2)
 Gets the TM_Time2 variable value. More...
 
#define TM_DELAY_SetTime2(time)   (TM_Time2 = (time))
 Sets value for TM_Time variable. More...
 

Functions

uint32_t TM_DELAY_Init (void)
 Initializes delay functions. More...
 
__STATIC_INLINE void Delay (__IO uint32_t micros)
 Delays for amount of micro seconds. More...
 
__STATIC_INLINE void Delayms (uint32_t millis)
 Delays for amount of milli seconds. More...
 
void TM_DELAY_1msHandler (void)
 User function, called each 1ms when interrupt from timer happen. More...
 

Detailed Description

Library Functions.

Macro Definition Documentation

#define TM_DELAY_SetTime (   time)    (TM_Time = (time))

Sets value for TM_Time variable.

Parameters
timeTime in milliseconds
Return values
None
#define TM_DELAY_SetTime2 (   time)    (TM_Time2 = (time))

Sets value for TM_Time variable.

Parameters
timeTime in milliseconds
Return values
None
Note
This is not meant for public use
#define TM_DELAY_Time ( )    (TM_Time)

Gets the TM_Time variable value.

Parameters
None
Return values
Currenttime in milliseconds
#define TM_DELAY_Time2 ( )    (TM_Time2)

Gets the TM_Time2 variable value.

Parameters
None
Return values
Currenttime in milliseconds
Note
This is not meant for public use

Function Documentation

__STATIC_INLINE void Delay ( __IO uint32_t  micros)

Delays for amount of micro seconds.

Parameters
microsNumber of microseconds for delay
Return values
None
__STATIC_INLINE void Delayms ( uint32_t  millis)

Delays for amount of milli seconds.

Parameters
millisNumber of milliseconds for delay
Return values
None
void TM_DELAY_1msHandler ( void  )

User function, called each 1ms when interrupt from timer happen.

Note
Here user should put things which has to be called periodically
Parameters
None
Return values
None
Note
With __weak parameter to prevent link errors if not defined by user
uint32_t TM_DELAY_Init ( void  )

Initializes delay functions.

Parameters
None
Return values
DWTcounter start status
  • 0: DWT counter did not start, delay for microseconds won't work
  • > 0: DWT counter works OK, delay is ready to use