Library Functions.
More...
Library Functions.
| #define TM_DELAY_SetTime |
( |
|
time | ) |
(TM_Time = (time)) |
Sets value for TM_Time variable.
- Parameters
-
- Return values
-
| #define TM_DELAY_SetTime2 |
( |
|
time | ) |
(TM_Time2 = (time)) |
Sets value for TM_Time variable.
- Parameters
-
- Return values
-
- Note
- This is not meant for public use
| #define TM_DELAY_Time |
( |
| ) |
(TM_Time) |
Gets the TM_Time variable value.
- Parameters
-
- Return values
-
| Current | time in milliseconds |
| #define TM_DELAY_Time2 |
( |
| ) |
(TM_Time2) |
Gets the TM_Time2 variable value.
- Parameters
-
- Return values
-
| Current | time in milliseconds |
- Note
- This is not meant for public use
| __STATIC_INLINE void Delay |
( |
__IO uint32_t |
micros | ) |
|
Delays for amount of micro seconds.
- Parameters
-
| micros | Number of microseconds for delay |
- Return values
-
| __STATIC_INLINE void Delayms |
( |
uint32_t |
millis | ) |
|
Delays for amount of milli seconds.
- Parameters
-
| millis | Number of milliseconds for delay |
- Return values
-
| 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
-
- Return values
-
- Note
- With __weak parameter to prevent link errors if not defined by user
| uint32_t TM_DELAY_Init |
( |
void |
| ) |
|
Initializes delay functions.
- Parameters
-
- Return values
-
| DWT | counter start status
- 0: DWT counter did not start, delay for microseconds won't work
- > 0: DWT counter works OK, delay is ready to use
|