Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Functions | |
| uint32_t | TIM_GetPClock (uint32_t timernum) |
| Get peripheral clock of each timer controller. | |
| uint32_t | TIM_ConverUSecToVal (uint32_t timernum, uint32_t usec) |
| Convert a time to a timer count value. | |
| uint32_t | TIM_ConverPtrToTimeNum (LPC_TIM_TypeDef *TIMx) |
| Convert a timer register pointer to a timer number. | |
Function Documentation
| uint32_t TIM_ConverPtrToTimeNum | ( | LPC_TIM_TypeDef * | TIMx ) |
Convert a timer register pointer to a timer number.
- Parameters:
-
[in] TIMx Pointer to a timer register set
- Returns:
- The timer number (0 to 3) or -1 if register pointer is bad
Definition at line 106 of file lpc17xx_timer.c.
| uint32_t TIM_ConverUSecToVal | ( | uint32_t | timernum, |
| uint32_t | usec | ||
| ) |
Convert a time to a timer count value.
- Parameters:
-
[in] timernum Timer number [in] usec Time in microseconds
- Returns:
- The number of required clock ticks to give the time delay
Definition at line 89 of file lpc17xx_timer.c.
| uint32_t TIM_GetPClock | ( | uint32_t | timernum ) |
Get peripheral clock of each timer controller.
- Parameters:
-
[in] timernum Timer number
- Returns:
- Peripheral clock of timer
Definition at line 58 of file lpc17xx_timer.c.
Generated on Tue Jul 12 2022 17:06:03 by
1.7.2